Difference between revisions of "Networking"
Jump to navigation
Jump to search
(→Curl) |
(→Netcat) |
||
Line 2: | Line 2: | ||
===Netcat=== | ===Netcat=== | ||
− | ;<code>nc <host> <port></code> | + | ;<code>nc -v -z <host> <port></code> |
− | : | + | :Tell me if we can open a connection to <host> on <port>. Without -z it works line telnet |
+ | |||
+ | ;<code>nc -v -u -z <host> <port></code> | ||
+ | :Tell me if we can open a connection to <host> on a UDP <port> | ||
===Curl=== | ===Curl=== |
Revision as of 13:47, 6 June 2018
Check network connections
Netcat
nc -v -z <host> <port>
- Tell me if we can open a connection to <host> on <port>. Without -z it works line telnet
nc -v -u -z <host> <port>
- Tell me if we can open a connection to <host> on a UDP <port>
Curl
curl -vvv -k --proxy1.0 <proxyIP>:<proxyPort> <Remote URL>
- Get the data from <remote URL> -k allows insecure SSL connections
curl -vvv telnet://<IP>:<port>
- Just test connectivity to a port
Wget
wget <URL>
- Get the data from <URL>