HowTo

Command line

SSH keepalive

Sometimes firewalls kill long persistent connections. To overcome this, you can use ssh with a keepalive setting.

ssh -o TCPKeepAlive=yes -o ServerAliveInterval=50 bob@server

OpenSSL

Check if Perfect Forward Secrecy is enabled. If the connection is still open, PFS is enabled. If OpenSSL exits, it's not enabled.

openssl s_client -connect www.sciuro.org:443

TCPDump

How to make a proper tcpdump to use in wireshark.

tcpdump -i eth0 -s 65535 -w dump.pcap

Include or exclude hosts, ports etc.

tcpdump port 22 and host not 1.2.3.4
tcpdump src host not 1.2.3.4
tcpdump dst net 1.2.3.0/24
tcpdump tcp dst portrange 1-1023
tcpdump -v "icmp or arp"

Metasploit

Proxies

Use socks proxies:

set Proxies socks4:127.0.0.1:5555
set Proxies socks5:127.0.0.1:5555

Or HTTP Proxies

set Proxies http:ip:port