satixnet satellite modem T1000e
# ls /etc/inittab* /etc/inittab /etc/inittab_nosw # cat /etc/inittab ::sysinit:/etc/init.d/rcS #::once:/bin/sw & #The followed sentence does't need password. ::respawn:-/bin/ash #The followed sentence does need password. #::respawn:-/bin/login #tty2::askfirst:-/bin/ash ::ctrlaltdel:/bin/umount -a -r # # cat /etc/init.d/rcS #! /bin/ash /bin/mount -a /sbin/ifconfig lo 127.0.0.1 /bin/mount -t tmpfs none /dev/shm #add by lzh for kda /bin/mkdir /dev/misc /bin/mknod /dev/misc/KernDrvAgt c 10 244 #mount flash fs. /sbin/mdev -s /bin/mkdir -p /mnt/flash /bin/mount -t jffs2 /dev/mtdblock1 /mnt/flash #/bin/mkdir /dev/misc #/bin/mknod /dev/misc/KerBbx c 10 253 #/ztam& #The followed sentence does't need password. telnetd -l /bin/sh #The followed sentence does need password. #telnetd #The followed sentence does save syslog to /var/log/messages syslogd -l 8 echo 1000 > /proc/task_info /bin/mknod /dev/cachedmem c 1 12 #enable kernel bbx /bin/mkdir /dev/misc /bin/mknod /dev/misc/KerBbx c 10 253 /bin/mknod /dev/ppp c 108 0 insmod stmmac.ko insmod stmmac-platform.ko insmod dwmac-generic.ko insmod ncr_driver.ko /bin/mknod /dev/ncr_driver c 251 0 insmod sx3000b_driver.ko /bin/mknod /dev/sx_driver c 250 0 ifconfig satixnet0 up ifconfig satixnet0 175.1.1.5 netmask 255.255.255.0 #echo 2 > /proc/exclusive_cpus /sbin/ifconfig eth0 192.254.1.16 netmask 255.0.0.0 up ./MGR.EXE & mkdir /run iptables -I INPUT -p tcp --dport 80 -m connlimit --connlimit-above 10 -j DROP # # cat /etc/profile # /etc/profile: system-wide .profile file for the Bourne shells echo echo -n "Processing /etc/profile... " # no-op LD_LIBRARY_PATH=/usr/lib:/lib export LD_LIBRARY_PATH echo "Done" echo #
# ifconfig brs_tap Link encap:Ethernet HWaddr 40:00:8B:01:00:11 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) eth0 Link encap:Ethernet HWaddr 52:53:54:55:56:17 inet addr:192.254.1.16 Bcast:192.255.255.255 Mask:255.0.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:783 errors:0 dropped:0 overruns:0 frame:0 TX packets:327 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:78413 (76.5 KiB) TX bytes:51512 (50.3 KiB) Interrupt:38 ipoa_brs Link encap:Ethernet HWaddr 40:00:8B:01:00:02 UP BROADCAST RUNNING NOARP PROMISC MULTICAST MTU:4096 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) ipoa_linu Link encap:Ethernet HWaddr 40:00:8B:01:00:00 UP BROADCAST RUNNING NOARP MULTICAST MTU:1420 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) ipoa_linu Link encap:Ethernet HWaddr 40:00:8B:01:00:00 inet addr:10.30.207.1 Bcast:10.30.207.255 Mask:255.255.252.0 UP BROADCAST RUNNING NOARP MULTICAST MTU:1420 Metric:1 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) satixnet0 Link encap:Ethernet HWaddr 00:00:00:00:00:00 inet addr:175.1.1.5 Bcast:175.1.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING NOARP MULTICAST MTU:9000 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) tun Link encap:Ethernet HWaddr 40:00:C0:FE:01:10 inet addr:199.1.1.1 Bcast:199.255.255.255 Mask:255.0.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:2 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:108 (108.0 B) # # uname -a Linux (none) 4.5.3 #11 SMP Fri Dec 11 10:49:19 CST 2020 mips unknown # # # ushell -> ready to work! ushell tool menu: ------------------------------------------------------------------------------ 'ps' or 'PS' list process run on the board [ 列出板上运行的进程 ] 'pr xxx' or 'PR xxx' take over xxx process printf info [ 接管xxx进程的打印信息 ] 'npr xxx' or 'NPR xxx' not take over xxx process printf info [ 不接管xxx进程的打印信息 ] 'db xxx' or 'DB xxx' debug xxx process printf info [ 调试xxx进程并打印信息 ] 'ndb xxx' or 'NDB xxx' not debug xxx process printf info [ 不调试xxx进程并打印信息 ] 'pad xxx' or 'PAD xxx' debug and take over xxx process printf info [ 调试并接管xxx进程的打印信息 ] 'npad xxx' or 'NPAD xxx'not debug and take over xxx process printf info [ 不调试并接管xxx进程的打印信息 ] 'pall' or 'PALL' display current debug and take over info [ 显示当前调试和接管信息 ] 'ncheck' or 'NCHECK' Do not check another ushell exist [ 不要检查是否存在其他ushell ] 'check' or 'CHECK' Do check another ushell exist [ 是否检查是否存在其他ushell ] 'Q' or 'q' cancel all process debug and printf info [ 取消所有进程调试及打印信息 ] 'exit' or 'EXIT' cancel ushell [ 取消ushell ] xxx is process id you want to debug or take over printf info [ xxx是您要调试或接管打印信息的进程id ] ------------------------------------------------------------------------------ $$ $$ps PID USER VSZ STAT COMMAND 1 root 2784 S init 2 root 0 SW [kthreadd] 3 root 0 SW [ksoftirqd/0] 4 root 0 SW [kworker/0:0] 5 root 0 SW< [kworker/0:0H] 7 root 0 SW [rcu_sched] 8 root 0 SW [rcu_bh] 9 root 0 SW [migration/0] 10 root 0 SW [migration/1] 11 root 0 SW [ksoftirqd/1] 12 root 0 SW [kworker/1:0] 13 root 0 SW< [kworker/1:0H] 14 root 0 SW [migration/2] 15 root 0 SW [ksoftirqd/2] 16 root 0 SW [kworker/2:0] 17 root 0 SW< [kworker/2:0H] 18 root 0 SW [migration/3] 19 root 0 SW [ksoftirqd/3] 20 root 0 SW [kworker/3:0] 21 root 0 SW< [kworker/3:0H] 22 root 0 SW [kdevtmpfs] 23 root 0 SW< [netns] 147 root 0 SW< [writeback] 149 root 0 SW< [crypto] 150 root 0 SW [kworker/0:1] 151 root 0 SW< [bioset] 153 root 0 SW< [kblockd] 251 root 0 SW [kworker/1:1] 252 root 0 SW [kworker/3:1] 253 root 0 SW [kworker/2:1] 263 root 0 SW [kswapd0] 264 root 0 SW< [vmstat] 822 root 0 SW [spi32766] 826 root 0 SW< [bioset] 831 root 0 SW< [bioset] 856 root 0 SW< [deferwq] 871 root 2848 R telnetd -l /bin/sh 873 root 2784 S syslogd -l 8 919 root 394m S ./MGR.EXE 922 root 2848 S -/bin/ash 932 root 0 SWN [jffs2_gcd_mtd1] 1275 root 1056 S /pppoe-server -L 10.30.207.2 -R 10.30.207.3 1546 root 2848 S /bin/sh 1924 root 2848 S /bin/sh 1934 root 0 SW [kworker/u8:0] 2967 root 0 SW [kworker/u8:2] 3400 root 9648 S ushell 3408 root 2800 S sh -c ps 3409 root 2864 R ps $$ $$pall index IsUseed IsPrintState IsCommandState pid fifoFd mqd $$ $$pad 919 [919] ushell enter print mod ushell enter debug mod $$ $$pall index IsUseed IsPrintState IsCommandState pid fifoFd mqd 0 1 1 1 919 4 3 $$
$$BspModPrnSwitch 1,0xffff
$$ $$npad 919 $$ $$exit ushell recv signo:0. quit debug and exit ushell! #
============= End