{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}


Sansorg purpose this cheat sheet provides various

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: tandard Error By Ed Skoudis POCKET REFERENCE GUIDE http://www.sans.org Purpose This cheat sheet provides various tips for using Netcat on both Linux and Unix, specifically tailored to the SANS 504, 517, and 560 courses. All syntax is designed for the original Netcat versions, released by Hobbit and Weld Pond. The syntax here can be adapted for other Netcats, including ncat, gnu Netcat, and others. Fundamentals Fundamental Netcat Client: $ nc [TargetIPaddr] [port] Connect to an arbitrary port [port] at IP Address [TargetIPaddr] Fundamental Netcat Listener: $ nc –l -p [LocalPort] Create a Netcat listener on arbitrary local port [LocalPort] Both the client and listener take input from STDIN and send data received from the network to STDOUT File Transfer Push a file from client to listener: $ nc –l -p [LocalPort] > [outfile] Listen on [LocalPort], store results in [outfile] $ nc –w3 [TargetIPaddr] [port] < [infile] Push [infile] to [TargetIPaddr] on [port] Pull file from listener back to client: $ nc –l -p [LocalPort] < [infile] Listen on [LocalPort], prep to push [infile] $ nc –w3 [TargetIPaddr] [port] > [outfile] Connect to [TargetIPaddr] on [port] and retrieve [outfile] TCP Port Scanner Port scan an IP Address: $ nc –v –n –z –w1 [TargetIPaddr] [start_port]-[end_port] Attempt to connect to each port in a range from [end_port] to [start_port] on IP Address [TargetIPaddr] running verbosely (-v on Linux, vv on Windows), not resolving names (-...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online