[raraavis]

Communiquer avec la C-Box

On peut attaquer la C-Box en telnet pour la configuration. Login et mot de passe sont user. Les commande administrateurs étaient diponible avec le compte root mais le mot de passe a changé et je ne l'ai plus. J'essayerai d'en faire un rapport.
Un site répertorie les commandes disponibles dans la lifebox. La plupart sont dispo dans la C-box. Je n'ai pas vu de différences pour le moment.

Exemple de session

Début du script sur Mon Apr 11 19:51:20 2005
>]0;benoit@formentera.baleares.es: /home/benoit[benoit@formentera benoit]$  [benoit@formentera benoit]$ telnet 192.168.30.1
Trying 192.168.30.1...
Connected to 192.168.30.1 (192.168.30.1).
Escape character is '^]'.
login: user
Password:
[user @ home]$ ls

O reboot
O date
O version
O show
O install
O chgconf
O ipqos
O list
O stats
O ifconfig
O route
O bitmap
O save
O erase
O rndis
O rarpd
O arp
O dhcp
O sntp
O dhcpserver
O dhcpr
O dns
O wlan
O relayvoice
O pstnclass
O adn
O sup
O mgcp
O vlan
O acf
O aread
O awrite
O apregdump
[user @ home]$ stats
statistic parameter
parameters - IP|TCP|UDP|ICMP.
[user @ home]$ stats IP

IP statistics
RX Pkts :412847 Tx Ip pkts :205157 Forward pkts :0
Rx Frag Pkts :0 Tx Frag Pkts :0 Tx fragments :0
Reassembled Pkts:0 Rx Frag Timeouts:0 Rx Frag Dropped :0
Tx Can't Frag :0 Redirect Fwd Pkts:0 Fast Fwd Pkts :0
Rx short Pkts :0 Tx Raw Ip Pkts :0 Rx longIp pkts :0
Rx Bad Iplen Pkts:0 Rx Bad HdrLen Pkts:0 Bad cksum Pkts :0
Dst unreach Pkts:2889 Noroute Drop pkts:4 Dropped Pkts :0
Rx layer4 pkts :206647 Non Ipv4 Pkts :0 Unknown Protocol:0
No McastGrp Pkts:0 Rx Bad IpOptions:0

[user @ home]$ stats IP  ip

IP statistics
RX Pkts :412927 Tx Ip pkts :205194 Forward pkts :0
Rx Frag Pkts :0 Tx Frag Pkts :0 Tx fragments :0
Reassembled Pkts:0 Rx Frag Timeouts:0 Rx Frag Dropped :0
Tx Can't Frag :0 Redirect Fwd Pkts:0 Fast Fwd Pkts :0
Rx short Pkts :0 Tx Raw Ip Pkts :0 Rx longIp pkts :0
Rx Bad Iplen Pkts:0 Rx Bad HdrLen Pkts:0 Bad cksum Pkts :0
Dst unreach Pkts:2889 Noroute Drop pkts:4 Dropped Pkts :0
Rx layer4 pkts :206690 Non Ipv4 Pkts :0 Unknown Protocol:0
No McastGrp Pkts:0 Rx Bad IpOptions:0

[user @ home]$ stats ip        route
route add -o -dest {dest ip addr} -gateway {gateway ip addr} [{-option value}*]
route add -o -dest {dest ip addr} -interface {interface name} [{-option value }*]
route delete -o -dest {dest ip addr}
route change -o -dest {dest ip addr} -gateway {new ip addr}
route flush
options : mtu & hopcount &netmask[user @ home]$ ifconfig
Usage:
ifconfig -o inet
[parameters]
ifconfig -o -a
ifconfig -o -l
parameters - mtu , broadcast
, netmask , up, down
[user @ home]$ ifconfig -a
ifconfig -o inet
[parameters]
ifconfig -o -a
ifconfig -o -l
parameters - mtu , broadcast
, netmask , up, down.[user @ home]$ ifconfig -a -o
ifconfig -o inet
[parameters]
ifconfig -o -a
ifconfig -o -l
parameters - mtu , broadcast
, netmask , up, down.[user @ home]$ show

This command displays informations on boot version, running
application, applications version, L1 codes, cmvs, deflists,
factory serial numbers and checks integrity (calculate checksums)
of these blocks whenever it's possible
USAGE

show [options]
options can be one or more option (for instance: show -boot -app1)
option =
-h : prints this message (used lonely)
-all : shows infos of all parts
-psn : shows product serial number
-bsn : shows board serial number (ie. DFAB)
-boot : shows boot version
-app1 : shows application 1 version
-app2 : shows application 2 version
-apps <=> -app1 -app2
-run : shows running application (app1 or app2)
-dsl1 : checks L1 code 1 integrity
-dsl2 : checks L1 code 2 integrity
-dsls <=> -dsl1 -dsl2
-cmv1 : lists cmv1
-cmv2 : lists cmv2
-cmvs <=> -cmv1 -cmv2
-deflist : checks deflist1 integrity
-deflist2 : checks deflist2 integrity
-deflists <=> -deflist -deflist2

[user @ home]$ show -a

Unknown option!!!

USAGE

show [options]
options can be one or more option (for instance: show -boot -app1)
option =
-h : prints this message (used lonely)
-all : shows infos of all parts
-psn : shows product serial number
-bsn : shows board serial number (ie. DFAB)
-boot : shows boot version
-app1 : shows application 1 version
-app2 : shows application 2 version
-apps <=> -app1 -app2
-run : shows running application (app1 or app2)
-dsl1 : checks L1 code 1 integrity
-dsl2 : checks L1 code 2 integrity
-dsls <=> -dsl1 -dsl2
-cmv1 : lists cmv1
-cmv2 : lists cmv2
-cmvs <=> -cmv1 -cmv2
-deflist : checks deflist1 integrity
-deflist2 : checks deflist2 integrity
-deflists <=> -deflist -deflist2

[user @ home]$ show -all

######## Product Serial Number ########
PSN : ÿÿÿÿÿ40309

############ Boot version ############
SAGEM F@ST3202Bootloader
Version 1.0.4 (4.0)

############ Running Appli ############
Running appli : App 2

############# App1 version #############
App1 checksum : OK
App1 description : AD6843 application (Sagem3302_210124)
App1 version : 0
App1 revision : 7
App1 spare[0] : 0x0 (L1 code 1 checksum)
App1 spare[1] : 0x0 (CMV1 checksum)
App1 spare[2] : 0x0
App1 spare[3] : 0x0

################ Dsl1 ################
Dsl1 sequence : 7
Dsl1 checksum = 0xfe26e126 (OK)
Dsl1 description : STRATIPHY ANEXA

################ CMV1 ################
Cmv1 sequence : 10
Cmv1 checksum = 0x90c00f2 (OK)
CMV Set : 3
Group: 5, Address: 13, offset: 0, data: 0x00000001
Group: 5, Address: 0, offset: 0, data: 0x00000004
Group: 1, Address: 0, offset: 0, data: 0x00000002

############# App2 version #############
App2 checksum : OK
App2 description : AD6843 application (Sagem3302_210140)
App2 version : 0
App2 revision : 9
App2 spare[0] : 0x0 (L1 code 2 checksum)
App2 spare[1] : 0x0 (CMV2 checksum)
App2 spare[2] : 0x0
App2 spare[3] : 0x0

################ Dsl2 ################
Dsl2 sequence : 9
Dsl2 checksum = 0x7528f29b (OK)
Dsl2 description : STRATIPHY ANEXA

################ CMV2 ################
Cmv2 sequence : 12
Cmv2 checksum = 0x4b3d9627 (OK)
CMV Set : 6
Group: 5, Address: 13, offset: 0, data: 0x00000001
Group: 5, Address: 0, offset: 0, data: 0x00009104
Group: 3, Address: 60, offset: 0, data: 0x000000b5
Group: 3, Address: 60, offset: 1, data: 0x00004153
Group: 3, Address: 60, offset: 2, data: 0x00004d47
Group: 1, Address: 0, offset: 0, data: 0x00000002

############### DEFLIST ###############
Deflist1 sequence : 1
Deflist1 checksum = 0xdd4eb449 (OK)

[user @ home]$ date
DATE (MM:DD:YYYY) 04:11:2005 TIME (H:M:S) 17:53:07
[user @ home]$ version
AD6843 Security Router Software3302_210140
[user @ home]$ ls

O reboot
O date
O version
O show
O install
O chgconf
O ipqos
O list
O stats
O ifconfig
O route
O bitmap
O save
O erase
O rndis
O rarpd
O arp
O dhcp
O sntp
O dhcpserver
O dhcpr
O dns
O wlan
O relayvoice
O pstnclass
O adn
O sup
O mgcp
O vlan
O acf
O aread
O awrite
O apregdump
[user @ home]$ list
list [user @ home]$ list routes
Internet Routing Table
Destination Gateway Netm

www.epinard.free.fr/raraavis le 8 August 2020.