I finally figured how to get TheMiddler running on BT4 Pre Final. Basically Python2.6 was missing. This is what I did to get it running:
#Prerequisits: aptitude install build-essential libncursesw5-dev libreadline5-dev libssl-dev libgdbm-dev libbz2-dev libc6-dev libsqlite3-dev libdb-dev tk-dev # Download/extract the Python source file cd /tmp/ wget http://python.org/ftp/python/2.6.3/Python-2.6.3.tgz tar -xfvz Python-2.6.3.tgz cd Python-* # Configure, build and install it into /usr/local/python/2.6.3/ ./configure --prefix=/usr/local/python/2.6.3 make make install # Link python binary into /usr/bin/ as python2.6 or skip it as the path will be added to $PATH later on ln -s /usr/local/python/2.6.3/bin/python /usr/bin/python2.6 #Edit the .bashrc file and add the following to the end: PATH=$PATH:/usr/local/python/2.6.3/bin #Getting Scapy for Python 2.6 wget http://www.secdev.org/projects/scapy/files/scapy-latest.zip unzip scapy-latest.zip cd scapy-* python2.6 ./setup.py install #Installing netfilter aptitude install libdumbnet-dev python-libpcap python-beautifulsoup python-scapy svn co https://svn.bolloretelecom.eu/opensource/python-netfilter/trunk/ python-netfilter cd python-netfilter python2.6 setup.py install cd .. #Installing TheMiddler svn checkout http://middler.googlecode.com/svn/trunk/ TheMiddler cd TheMiddler python2.6 setup.py install #Running TheMiddler python2.6 middler.py --help Nils wrote: > Thanks, that solved that issue! > After this it looks like the "libmiddler/proxies" libraries haven't been > copied by the setup.py script. > > middler.py -h > Traceback (most recent call last): > File "/usr/bin/middler.py", line 2, in <module> > import libmiddler as ml > File "/usr/lib/python2.5/site-packages/libmiddler/__init__.py", line > 4, in <module> > import proxies > ImportError: No module named proxies > > I coppied the missing files manually ending up with some more subsequent > errors though. > > mkdir /usr/lib/python2.5/site-packages/libmiddler/proxies/ > cp -r TheMiddler/libmiddler/proxies/* > /usr/lib/python2.5/site-packages/libmiddler/proxies/ > > middler.py -h > Traceback (most recent call last): > File "/usr/bin/middler.py", line 2, in <module> > import libmiddler as ml > File "/usr/lib/python2.5/site-packages/libmiddler/__init__.py", line > 4, in <module> > import proxies > File > "/usr/lib/python2.5/site-packages/libmiddler/proxies/__init__.py", line > 2, in <module> > import http.http_proxy > File > "/usr/lib/python2.5/site-packages/libmiddler/proxies/http/http_proxy.py", > line 84, in <module> > for filename in os.listdir(parserdir): > OSError: [Errno 2] No such file or directory: > '/usr/lib/python2.5/site-packages/libmiddler/plugins/http' > > Before I put more effort on analyzing the source code with my little > Python knowledge......did anyone else get this running on BT4? > > Thanks! > Nils > > > > Rob Fuller wrote: > >> Looks like there might either be a typo in the code currently >> (scapy.all) or a difference between python 2.5 and 2.6 >> >> In the file [1], on line 13, try changing 'from scapy.all import *' to >> 'from scapy import *'. Let me warn you, I am no python expert, so I >> don't know how well this change will go over. >> >> -- >> Rob Fuller | Mubix >> Room362.com | Hak5.org | TheAcademyPro.com >> >> >> >> On Sun, Oct 11, 2009 at 4:42 PM, Nils <[email protected]> wrote: >> >> >>> I was playing around with Jay's TheMiddler lately and want to include it >>> in my evil access point project. >>> The 1.0 version from Inguardians web pages works OK for me on BT4 pre >>> final but I wasn't able to disable the ARP spoofing. While checking the >>> source code I figured --arpspoof_off isn't implemented yet. >>> Then I fetched the latest source from google and followed the >>> installation instructions from here: >>> http://code.google.com/p/middler/wiki/Installation >>> >>> I stuck with the following error message on my BT4 HD installation: >>> >>> middler.py -h >>> Traceback (most recent call last): >>> File "/usr/bin/middler.py", line 2, in <module> >>> import libmiddler as ml >>> File "/usr/lib/python2.5/site-packages/libmiddler/__init__.py", line >>> 2, in <module> >>> import traffic_capture >>> File "/usr/lib/python2.5/site-packages/libmiddler/traffic_capture.py", >>> line 13, in <module> >>> from scapy.all import * >>> ImportError: No module named all >>> >>> >>> Any suggestions? >>> >>> >>> Thanks, >>> Nils >>> >>> _______________________________________________ >>> Pauldotcom mailing list >>> [email protected] >>> http://mail.pauldotcom.com/cgi-bin/mailman/listinfo/pauldotcom >>> Main Web Site: http://pauldotcom.com >>> >>> >>> >> _______________________________________________ >> Pauldotcom mailing list >> [email protected] >> http://mail.pauldotcom.com/cgi-bin/mailman/listinfo/pauldotcom >> Main Web Site: http://pauldotcom.com >> >> > _______________________________________________ > Pauldotcom mailing list > [email protected] > http://mail.pauldotcom.com/cgi-bin/mailman/listinfo/pauldotcom > Main Web Site: http://pauldotcom.com > _______________________________________________ Pauldotcom mailing list [email protected] http://mail.pauldotcom.com/cgi-bin/mailman/listinfo/pauldotcom Main Web Site: http://pauldotcom.com
