Results 1 to 7 of 7

Thread: Finding Errors in setup.py for The Middler

  1. #1
    Member Israel213's Avatar
    Join Date
    Apr 2008
    Posts
    65

    Default Finding Errors in setup.py for The Middler

    I was very excited to see The Middler was included with RC2. I went to run setup.py and immediately encountered errors:

    Code:
    running build
    running build_py
    error: package directory 'middlerlib' does not exist
    At first I thought maybe bt had forgot to include a package with this but I combed the net for a minute and didn't find anything. I took a chance that maybe the middlerlib was really the folder in the directory called "libmiddler". Opened up setup.py and changed it to this:

    Code:
    packages = ['libmiddler','libmiddler.plugins','middler.plugins.support']
    Ran "python setup.py build" again and things seem to work up to the middler.plugins.support:

    Code:
    # python setup.py build
    running build
    running build_py
    creating build/lib/libmiddler/plugins
    copying libmiddler/plugins/plugin_metasploit.py -> build/lib/libmiddler/plugins
    copying libmiddler/plugins/__init__.py -> build/lib/libmiddler/plugins
    copying libmiddler/plugins/plugin_debug.py -> build/lib/libmiddler/plugins
    copying libmiddler/plugins/plugin_iframe_injection.py -> build/lib/libmiddler/plugins
    copying libmiddler/plugins/plugin_30x_redirect.py -> build/lib/libmiddler/plugins
    error: package directory 'middler/plugins/support' does not exist
    I tried a few things but can't seem to get this last part to work. Any help much appreciated.

  2. #2
    Super Moderator Archangel-Amael's Avatar
    Join Date
    Jan 2010
    Location
    Somewhere
    Posts
    8,012

    Default Re: Finding Errors in setup.py for The Middler

    Thanks for letting us know. I have moved this to the bug section. I will try and look into this a bit later on today.
    In the meantime can anyone else confirm this? Thanks.
    To be successful here you should read all of the following.
    ForumRules
    ForumFAQ
    If you are new to Back|Track
    Back|Track Wiki
    Failure to do so will probably get your threads deleted or worse.

  3. #3
    Junior Member
    Join Date
    Nov 2010
    Posts
    27

    Default Respuesta: Re: Finding Errors in setup.py for The Middler

    Hello,

    Yes. Encounter same errors.

  4. #4
    Member
    Join Date
    Feb 2010
    Posts
    78

    Default Re: Finding Errors in setup.py for The Middler

    Able to replicate results as well.
    Computer security is a temporary condition.

  5. #5
    Super Moderator Archangel-Amael's Avatar
    Join Date
    Jan 2010
    Location
    Somewhere
    Posts
    8,012

    Default Re: Finding Errors in setup.py for The Middler

    Ok I have found the problem with this package and am working on a fix. It will be in the repos soon.
    In the interim please be patient. I will try to update this thread once I know that the new package is available.

    Also please note that if you see a "setup" or other such similar (installer) file in a given package, we have already ran this and set things up for the user.
    So there is generally no need to run them again. If anything it may cause problems. That is not the case with this tool, but I am putting it out there considering others tried to use it as shown above.
    To be successful here you should read all of the following.
    ForumRules
    ForumFAQ
    If you are new to Back|Track
    Back|Track Wiki
    Failure to do so will probably get your threads deleted or worse.

  6. #6
    Member Israel213's Avatar
    Join Date
    Apr 2008
    Posts
    65

    Default Re: Finding Errors in setup.py for The Middler

    Thank You!

  7. #7
    Member Israel213's Avatar
    Join Date
    Apr 2008
    Posts
    65

    Default Re: Finding Errors in setup.py for The Middler

    Well, after much waiting I saw I had to enable the BackTrack Devel Repository instead of using just the default. Unfortunately the new package I just downloaded of the Middler didn't work either. I did get a little further in my own work fixing it though. I'll keep posting it here if anyone cares. I've found the app will actually compile if you change line 5 of the setup.py file to this:

    Code:
    packages = ['libmiddler','libmiddler.plugins','libmiddler.plugins']
    But when I go to run it I seem to get 2 errors in the python code itself:
    Code:
    # python ./middler.py
    Traceback (most recent call last):
      File "./middler.py", line 105, in <module>
        ml.traffic_capture.start()
      File "/pentest/spoofing/middler/libmiddler/traffic_capture.py", line 380, in start
        redirectIPTablesNewStart()
      File "/pentest/spoofing/middler/libmiddler/traffic_capture.py", line 189, in redirectIPTablesNewStart
        from netfilter.rule import Rule,Match,Target
    ImportError: No module named netfilter.rule

Similar Threads

  1. Need help finding a file
    By knirb01 in forum Beginners Forum
    Replies: 5
    Last Post: 04-22-2010, 02:27 PM
  2. Finding WPA Key
    By CamJ256 in forum OLD Newbie Area
    Replies: 2
    Last Post: 09-04-2009, 10:29 AM
  3. Dell Latitude D531 boot errors. (media errors)
    By Dutch in forum OLD BackTrack 4 NON working hardware
    Replies: 2
    Last Post: 08-20-2009, 05:54 PM
  4. The Middler
    By thetom in forum OLD BT4 Feature Requests
    Replies: 1
    Last Post: 03-06-2009, 11:29 AM
  5. The Middler
    By icedark in forum OLD BT4beta HowTo's
    Replies: 4
    Last Post: 02-20-2009, 08:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •