Giter Club home page Giter Club logo

Comments (14)

GamehunterKaan avatar GamehunterKaan commented on August 16, 2024

What version of python are you using?

from autopwn-suite.

dawstudiocenter avatar dawstudiocenter commented on August 16, 2024

Same error on my mac / Monterey 12.5 .
Python version is 3.8.9.

from autopwn-suite.

GamehunterKaan avatar GamehunterKaan commented on August 16, 2024

Python version is 3.8.9.

This project was created for python 3.10. I recommend you to try using that version.

from autopwn-suite.

Fipsa avatar Fipsa commented on August 16, 2024

Thank you. Now I'm on python 3.10.
New problem:
Traceback (most recent call last):
File "/Users/xxx/AutoPWN-Suite/autopwn.py", line 9, in
from modules.scanner import AnalyseScanResults, DiscoverHosts, NoiseScan, PortScan
File "/Users/xxx/AutoPWN-Suite/modules/scanner.py", line 6, in
from nmap import PortScanner
ImportError: cannot import name 'PortScanner' from 'nmap' (/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/nmap/init.py)

from autopwn-suite.

GamehunterKaan avatar GamehunterKaan commented on August 16, 2024

Did you install dependencies using sudo pip install -r requirements.txt ?

from autopwn-suite.

Fipsa avatar Fipsa commented on August 16, 2024

Yes. Still the same error:

Traceback (most recent call last):
File "/Users/xxx/AutoPWN-Suite/autopwn.py", line 9, in
from modules.scanner import AnalyseScanResults, DiscoverHosts, NoiseScan, PortScan
File "/Users/xxx/AutoPWN-Suite/modules/scanner.py", line 6, in
from nmap import PortScanner
ImportError: cannot import name 'PortScanner' from 'nmap' (/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/nmap/init.py)

from autopwn-suite.

GamehunterKaan avatar GamehunterKaan commented on August 16, 2024

That is weird. After every commit automatic tests are being ran on Linux and MacOS. Just like this one. I have also had other people contacted me after using it on MacOS telling that its working fine. Maybe there is an issue with python site-packages? Running pip uninstall nmap and pip install python-nmap might fix it. Or you might have to manualy delete nmap package from site-packages directory.

from autopwn-suite.

Fipsa avatar Fipsa commented on August 16, 2024

After adding Home-brew (as in your exemple on MacOs) it's worse (no more location :

Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/bin/autopwn-suite", line 5, in
from autopwn_suite.autopwn import main
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/autopwn_suite/autopwn.py", line 9, in
from modules.scanner import AnalyseScanResults, DiscoverHosts, NoiseScan, PortScan
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/autopwn_suite/modules/scanner.py", line 6, in
from nmap import PortScanner
ImportError: cannot import name 'PortScanner' from 'nmap' (unknown location)

from autopwn-suite.

GamehunterKaan avatar GamehunterKaan commented on August 16, 2024

Did you run pip install -r requirements.txt after?

from autopwn-suite.

dawstudiocenter avatar dawstudiocenter commented on August 16, 2024

I finally get it running on fresh MacOs Monterey 2.5 upgrade.
I need to :

from autopwn-suite.

Fipsa avatar Fipsa commented on August 16, 2024

I did it. Python 3.10.6, pip3 22.2.2 and iproute2mac.
After few errors I relinked files:

The: "sudo python3 autopwn.py -y" same error:

Traceback (most recent call last):
File "/Users/xxx/AutoPWN-Suite/autopwn.py", line 9, in
from modules.scanner import AnalyseScanResults, DiscoverHosts, NoiseScan, PortScan
File "/Users/xxx/AutoPWN-Suite/modules/scanner.py", line 6, in
from nmap import PortScanner
ImportError: cannot import name 'PortScanner' from 'nmap' (/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/nmap/init.py)

I deleted and reinstalled nmap, same error.

Here is the content of "init.py":

from .nmap import nmap

And content of "nmap.py" file:

def nmap(a, b, c, d, curvefn=None, normfn=None):
"""
Returns a function that maps a number n from range (a, b) onto a range
(x, y). If no curvefn is given, linear mapping will be used. Optionally a
normalisation function normfn can be provided to transform output.
"""
if not curvefn:
curvefn = lambda x: x

def map(n):
    r = 1.0 * (n - a) / (b - a)
    out = curvefn(r) * (d - c) + c
    if not normfn:
        return out
    return normfn(out)
return map

if name == 'main':
mapfn = nmap(0, 100, 500, 1000)
assert mapfn(0) == 500
assert mapfn(100) == 1000
assert mapfn(50) == 750
print('done')

So, where is 'PortScanner' in 'nmap'?

from autopwn-suite.

GamehunterKaan avatar GamehunterKaan commented on August 16, 2024

You installed the "nmap" package. You have to install "python-nmap" package instead.

from autopwn-suite.

Fipsa avatar Fipsa commented on August 16, 2024

Installation front folder by "install" not changed the problem, so I replaced folder nmap directly in "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/"
It's work !!!
Thank you very much!

from autopwn-suite.

GamehunterKaan avatar GamehunterKaan commented on August 16, 2024

Your welcome! I am glad I could help. Closing this issue as completed.

from autopwn-suite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.