 | reply to zacron
Re: Firmware + Sagemcom Modem + HelpI've managed to enable Telnet access on the device. You start out with some basic commands but you can drop into a normal shell. I'll post instructions in a little bit
$ telnet 192.168.2.1
Trying 192.168.2.1...
Connected to 192.168.2.1.
Escape character is '^]'.
Username: admin
Password: *****
HomeGateway> help all
Command Category pvc - PVC scan related commands
scan Scan predefined vpi.vci to determine PPP protocol
scan_restart Restart PVC scan
scan_status Display PVC scan status
exit Exit sub menu
help Show help for commands within this menu
Command Category conf - Read and write HomeGateway configuration data
factory Factory related commands
print Print HomeGateway configuration
set Set HomeGateway configuration path to value
set_obscure Set HomeGateway configuration path to an obscured value
del Delete subtree from HomeGateway configuration
ram_set Set HomeGateway dynamic configuration
ram_print Print HomeGateway dynamic configuration
reconf Reconfigure the system according to the current HomeGateway
configuration
exit Exit sub menu
help Show help for commands within this menu
Command Category FT commands - FT commands
save Save configurating to flash
flash_chksum Display all flash sections checksums
atm atm
sndcp sndcp
vdsl VDSL commands
upnp UPnP commands
qos Control and display QoS data
bridge API for managing ethernet bridge
firewall Control and display Firewall and NAT data
connection API for managing connections
inet_connection API for managing internet connections
wireless Wireless commands
misc API for HomeGateway miscellaneous tasks
firmware_update Firmware update commands
log Controls HomeGateway logging behavior
dev Device related commands
kernel Kernel related commands
system Commands to control HomeGateway execution
flash Flash and loader related commands
net Network related commands
leds Leds control commands
exit Exit from the current CLI session
help Show help for commands within this menu
Command Category FT atm commands - FT atm commands
atm atm
sndcp sndcp
vdsl VDSL commands
upnp UPnP commands
qos Control and display QoS data
bridge API for managing ethernet bridge
firewall Control and display Firewall and NAT data
connection API for managing connections
inet_connection API for managing internet connections
wireless Wireless commands
misc API for HomeGateway miscellaneous tasks
firmware_update Firmware update commands
log Controls HomeGateway logging behavior
dev Device related commands
kernel Kernel related commands
system Commands to control HomeGateway execution
flash Flash and loader related commands
net Network related commands
leds Leds control commands
exit Exit from the current CLI session
help Show help for commands within this menu
Command Category FT sndcp commands - FT sndcp commands
sndcp sndcp
vdsl VDSL commands
upnp UPnP commands
qos Control and display QoS data
bridge API for managing ethernet bridge
firewall Control and display Firewall and NAT data
connection API for managing connections
inet_connection API for managing internet connections
wireless Wireless commands
misc API for HomeGateway miscellaneous tasks
firmware_update Firmware update commands
log Controls HomeGateway logging behavior
dev Device related commands
kernel Kernel related commands
system Commands to control HomeGateway execution
flash Flash and loader related commands
net Network related commands
leds Leds control commands
exit Exit from the current CLI session
help Show help for commands within this menu
Command Category vdsl - VDSL commands
status Get VDSL line status
BmeFirmVer Get BME Firmware versions
NeSnrAttn Get Near End SNR Margin and Attenuation
displayAllPmCounters Display All Performance Counters
displayUsInfos Display Far-end informations
exit Exit sub menu
help Show help for commands within this menu
Command Category upnp - UPnP commands
igd IGD commands
status Display UPnP status
exit Exit sub menu
help Show help for commands within this menu
Command Category qos - Control and display QoS data
utilization Connection utilization information
exit Exit sub menu
help Show help for commands within this menu
Command Category bridge - API for managing ethernet bridge
connection connect separate network interfaces to form one seamless LAN
config Configure bridge
info Print bridge information
exit Exit sub menu
help Show help for commands within this menu
Command Category firewall - Control and display Firewall and NAT data
restart Stop and start Firewall & NAT
start Start Firewall & NAT
stop Stop Firewall & NAT
filter Turn Firewall packet inspection on/off
mac_cache_dump Dump MAC cache data
dump Display Firewall data
variable Display variables of the firewall rules
trace Trace packet traversal via the Firewall ruleset
fastpath Turns firewall fastpath feature on/off (default is on)
set_tr69_rule Creates policy rules for TR69
exit Exit sub menu
help Show help for commands within this menu
Command Category connection - API for managing connections
pppoe Configure pppoe interface
l2tp_vpn Configure l2tpc interface
pptp_vpn Configure pptpc interface
pppoa Configure pppoa interface
vlan Configure vlan interface
exit Exit sub menu
help Show help for commands within this menu
Command Category inet_connection - API for managing internet connections
pppoe Configure pppoe internet connection
l2tp Configure l2tpc internet connection
pptp Configure pptpc internet connection
pppoa Configure pppoa internet connection
ether Configure ethernet internet connection
exit Exit sub menu
help Show help for commands within this menu
Command Category wireless - Wireless commands
captive Wireless captive commands
exit Exit sub menu
help Show help for commands within this menu
Command Category misc - API for HomeGateway miscellaneous tasks
pppos_start Start PPPoS connection
pppos_close Close PPPoS connection
print_ram print ram consumption for each process
vlan_add Add VLAN interface
top Profiling over event loop and estream
knet_hooks_dump Dump to console which knet_hooks run on each device
exit Exit sub menu
help Show help for commands within this menu
Command Category firmware_update - Firmware update commands
start Remotely upgrade HomeGateway
cancel Kill running remote upgrade
exit Exit sub menu
help Show help for commands within this menu
Command Category log - Controls HomeGateway logging behavior
filter Controls the CLI session logging behavior
exit Exit sub menu
help Show help for commands within this menu
Command Category dev - Device related commands
mii_reg_get Get Ethernet MII register value
mii_reg_set Set Ethernet MII register value
mii_phy_reg_get Get Ethernet MII register value
mii_phy_reg_set Set Ethernet MII register value
exit Exit sub menu
help Show help for commands within this menu
Command Category kernel - Kernel related commands
sys_ioctl issue openrg ioctl
meminfo Print memory information
top Print HomeGateway's processes memory usage
cpu_load_on Periodically shows cpu usage.
cpu_load_off Stop showing cpu usage (triggered by cpu_load_on).
cpu_load_avg Shows average cpu usage of last 1, 5 and 15 minutes.
exit Exit sub menu
help Show help for commands within this menu
Command Category system - Commands to control HomeGateway execution
die Exit from HomeGateway and return ret
ps Print HomeGateway's tasks
entity_close Close an entity
etask_list_dump Dump back trace of all etasks
restore_factory_settings Restore factory configuration
reboot Reboot the system
ver Display version information
print_config Print compilation configuration. Search for option
if specified
exec Execute program
cat Print file contents to console
shell Spawn busybox shell in foreground
date Print the current UTC and local time
echo Echo arguments to console
autoip_lan_mode Configure the lan interface using Auto-IP
igd_lan_mode Configure the lan interface for normal IGD use
exit Exit sub menu
help Show help for commands within this menu
Command Category flash - Flash and loader related commands
commit Save HomeGateway configuration to flash
erase Erase a given section in the flash
load Load and burn image
boot Boot the system
bset Configure bootloader
layout Print the flash layout and content
dump Dump the flash content
lock Lock mtd region
unlock Unlock mtd region
exit Exit sub menu
help Show help for commands within this menu
Command Category net - Network related commands
dns_route Dyncamic Routing according to DNS replies
igmp IGMP Proxy related commands
host Resolve host by name
ifconfig Configure network interface
ping Test network connectivity
rg_ifconfig List HomeGateway Network Devices
route Print route table
main_wan Print the name of the current main wan device
intercept_state Print interception state
exit Exit sub menu
help Show help for commands within this menu
Command Category leds - Leds control commands
led_power_set Set POWER led
led_wifi_set Set WIRELESS led
control_all_leds Set ALL led
led_secwifi_set Set WIRELESS SECURITY led
led_intnet_set Set INTENRET led
led_ftth_set Set FTTH led
led_dsl_set Set DSL led
led_tel1_set Set PHONE1 led
led_tel2_set Set PHONE2 led
led_rep1_set Set REPONDEUR1 led
led_rep2_set Set REPONDEUR2 led
led_usb1_set Set USB1 led
led_usb2_set Set USB2 led
relay_set Set RELAY
led_hpna_set Set HPNA led
exit Exit sub menu
help Show help for commands within this menu
Command Category cmd - Commands related to the Command module
exit Exit from the current CLI session
help Show help for commands within this menu
|
|
 JCohenPremium join:2010-10-19 Nepean, ON kudos:3 | How'd you manage to get telnet enabled? |
|
 zacronPremium join:2008-11-26 canada | yes, different port? or via another protcol?
I am very interested.
Zacron -- If you don't want to lag, don't "bragg" |
|
 | I found a way to download & replace the working config file.
Basically to get the current config you just go to »192.168.2.1/save_rg_conf.cgi To send a new config you have to send a POST to »192.168.2.1/replace_rg_conf.cgi with the config in an input named "new_rg_conf"
In the default config, Telnet does not have a port assigned. You'll see the following line:
(telnets(ports))
You'll want to replace that with something else to add a port, this is what I'm using:
(telnets
(ports
(0
(port(23))
(ssl_mode(none))
(remote_access(0))
)
)
)
If you just make that change and replace the config, telnet will be enabled immediately.
I wrote a quick app that will connect to the modem and download the config, re-write the telnet line if it's still set to default, and re-upload it. It won't touch anything else so you can also use it to change other config options if you want, without having to send POSTs manually. It looks like the device won't take a malformed config file so playing with it should be relatively harmless.
I haven't done any extensive testing so your mileage may vary with this, requires .NET 3.5: »dl.dropbox.com/u/6483447/Bell/Telnet.zip |
|
 HiVoltPremium join:2000-12-28 Toronto, ON kudos:18 | Very nice.
When there's a will, there's a way!  -- GO LEAFS GO! |
|
 | reply to lawrenson Any chance of something similar for the cellpipe? Lots of us with non-functional cellpipes would love to be able to do something about it. |
|
 | There are still a couple of Bell Cellpipe 7130 units on Kijiji / Craigslist, and they are supposed to have the "TR-069 management interface for management and zero-touch configuration". -- Everything Apple |
|
 | reply to Phibian In »192.168.2.1/menu.js:
/*if(menuItem=='CfgStore') { printMenuItem('util_cfgstore.html', 'Configuration Store', red, darkBlue); }else{ printMenuItem('util_cfgstore.html', 'Configuration Store', black, blue); } if(menuItem=='CfgRestore') { printMenuItem('util_cfgrestore.html', 'Configuration Restore', red, darkBlue); }else{ printMenuItem('util_cfgrestore.html', 'Configuration Restore', black, blue); } if(menuItem=='Webfirmware') { printMenuItem('util_webfirmware.html', 'Web Firmware Upload', red, darkBlue); }else{ printMenuItem('util_webfirmware.html', 'Web Firmware Upload', black, blue); } */
Looks promising - although »192.168.2.1/util_cfgstore.html 404s |
|