Hacking

From bachWiki
Jump to: navigation, search

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

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@111.111.111.111 -D 8080

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

Websites[edit]

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

Software[edit]

Squid - webproxy chache[edit]

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

Nmap[edit]

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 - 10.0.0.1-255 -p 22 --vv > /root/Desktop/scan.txt

Nslokup[edit]

nslookup google.com

using Grep with awk[edit]

Host: 10.0.0.14 () 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

Output 10.0.0.14

using nmap with above output to scan multiple host[edit]

nmap -iL scan.txt -vv

Script to give you info on a domain[edit]

curl ipinfo.io/ipaddress

Open DNS[edit]

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: 208.67.222.222 and 208.67.222.220.

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.