Difference between revisions of "Hacking"

From rbachwiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 21: Line 21:
nmap -vv -A website.com
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
  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
nmap -oG - 10.0.0.1-255 -p 22 --vv > /root/Desktop/scan.txt
   
   
===Nslokup===
===Nslokup===
Line 29: Line 29:
Host: 10.0.0.14 ()    Status: Up
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
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
cat scan.txt | grep Up | awk -F " " '{print $2}' > scan2.txt


Output
Output
10.0.0.14
10.0.0.14
===using nmap with above output to scan multiple host===
===using nmap with above output to scan multiple host===
nmap -iL scan.txt -vv
nmap -iL scan.txt -vv
=== Script to give you info on a domain===
=== Script to give you info on a domain===
curl ipinfo.io/ipaddress
curl ipinfo.io/ipaddress
==  ==
== Open DNS ==


<pre>
<pre>
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.


</pre>
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.
==  ==
 
<pre>
 
</pre>
 
==  ==
 
<pre>
 
</pre>
 
==  ==
 
<pre>
 
</pre>
 
==  ==
 
<pre>
 
</pre>
 
==  ==
 
<pre>
 
</pre>
 
==  ==
 
<pre>


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.
</pre>
</pre>

Latest revision as of 19:16, 7 November 2016

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@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

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

Software

Squid - webproxy chache

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

Nmap

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

nslookup google.com

using Grep with awk

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

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: 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.