Skip to content

A simple as possible man in the middle written in python using scapy

Notifications You must be signed in to change notification settings

daniel4x/mitm-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mitm-python

A keep it simple project demonstrate how to perform a man in the middle attack with python + scapy.

alt text

Requirements:

  • Python version 2.7.13 (recommended), or above ...
  • It's recommended to use python virtual env in order to organize the project and manage your dependencies.
  • dependencies:
    Python fire for command line interface: pip install fire
    Scapy: pip install scapy
    libdnet: from git source: git https://github.com/dugsong/libdnet or from there's official site. If you are using git source then compile and run with ./configure && make and the install the model using python setup.py install, setup.py can be found at the python directory in libdnet.

Running:

python app.py -h - show help
python app.py target_ip router_ip interface - run the attack
Example:
python app.py 192.168.1.39 192.168.1.1 en0 - en0 is the default interface for OS X.

Remember:exclamation: the script only using arp poisoning in order to "steal" the session between your target and some access point. You may want to use Wireshark to inspect the target traffic or different tools for getting passwords or forging cookies for stealing sessions.

❗ This script made for learning purpose ❗

About

A simple as possible man in the middle written in python using scapy

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages