From rbachwiki
Jump to navigation Jump to search

Port Tunneling and Socks5 Proxies with a Secure Shell (SSH)

ssh -D. The -D option specified a local Dynamic application-level port forwarding. Any connection made to the specified port goes through the tunnel as a SOCKS4 or SOCKS5 proxy. Perfect for secure web browsing

Usage: ssh user@ -D 8080

Open firefox and change the network settings/Manual Proxy/Socks Host to: Port 8080


nmap.org - website for nmap software exploit-db.com http://www.dvwa.co.uk/


Squid - webproxy chache

https://portswigger.net/burp Burpsuite web application testing


nmap -vv -A website.com

ip -255 means it will scan up to 255 p22 is scan for port 22 -vv is verbose, > redirect output into file
nmap -oG - -p 22 --vv > /root/Desktop/scan.txt


nslookup google.com

using Grep with awk

Host: () Status: Up grep Up filters the word Up, awk -F is a Field Filter, so we are filtering using blank space " " The last part '{print $2}' prints out the sencond field

cat scan.txt | grep Up | awk -F " " '{print $2}' > scan2.txt


using nmap with above output to scan multiple host

nmap -iL scan.txt -vv

Script to give you info on a domain

curl ipinfo.io/ipaddress

Open DNS

point your DNS settings (or your router's DNS settings) to OpenDNS. It doesn't cost a thing and doesn't require any additional software be installed. All you have to do is alter your network connection or router settings to use the following nameservers: and

Blocking phishing attacks and more via OpenDNS
At the same time, OpenDNS is a very helpful tool in blocking phishing sites from coming up; it uses Phishtank, a community block site also relied on by Yahoo. It also blocks a variety of different malware, hacker-oriented sites. And it can block inappropriate content by allowing you to configure it to filter by category or block by name. For those businesses that are sick and tired of their people playing around on Facebook all day long, this tool can give them an easy way to block access.

OpenDNS can also help with typos you might type while entering a website address. It automatically makes the correction for common typos. You can also create abbreviated commands to use as shortcuts for websites you go to with really long names. For example, rather than typinghttp://www.infoworld.com/blogs/j-peter-bruzzese, you can create a shortcut likejpb to bring you right to my blog.