Results 1 to 5 of 5

Thread: [FIX] smbclient.py: not found

  1. #1
    Just burned his ISO
    Join Date
    Feb 2009
    Posts
    5

    Default [FIX] smbclient.py: not found

    [Bug]
    SMBClient.py does not exist

    [Details]
    When selecting SMBClient from "SMB Analysis in Vuln. Identification users get the following error message:

    SMB-Client, use help to get some assistance
    /bin/sh: smbclient.py: not found

    THE FIX:
    Code:
    cd ~/
    wget oss.coresecurity.com/repo/Impacket-0.9.6.0.tar.gz
    tar -zxvf Impacket-0.9.6.0.tar.gz
    cd Impacket-0.9.6.0 
    python setup.py install
    [Notes]
    While Impacket is used by a number of existing tools:

    root@bt:~# slocate SMBClient.py
    root@bt:~# slocate dcom.py
    /var/lib/python-support/python2.5/impacket/dcerpc/dcom.py
    /var/lib/python-support/python2.5/impacket/dcerpc/dcom.pyc
    /usr/share/python-support/python-impacket/impacket/dcerpc/dcom.py
    /pentest/fuzzers/voiper/sulley/impacket/dcerpc/dcom.py
    root@bt:~# cd /var/lib/python-support/python2.5/impacket/

    ...the SMBClient is an 'example' tool and is distrubuted in the /examples/ sub directory. It must have been missed somehow. By re-installing Impacket you get the full distribution. The link from the menu will start working again.

  2. #2
    Developer muts's Avatar
    Join Date
    Jan 2006
    Posts
    272

    Default Bad FIx

    This is actually a bad fix.
    You are installing the impacket from sources....what will happen when you want to upgrade ? Keep in minf that backtrack is no longer a static image...The solution would be to repackage the specific tools, and put them in a deb package for updates.

  3. #3
    Just burned his ISO
    Join Date
    Feb 2009
    Posts
    5

    Default

    muts,

    I suppose there are two fixes to consider.

    (1) An inteirm user fix that someone can copy and paste into their terminal to make it work while they wait for BT4-final.iso

    (2) A developer fix - a packaged deb file to replace the old buggy one. I can package this up for you quickly if you'd like.

  4. #4
    Just burned his ISO
    Join Date
    Feb 2008
    Posts
    7

    Default

    Maybe this is a fix:
    Code:
    apt-get install python-impacket python-impacket-doc python-pcapy
    python-pcapy is good to add too.

  5. #5
    Just burned his ISO
    Join Date
    Feb 2009
    Posts
    5

    Default

    The root cause of the issue is that the examples (smbclient.py) is not present in the official repository.

    As muts was saying -- the proper fix is to fix the repository so that end-users can simple re-install the impacket package from the repo.

Posting Permissions

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