Results 1 to 5 of 5

Thread: ImportError: No module named modules.models. when i run sslstrip

  1. #1
    Member
    Join Date
    Feb 2010
    Posts
    50

    Default ImportError: No module named modules.models. when i run sslstrip

    when i try to run sslstrip on my BT 5 r2
    i got this issues : /usr/local/lib/python2.6/dist-packages/django/db/__init__.py:19: DeprecationWarning: settings.DATABASE_* is deprecated; use settings.DATABASES instead.
    DeprecationWarning
    /usr/local/lib/python2.6/dist-packages/django/db/__init__.py:60: DeprecationWarning: Short names for ENGINE in database configurations are deprecated. Prepend default.ENGINE with 'django.db.backends.'
    DeprecationWarning
    Traceback (most recent call last):
    File "/usr/local/bin/sslstrip", line 30, in <module>
    from sslstrip.StrippingProxy import StrippingProxy
    File "/usr/local/lib/python2.6/dist-packages/sslstrip/StrippingProxy.py", line 20, in <module>
    from ClientRequest import ClientRequest
    File "/usr/local/lib/python2.6/dist-packages/sslstrip/ClientRequest.py", line 31, in <module>
    from ServerConnection import ServerConnection
    File "/usr/local/lib/python2.6/dist-packages/sslstrip/ServerConnection.py", line 30, in <module>
    from modules.models import *
    ImportError: No module named modules.models

    anyone hv ideas for this error.

    tks

  2. #2
    Very good friend of the forum maverik35's Avatar
    Join Date
    Sep 2009
    Location
    Debian land
    Posts
    734

    Default Re: ImportError: No module named modules.models. when i run sslstrip

    How do you exceute sslstrip?..Are you using proxy?

    Need more info as how are you setting up your sslstrip and iptables.

  3. #3
    Member
    Join Date
    Feb 2010
    Posts
    50

    Default Re: ImportError: No module named modules.models. when i run sslstrip

    root@bt:~# sslstrip -a -l 10000
    /usr/local/lib/python2.6/dist-packages/django/db/__init__.py:19: DeprecationWarning: settings.DATABASE_* is deprecated; use settings.DATABASES instead.
    DeprecationWarning
    /usr/local/lib/python2.6/dist-packages/django/db/__init__.py:60: DeprecationWarning: Short names for ENGINE in database configurations are deprecated. Prepend default.ENGINE with 'django.db.backends.'
    DeprecationWarning
    Traceback (most recent call last):
    File "/usr/local/bin/sslstrip", line 30, in <module>
    from sslstrip.StrippingProxy import StrippingProxy
    File "/usr/local/lib/python2.6/dist-packages/sslstrip/StrippingProxy.py", line 20, in <module>
    from ClientRequest import ClientRequest
    File "/usr/local/lib/python2.6/dist-packages/sslstrip/ClientRequest.py", line 31, in <module>
    from ServerConnection import ServerConnection
    File "/usr/local/lib/python2.6/dist-packages/sslstrip/ServerConnection.py", line 30, in <module>
    from modules.models import *
    ImportError: No module named modules.models

    I didn't use any proxy.

    tks for the reply

  4. #4
    Very good friend of the forum maverik35's Avatar
    Join Date
    Sep 2009
    Location
    Debian land
    Posts
    734

    Default Re: ImportError: No module named modules.models. when i run sslstrip

    Please, look up for sslstrip.py:
    Open up a terminal and type: updatedb
    then type: locate sslstrip or sslstrip.py

    The output can be a long listing , see where is located...

    The directory must be /pentest/web/sslstrip , I belive. Once there, run ssltrip.py -a -k -f (no need to use -l unless is a different port to 10000, which is the default, but if use it, it will make no harm).

    In that directory, you can reinstall the sslstrip if you wish: python sslstrip.py install.

    If you do not re-install it, then you will have to use the whole path to run it. If you install it, you can use like you do it. You have 2 ways to run it as you can see.

    Try both...
    Last edited by maverik35; 07-14-2012 at 11:52 AM.

  5. #5
    Member
    Join Date
    Feb 2010
    Posts
    50

    Default Re: ImportError: No module named modules.models. when i run sslstrip

    ok maverk35. many many thanks for help.

Similar Threads

  1. Replies: 1
    Last Post: 04-16-2011, 08:14 AM
  2. ImportError: No module named cPeach
    By c0d3r in forum OLD BackTrack 4 Software Related Issues
    Replies: 0
    Last Post: 08-11-2009, 01:39 PM
  3. Wireless card being named eth0
    By YFZero in forum OLD Newbie Area
    Replies: 4
    Last Post: 06-11-2009, 11:26 PM
  4. No module named wx
    By duventj in forum OLD BT3beta Software related issues
    Replies: 0
    Last Post: 09-12-2008, 11:29 AM
  5. ERROR: Module rt2570 does not exist in /proc/modules
    By arsenic in forum OLD Newbie Area
    Replies: 3
    Last Post: 08-06-2007, 11:45 PM

Posting Permissions

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