You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/generic-hacking/exfiltration.md
+67-1Lines changed: 67 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -119,6 +119,41 @@ if __name__ == "__main__":
119
119
###
120
120
```
121
121
122
+
### goshs
123
+
124
+
[goshs](https://github.com/patrickhener/goshs) is a single-binary replacement for `python3 -m http.server`
125
+
with upload, download, WebDAV, SFTP, SMB, TLS, authentication, share links,
126
+
and OOB collaboration features (DNS, SMTP, NTLM hash capture).
127
+
128
+
```bash
129
+
# Serve current directory on port 8000
130
+
goshs
131
+
132
+
# Serve with HTTPS (self-signed)
133
+
goshs -s -ss
134
+
135
+
# Serve with basic auth
136
+
goshs -b user:password
137
+
138
+
# Upload-only mode
139
+
goshs -uo
140
+
141
+
# Read-only mode
142
+
goshs -ro
143
+
144
+
# Capture SMB NTLM hashes
145
+
goshs -smb -smb-domain CORP
146
+
147
+
# DNS callback server
148
+
goshs -dns -dns-ip 10.10.10.10
149
+
150
+
# SMTP callback server
151
+
goshs -smtp -smtp-domain [REDACTED]
152
+
153
+
# Tunnel via localhost.run (no port forwarding needed)
154
+
goshs -tunnel
155
+
```
156
+
122
157
## Webhooks (Discord/Slack/Teams) for C2 & Data Exfiltration
123
158
124
159
Webhooks are write-only HTTPS endpoints that accept JSON and optional file parts. They’re commonly allowed to trusted SaaS domains and require no OAuth/API keys, making them useful for low-friction beaconing and exfiltration.
-[Discord as a C2 and the cached evidence left behind](https://www.pentestpartners.com/security-blog/discord-as-a-c2-and-the-cached-evidence-left-behind/)
0 commit comments