В предыдущей статье я описвыал как подключаться к модемам D-Link через TELNET. Сегодня накопал в интернетах описание некоторых команд.
echo * Просмотр каталога
help Выдаст список команд
echo //ect//* Пример лазенья по каталогам
Дальше подробнее...
Примеры:
> echo //*
//bin //dev //etc //lib //linuxrc //mnt //proc //sbin //usr //var //webs
> echo //etc//*
//etc//adsl //etc//default.cfg //etc//dhcp //etc//ethertypes //etc//fstab //etc/
/gateway.conf //etc//group //etc//inetd.conf //etc//init.d //etc//inittab //etc/
/ipsec.conf //etc//modules_install //etc//passwd //etc//ppp //etc//pppmsg //etc/
/profile //etc//psk.txt //etc//racoon.conf //etc//resolv.conf //etc//services //
etc//snmp //etc//sysmsg //etc//udhcpd.conf //etc//udhcpd.leases //etc//versions
> cat //etc/versions
MODEL=DSL-2540U
VERSION=RU_DSL-2540U_1.00_01112008
BCM_VERSION=3.10L.01.
Revision=3453
FSSTAMP=20080111112455
> cat //etc/fstab
proc /proc proc defaults 0 0
tmpfs /var tmpfs size=320k 0 0
/dev/sda1 /mnt vfat noauto 0 0
>
Походу в /dev/sda1 лежит прошивка, мона туды чета засунуть
Получение списка скрытых команд!!!
> echo //bin//*
//bin//adsl //bin//adslctl //bin//atm //bin//atmctl //bin//brctl //bin//busybox
//bin//cat //bin//cfm //bin//chmod //bin//date //bin//ddnsd //bin//dhcpc //bin//
dhcpd //bin//dnsprobe //bin//dnsspoof //bin//dproxy //bin//dumpmem //bin//ebtabl
es //bin//echo //bin//ethctl //bin//false //bin//igmp //bin//iptables //bin//kil
l //bin//ln //bin//mkdir //bin//mount //bin//msh //bin//netctl //bin//ping //bin
//pppd //bin//pptp //bin//ps //bin//pvc2684ctl //bin//pvc2684d //bin//pwd //bin/
/ripd //bin//rm //bin//sendarp //bin//setmem //bin//sh //bin//sntp //bin//sysinf
o //bin//true //bin//udhcpd //bin//zebra
>
А теперь Апофеоз! Версия операционки!
> cat //proc//version
Linux version 2.6.8.1 (jenny@BS5) (gcc version 3.4.2) #1 Fri Jan 11 11:23:01 CST
2008
>
Написать комментарий