Home Hacking Tools Net Creds – Open Source Tool to Sniff Network Passwords and Hashes

Net Creds – Open Source Tool to Sniff Network Passwords and Hashes

by Unallocated Author

Net Creds is a free tool that sniffs passwords and hashes from a network interface. The tool launches  a MITM attack to capture network packets, and ultimately the login credentials. The MITM attack works  for the protocols that send credentials in clear text. The example protocols include HTTP, TELNET, POP, SNMP, IMAP, and NNTP. These protocols are vulnerable to MITM attack since they share the password in an unencrypted format. Net Creds is capable of sniffing the network requests based on similar protocols, such as HTTP searches, HTTP form logins, HTTP basic authentication, POP logins, IRC logins, FRP logins, SMTP logins, IRC logins, IMAP logins, and all supported protocols of NTLM version 1 and version2.

Installing Net Creds

net-creds cloning

Net Creds is python based tool that requires scapy and wsgiref library to work. Net Creds runs on Linux as well as Windows OS. Linux (Kali) has built-in Python package, however, for Windows installation, a python compiler is recommended to run the script. The tool can be downloaded from github repository using the following command.

git clone https://github.com/DanMcInerney/net-creds

Sniffing via Net Creds

Net Creds is capable of sniffing the credentials from an interface as well as pcap file. In order to automatically detect the available interface, run the following command in the OS terminal.

sudo python net-creds.py

In our case, the tool detected ‘eth0’ as the available network interface. The following command can be used to start sniffing on the available interface i-e ‘eth0’.

sudo python net-creds.py -i eth0

To test the working of the tool, let’s open an example web application running on the HTTP protocol. We have also logged into the web application to see if the login credentials are captured by Net Creds. Once the web application is launched in the browser, the tool starts capturing the packets and login credentials as shown in the following screenshot.

net-creds password sniffing

The packets from a specific IP address can be ignored using the following command.

sudo python net-creds.py -f <ip address here>

Similarly, the following command can be used to read the packets from a pcap file.

python net-creds.py -p pcapfile

What Bunny rating does it get?

Net Creds is easy to install and use. The tool is capable of capturing packets and unencrypted passwords from well-known network protocols. Nowadays the majority of the network services use ample encryption technique to share password credentials. Similarly, most web applications are running over HTTPS. The tool should be updated to include potential mitigations such as SSLstrip. As a result we will be rating this tool 3 out of 5 bunnies.

Want to learn more about ethical hacking?

We have a  networking hacking course that is of a similar level to OSCP, get an exclusive 95% discount HERE

Do you know of another GitHub related hacking tool?

Get in touch with us via the contact form if you would like us to look at any other GitHub ethical hacking tools.

You may also like

Latest Hacking News

Privacy Preference Center


The __cfduid cookie is used to identify individual clients behind a shared IP address and apply security settings on a per-client basis.

cookie_notice_accepted and gdpr[allowed_cookies] are used to identify the choices made from the user regarding cookie consent.

For example, if a visitor is in a coffee shop where there may be several infected machines, but the specific visitor's machine is trusted (for example, because they completed a challenge within your Challenge Passage period), the cookie allows Cloudflare to identify that client and not challenge them again. It does not correspond to any user ID in your web application, and does not store any personally identifiable information.

__cfduid, cookie_notice_accepted, gdpr[allowed_cookies]


DoubleClick by Google refers to the DoubleClick Digital Marketing platform which is a separate division within Google. This is Google’s most advanced advertising tools set, which includes five interconnected platform components.

DoubleClick Campaign Manager: the ad-serving platform, called an Ad Server, that delivers ads to your customers and measures all online advertising, even across screens and channels.

DoubleClick Bid Manager – the programmatic bidding platform for bidding on high-quality ad inventory from more than 47 ad marketplaces including Google Display Network.

DoubleClick Ad Exchange: the world’s largest ad marketplace for purchasing display, video, mobile, Search and even Facebook inventory.

DoubleClick Search: is more powerful than AdWords and used for purchasing search ads across Google, Yahoo, and Bing.

DoubleClick Creative Solutions: for designing, delivering and measuring rich media (video) ads, interactive and expandable ads.



The _ga is asssociated with Google Universal Analytics - which is a significant update to Google's more commonly used analytics service. This cookie is used to distinguish unique users by assigning a randomly generated number as a client identifier. It is included in each page request in a site and used to calculate visitor, session and campaign data for the sites analytics reports. By default it is set to expire after 2 years, although this is customisable by website owners.

The _gat global object is used to create and retrieve tracker objects, from which all other methods are invoked. Therefore the methods in this list should be run only off a tracker object created using the _gat global variable. All other methods should be called using the _gaq global object for asynchronous tracking.

_gid works as a user navigates between web pages, they can use the gtag.js tagging library to record information about the page the user has seen (for example, the page's URL) in Google Analytics. The gtag.js tagging library uses HTTP Cookies to "remember" the user's previous interactions with the web pages.

_ga, _gat, _gid