Skip to content

Commit

Permalink
Merge pull request #8 from hlein/socat
Browse files Browse the repository at this point in the history
Add more to socat
  • Loading branch information
MegaManSec authored Jul 24, 2024
2 parents 52dba8e + 1466bd3 commit cf16685
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions _gtfoargs/socat.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,12 @@ functions:
- description: The command leverages socats ability to relay data, reading arbitary file by opening it in read-only mode.
code: |
socat -u OPEN:/etc/passwd,rdonly STDOUT
shell:
- description: The exec argument runs an arbitrary command and spawn a shell.
code: |
socat stdin exec:bash
command:
- description: The exec argument runs an arbitrary command.
code: |
socat stdin exec:whoami
---

0 comments on commit cf16685

Please sign in to comment.