Comments (14)
What version of python are you using?
from autopwn-suite.
Same error on my mac / Monterey 12.5 .
Python version is 3.8.9.
from autopwn-suite.
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.
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.
Did you install dependencies using sudo pip install -r requirements.txt
?
from autopwn-suite.
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.
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.
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.
Did you run pip install -r requirements.txt
after?
from autopwn-suite.
I finally get it running on fresh MacOs Monterey 2.5 upgrade.
I need to :
- install later python 3.10.6 (from there : https://www.python.org/ftp/python/3.10.6/python-3.10.6-macos11.pkg ) and then latest pip3 2.2.2.2 version.
- install 'nmap' and 'ip' command tool (thanks to homebrew, nota: to install ip tool = brew install iproute2mac )
Hope it helps.
from autopwn-suite.
I did it. Python 3.10.6, pip3 22.2.2 and iproute2mac.
After few errors I relinked files:
- brew link --overwrite [email protected]
- brew unlink [email protected] && brew link [email protected]
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.
You installed the "nmap" package. You have to install "python-nmap" package instead.
from autopwn-suite.
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.
Your welcome! I am glad I could help. Closing this issue as completed.
from autopwn-suite.
Related Issues (20)
- Cannot import name 'getuid' from 'os'
- Windows Issues
- Can't scan with nmap HOT 7
- Won't scan target HOT 5
- Web application testing error
- [Feature request] Credential Dumping
- Error while downloading exploits HOT 9
- Automatically extracting browser passwords HOT 1
- no howto using google cloud shell HOT 2
- v2.1.2 on git repository HOT 1
- TypeError: 'type' object is not subscriptable HOT 2
- Error with webhook (AttributeError: 'Namespace' object has no attribute 'reportwebhook'. Did you mean: 'report_webhook'?)
- Self SIgned Cert HOT 2
- Banner errors HOT 2
- Not able to install on termux
- API key HOT 3
- Error cannot access local variable 'data' where it is not associated with a value HOT 3
- ERROR [-] cannot access local variable 'data' where it is not associated with a value HOT 2
- name 'distro' is not defined
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autopwn-suite.