Packet-Sniffer - A pure-Python Network Packet Sniffing Tool
http://www.kitploit.com/2021/10/packet-sniffer-pure-python-network.html
___________________________
@hacking_Attack
@Hacking_Video
http://www.kitploit.com/2021/10/packet-sniffer-pure-python-network.html
___________________________
@hacking_Attack
@Hacking_Video
Kitploit
Kitploit – Maintenance in Progress
Kitploit is temporarily under maintenance. We’ll be back shortly with improvements.
A simple pure-Python network packet sniffer. Packets are disassembled as they arrive at a given network interface controller and their information is displayed on the screen. This application maintains no dependencies on third-party modules and can be run by any Python 3.x interpreter.
Installation
GNU / Linux
Simply clone this repository with git clone and execute the packet_sniffer.py file as described in the following Usage (https://github.com/EONRaider/Packet-Sniffer#usage) section. user@host:~/DIR$ git clone https://github.com/EONRaider/Packet-Sniffer.git
Other Systems
This project is dependent on PF_PACKET - a stateful packet filter not found on Windows or Mac OS X. For demonstration purposes, you can try out this package in a Docker container. Although it will not have full access to localhost on your machine, you can still sniff on the Docker subnet and at least get the module running. Use this command to build and run from the project directory: docker build -t sniff . && docker run --network host sniff
Note that the entry command is simply python packet_sniffer.py, so feel free to use the full functionality of the module by overriding the default command. Remember that we tagged the container (https://www.kitploit.com/search/label/Container) with the name "sniff" before, so we can pass command-line arguments to the sniffer in the following manner: docker run --network host sniff [your command goes here]
echo "Now let's print help"
docker run --network host sniff python packet_sniffer.py --help
Usage of --network host is not supported on OS X or Windows so this container won't be fully functional - but you will see packets traveling within the docker subnet.
Usage
packet_sniffer.py [-h] [-i INTERFACE] [-d]
A pure-Python network packet sniffer.
optional arguments:
-h, --help show this help message and exit
-i INTERFACE, --interface INTERFACE
Interface from which packets will be captured (captures
from all available interfaces by default).
-d, --displaydata Output packet data during capture.
Running the Application
Objective Initiate the capture of packets on all available interfaces Execution sudo python3 packet_sniffer.py Outcome Refer to sample output below Sample output: ] Packet #476 at 17:45:13: [+] MAC ......ae:45:39:30:8f:5a -> dc:d9:ae:71:c8:b9 [+] IPv4 ..........192.168.1.65 -> 140.82.113.3 | PROTO: TCP TTL: 64 [+] TCP ..................40820 -> 443 | Flags: 0x010 > ACK [>] Packet #477 at 17:45:14: [+] MAC ......dc:d9:ae:71:c8:b9 -> ae:45:39:30:8f:5a [+] IPv4 ..........140.82.113.3 -> 192.168.1.65 | PROTO: TCP TTL: 49 [+] TCP ....................443 -> 40820 | Flags: 0x010 > ACK [>] Packet #478 at 17:45:18: [+] MAC ......dc:d9:ae:71:c8:b9 -> ae:45:39:30:8f:5a [+] ARP Who has 192.168.1.65 ? -> Tell 192.168.1.254 [>] Packet #479 at 17:45:18: [+] MAC ......ae:45:39:30:8f:5a -> dc:d9:ae:71:c8:b9 [+] ARP ...........192.168.1.65 -> Is at ae:45:39:30:8f:5a ">[>] Packet #476 at 17:45:13:
[+] MAC ......ae:45:39:30:8f:5a -> dc:d9:ae:71:c8:b9
[+] IPv4 ..........192.168.1.65 -> 140.82.113.3 | PROTO: TCP TTL: 64
[+] TCP ..................40820 -> 443 | Flags: 0x010 > ACK
[>] Packet #477 at 17:45:14:
[+] MAC ......dc:d9:ae:71:c8:b9 -> ae:45:39:30:8f:5a
[+] IPv4 ..........140.82.113.3 -> 192.168.1.65 | PROTO: TCP TTL: 49
[+] TCP ....................443 -> 40820 | Flags: 0x010 > ACK
[>] Packet #478 at 17:45:18:
[+] MAC ......dc:d9:ae:71:c8:b9 -> ae:45:39:30:8f:5a
[+] ARP Who has 192.168.1.65 ? -> Tell 192.168.1.254
[>] Packet #479 at 17:45:18:
[+] MAC ......ae:45:39:30:8f:5a -> dc:d9:ae:71:c8:b9
[+] ARP ...........192.168.1.65 -> Is at ae:45:39:30:8f:5a
Legal Disclaimer
___________________________
@hacking_Attack
@Hacking_Video
Installation
GNU / Linux
Simply clone this repository with git clone and execute the packet_sniffer.py file as described in the following Usage (https://github.com/EONRaider/Packet-Sniffer#usage) section. user@host:~/DIR$ git clone https://github.com/EONRaider/Packet-Sniffer.git
Other Systems
This project is dependent on PF_PACKET - a stateful packet filter not found on Windows or Mac OS X. For demonstration purposes, you can try out this package in a Docker container. Although it will not have full access to localhost on your machine, you can still sniff on the Docker subnet and at least get the module running. Use this command to build and run from the project directory: docker build -t sniff . && docker run --network host sniff
Note that the entry command is simply python packet_sniffer.py, so feel free to use the full functionality of the module by overriding the default command. Remember that we tagged the container (https://www.kitploit.com/search/label/Container) with the name "sniff" before, so we can pass command-line arguments to the sniffer in the following manner: docker run --network host sniff [your command goes here]
echo "Now let's print help"
docker run --network host sniff python packet_sniffer.py --help
Usage of --network host is not supported on OS X or Windows so this container won't be fully functional - but you will see packets traveling within the docker subnet.
Usage
packet_sniffer.py [-h] [-i INTERFACE] [-d]
A pure-Python network packet sniffer.
optional arguments:
-h, --help show this help message and exit
-i INTERFACE, --interface INTERFACE
Interface from which packets will be captured (captures
from all available interfaces by default).
-d, --displaydata Output packet data during capture.
Running the Application
Objective Initiate the capture of packets on all available interfaces Execution sudo python3 packet_sniffer.py Outcome Refer to sample output below Sample output: ] Packet #476 at 17:45:13: [+] MAC ......ae:45:39:30:8f:5a -> dc:d9:ae:71:c8:b9 [+] IPv4 ..........192.168.1.65 -> 140.82.113.3 | PROTO: TCP TTL: 64 [+] TCP ..................40820 -> 443 | Flags: 0x010 > ACK [>] Packet #477 at 17:45:14: [+] MAC ......dc:d9:ae:71:c8:b9 -> ae:45:39:30:8f:5a [+] IPv4 ..........140.82.113.3 -> 192.168.1.65 | PROTO: TCP TTL: 49 [+] TCP ....................443 -> 40820 | Flags: 0x010 > ACK [>] Packet #478 at 17:45:18: [+] MAC ......dc:d9:ae:71:c8:b9 -> ae:45:39:30:8f:5a [+] ARP Who has 192.168.1.65 ? -> Tell 192.168.1.254 [>] Packet #479 at 17:45:18: [+] MAC ......ae:45:39:30:8f:5a -> dc:d9:ae:71:c8:b9 [+] ARP ...........192.168.1.65 -> Is at ae:45:39:30:8f:5a ">[>] Packet #476 at 17:45:13:
[+] MAC ......ae:45:39:30:8f:5a -> dc:d9:ae:71:c8:b9
[+] IPv4 ..........192.168.1.65 -> 140.82.113.3 | PROTO: TCP TTL: 64
[+] TCP ..................40820 -> 443 | Flags: 0x010 > ACK
[>] Packet #477 at 17:45:14:
[+] MAC ......dc:d9:ae:71:c8:b9 -> ae:45:39:30:8f:5a
[+] IPv4 ..........140.82.113.3 -> 192.168.1.65 | PROTO: TCP TTL: 49
[+] TCP ....................443 -> 40820 | Flags: 0x010 > ACK
[>] Packet #478 at 17:45:18:
[+] MAC ......dc:d9:ae:71:c8:b9 -> ae:45:39:30:8f:5a
[+] ARP Who has 192.168.1.65 ? -> Tell 192.168.1.254
[>] Packet #479 at 17:45:18:
[+] MAC ......ae:45:39:30:8f:5a -> dc:d9:ae:71:c8:b9
[+] ARP ...........192.168.1.65 -> Is at ae:45:39:30:8f:5a
Legal Disclaimer
___________________________
@hacking_Attack
@Hacking_Video
GitHub
GitHub - EONRaider/Packet-Sniffer: A Network Packet Sniffing tool developed in Python 3.
A Network Packet Sniffing tool developed in Python 3. - EONRaider/Packet-Sniffer
The use of code contained in this repository, either in part or in its totality, for engaging targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for misuses or damages caused by any code contained in this repository in any event that, accidentally or otherwise, it comes to be utilized by a threat agent or unauthorized entity as a means to compromise the security, privacy, confidentiality, integrity, and/or availability of systems and their associated resources by leveraging the exploitation (https://www.kitploit.com/search/label/Exploitation) of known or unknown vulnerabilities (https://www.kitploit.com/search/label/vulnerabilities) present in said systems, including, but not limited to, the implementation of security controls, human- or electronically-enabled. The use of this code is only endorsed by the developers in those circumstances directly related to educational environments or authorized penetration testing (https://www.kitploit.com/search/label/Penetration%20Testing) engagements whose declared purpose is that of finding and mitigating vulnerabilities in systems, limiting their exposure to compromises and exploits (https://www.kitploit.com/search/label/Exploits) employed by malicious agents as defined in their respective threat models.
Download Packet-Sniffer (https://github.com/EONRaider/Packet-Sniffer)
___________________________
@hacking_Attack
@Hacking_Video
Download Packet-Sniffer (https://github.com/EONRaider/Packet-Sniffer)
___________________________
@hacking_Attack
@Hacking_Video
KitPloit - PenTest & Hacking Tools
Leading source of security tools, hacking tools, cybersecurity and network security. Learn about new tools and updates in one place.
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
BE A HACKER !!! -To protect yourself
https://cdn-images-1.medium.com/max/769/1*YM0-nhuZkayD-2SUev5PLg.jpeg
……………………..HOW PROTECTED DO YOU FEEL?………………………
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
BE A HACKER !!! -To protect yourself
https://cdn-images-1.medium.com/max/769/1*YM0-nhuZkayD-2SUev5PLg.jpeg
……………………..HOW PROTECTED DO YOU FEEL?………………………
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Medium
BE A HACKER !!! -To protect yourself
……………………..HOW PROTECTED DO YOU FEEL?………………………
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
Courses at HACKTOWN
HACKTOWN cybercriminal University is an online university that caters to beginners wanna be cybercriminals, starts with the basics and…
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Courses at HACKTOWN
HACKTOWN cybercriminal University is an online university that caters to beginners wanna be cybercriminals, starts with the basics and…
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Medium
Courses at HACKTOWN
HACKTOWN cybercriminal University is an online university that caters to beginners wanna be cybercriminals, starts with the basics and…
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
Horizontall: HackTheBox Walkthrough
https://cdn-images-1.medium.com/max/1030/1*OlJvn-AFsPCpltxQ1801GQ.jpeg
Description
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Horizontall: HackTheBox Walkthrough
https://cdn-images-1.medium.com/max/1030/1*OlJvn-AFsPCpltxQ1801GQ.jpeg
Description
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Medium
Horizontall: HackTheBox Walkthrough
Description
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
How To Become a Good Hacker?
https://cdn-images-1.medium.com/max/999/0*MOabJhpObwWMjmE5
Everyone wants to become a hacker but without efforts we can’t take forward steps in this field and try to understand each and every key…
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
How To Become a Good Hacker?
https://cdn-images-1.medium.com/max/999/0*MOabJhpObwWMjmE5
Everyone wants to become a hacker but without efforts we can’t take forward steps in this field and try to understand each and every key…
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Medium
How To Become a Good Hacker?
Everyone wants to become a hacker but without efforts we can’t take forward steps in this field and try to understand each and every key…
Exploitation of file’s download parameters to create potential risk of malware delivery: $200 bug!
Hi Everyone,Continue reading on Medium »
Read more...
Hi Everyone,Continue reading on Medium »
Read more...
Business Logic Errors - A Logic Destruction
https://shahjerry33.medium.com/business-logic-errors-a-logic-destruction-477c4ebc824b?source=rss------bug_bounty-5
___________________________
@hacking_Attack
@Hacking_Video
https://shahjerry33.medium.com/business-logic-errors-a-logic-destruction-477c4ebc824b?source=rss------bug_bounty-5
___________________________
@hacking_Attack
@Hacking_Video
Medium
Business Logic Errors - A Logic Destruction
Summary :
Summary :Continue reading on Medium » (https://shahjerry33.medium.com/business-logic-errors-a-logic-destruction-477c4ebc824b?source=rss------bug_bounty-5)
___________________________
@hacking_Attack
@Hacking_Video
___________________________
@hacking_Attack
@Hacking_Video
Medium
Business Logic Errors - A Logic Destruction
Summary :
A Unique Email Verification Bypass
https://medium.com/@nub_error/a-unique-email-verification-bypass-6688e173a20c?source=rss------bug_bounty-5
___________________________
@hacking_Attack
@Hacking_Video
https://medium.com/@nub_error/a-unique-email-verification-bypass-6688e173a20c?source=rss------bug_bounty-5
___________________________
@hacking_Attack
@Hacking_Video
Medium
A Unique Email Verification Bypass
Hello Hackers! , in this write-up, I will tell you how I found a unique email verification bypass.
Hello Hackers! , in this write-up, I will tell you how I found a unique email verification bypass.Continue reading on Medium » (https://medium.com/@nub_error/a-unique-email-verification-bypass-6688e173a20c?source=rss------bug_bounty-5)
___________________________
@hacking_Attack
@Hacking_Video
___________________________
@hacking_Attack
@Hacking_Video
Medium
A Unique Email Verification Bypass
Hello Hackers! , in this write-up, I will tell you how I found a unique email verification bypass.