Results 1 to 4 of 4

Thread: Kali 2.0 pysocks issue - not backward compatible (weevely broken)

  1. #1
    Join Date
    2015-Sep
    Posts
    1

    Kali 2.0 pysocks issue - not backward compatible (weevely broken)

    Recently I noticed while using weevely; that sockshandler does not exist in pysocks in Kali 2.0

    Code:
    # weevely http://[REDACTED]/backdoor.txt%00 password
    Traceback (most recent call last):
      File "./weevely.py", line 98, in <module>
        main(arguments)
      File "./weevely.py", line 48, in main
        modules.load_modules(session)
      File "/usr/share/weevely/core/modules.py", line 24, in load_modules
        (module_group, module_name), fromlist=["*"]
      File "/usr/share/weevely/modules/shell/php.py", line 4, in <module>
        from core.channels.channel import Channel
      File "/usr/share/weevely/core/channels/channel.py", line 8, in <module>
        import sockshandler
    ImportError: No module named sockshandler
    it seems the latest pysocks release didn't include the sockahandler backward-compat file:: => https://github.com/Anorov/PySocks

    This means weevely is broken in Kali 2.0 until a fix is provided, possibly other tools could be impacted; provided they require the sockshandler module.

  2. #2
    Join Date
    2015-Sep
    Posts
    1
    I fix it on my kali 2.0 system:

    1) Download last PySocks from python site https://pypi.python.org/pypi/PySocks/
    2) Unzip archive into /tmp/ directory
    3) Run "chmod 755 /tmp/PySocks/setup.py"
    4) Run build "/tmp/PySocks/setup.py build"
    5) Run install "/tmp/PySocks/setup.py install"

    Now you can connect to you backdoor from weevely.
    Last edited by icekvot; 2015-09-15 at 12:13.

  3. #3
    Join Date
    2016-Jul
    Posts
    2
    and what about the missing arguments

    $ ./weevely.py
    [+] weevely 3.0
    [!] Error: too few arguments

    [+] Run terminal to the target
    weevely <URL> <password>

    [+] Load session file
    weevely session <path>

    [+] Generate backdoor agent
    weevely generate <password> <path>

  4. #4
    Join Date
    2015-Dec
    Posts
    1
    Thanks a lot icekvot ... that worked for me.

Similar Threads

  1. Update issue - broken package
    By natv in forum TroubleShooting Archive
    Replies: 3
    Last Post: 2016-09-23, 17:35
  2. Weevely not working
    By comertcimen in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2015-08-20, 16:50

Posting Permissions

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