From 0bc4f8e1c340a0ed260600f5e6cc67b7fd8a91db Mon Sep 17 00:00:00 2001 From: byt3bl33d3r Date: Sat, 14 Mar 2015 14:17:58 +0100 Subject: [PATCH] -Added check for correct version of NetfilterQueue library -Updated README --- README.md | 2 +- mitmf.py | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3203326..36e1729 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ This tool is completely based on sergio-proxy https://code.google.com/p/sergio-p Dependency change! =================== -As of MITMF v0.9.5, DNS tampering support needs NetfilterQueue v0.6 which has yet to be merged into the main repo so it *cannot* be installed via pip or easy_install. +As of v0.9.5 DNS tampering support needs NetfilterQueue v0.6 which is currently a fork, so it *cannot* be installed via pip or easy_install. Download it from here https://github.com/fqrouter/python-netfilterqueue and manually install it. diff --git a/mitmf.py b/mitmf.py index add7576..3255577 100755 --- a/mitmf.py +++ b/mitmf.py @@ -21,9 +21,17 @@ import sys import argparse import os +try: + import netfilterqueue + if netfilterqueue.VERSION[1] is not 6: + print "[-] Wrong version of NetfilterQueue library installed!" + print "[-] Download it from here https://github.com/fqrouter/python-netfilterqueue and manually install it!" +except ImportError: + print "[-] NetfilterQueue library missing! DNS tampering will not work" + try: import user_agents -except: +except ImportError: print "[-] user_agents library missing! User-Agent parsing will be disabled!" mitmf_version = "0.9.5"