added kali setup script and updated readme

This commit is contained in:
byt3bl33d3r 2015-06-15 00:18:55 +02:00
parent 7fc75d7bf8
commit bb8ee46b82
5 changed files with 18 additions and 8 deletions

View file

@ -12,6 +12,7 @@ Contact me at:
- IRC on Freenode: #MITMf
- Email: byt3bl33d3r@gmail.com
**Update: Installation steps have changed! Please read the new [instructions](#installation)**
**Before submitting issues, please read the [FAQ](#faq) and the appropriate [section](#submitting-issues).**
Available plugins
@ -81,12 +82,14 @@ How to install on Kali
Installation
============
If MITMf is not in your distro's repo or you just want the latest version:
- Run the command ```git clone https://github.com/byt3bl33d3r/MITMf.git``` to clone this directory
- Run the ```setup.sh``` script
- Run the command ```pip install --upgrade -r requirements.txt``` to install all Python dependencies
If you're rocking Kali and want the latest version:
- Clone this repository
- Run the ```kali_setup.sh``` script
On Kali Linux, if you get an error while installing the ```pypcap``` package or when starting MITMf you see: ```ImportError: no module named pcap```, run ```apt-get install python-pypcap``` to fix it
If you're rocking any other Linux distro:
- Clone this repository
- Run the ```other_setup.sh``` script
- Run the command ```pip install --upgrade -r requirements.txt``` to install all Python dependencies
Submitting Issues
=================

6
kali_setup.sh Executable file
View file

@ -0,0 +1,6 @@
#!/usr/bin/env bash
git submodule init && git submodule update --recursive
apt-get install -y python-capstone python-twisted python-requests python-scapy python-dnspython python-cryptography python-crypto
apt-get install -y python-msgpack python-configobj python-pefile python-ipy python-openssl python-pypcap
pip install Pillow mitmflib

3
other_setup.sh Normal file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env bash
git submodule init && git submodule update --recursive

View file

@ -170,6 +170,7 @@ class Inject(CacheKill, Plugin):
options.add_argument("--js-url", type=str, help="Location of your (presumably) malicious Javascript.")
options.add_argument("--html-url", type=str, help="Location of your (presumably) malicious HTML. Injected via hidden iframe.")
options.add_argument("--html-payload", type=str, default='', help="String you would like to inject.")
options.add_argument("--html-file", type=argparse.FileType('r'), help='File containg HTML you would like to inject')
options.add_argument("--match-str", type=str, default=None, help="String you would like to match and place your payload before. (</body> by default)")
options.add_argument("--preserve-cache", action="store_true", help="Don't kill the server/client caching.")
group = options.add_mutually_exclusive_group(required=False)

View file

@ -1,3 +0,0 @@
#!/usr/bin/env bash
git submodule init && git submodule update --recursive