Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Receiving XML exception from nmap.scan() results.
Post: RE: Receiving XML exception from nmap.scan() resul...

Hm. Tried to use -oX . python-nmap tried to wrap XML into XML. Now I just tried using without -oG and without -oX. Now it works. Cheers, TK
PythonNmap General Coding Help 4 4,118 Jan-21-2020, 04:41 AM
    Thread: Receiving XML exception from nmap.scan() results.
Post: RE: Receiving XML exception from nmap.scan() resul...

Yeah, after I posted I used a validator. Confirmed the same message. However, the # is expected. There's a few formats nmap can output in, including XML. Meaning, I don't need to use python-nmap...
PythonNmap General Coding Help 4 4,118 Jan-20-2020, 12:26 PM
    Thread: Receiving XML exception from nmap.scan() results.
Post: Receiving XML exception from nmap.scan() results.

Hi All, I'm making use of the python-nmap library. However, running a basic scan against 10.0.0.17/255.255.255.0 or more precisely 10.0.0.17/24, yields the following exception on the returned XM...
PythonNmap General Coding Help 4 4,118 Jan-20-2020, 05:19 AM
    Thread: Trying to use python-nmap but receiving however python2 or 3 can't find PortScanner.
Post: RE: Trying to use python-nmap but receiving howeve...

Nice! That's handy! ( irt pyenv ) Never realized pip3 existed either. This is very helpful!
PythonNmap General Coding Help 21 10,957 Jan-19-2020, 07:54 PM
    Thread: Trying to use python-nmap but receiving however python2 or 3 can't find PortScanner.
Post: RE: Trying to use python-nmap but receiving howeve...

I uninstalled all nmap python3 modules I could find and installed the specific python-nmap from python2 onto the python3 libraries, and it appears to have worked like a charm: # python3 -m pip instal...
PythonNmap General Coding Help 21 10,957 Jan-19-2020, 07:29 PM
    Thread: Trying to use python-nmap but receiving however python2 or 3 can't find PortScanner.
Post: RE: Trying to use python-nmap but receiving howeve...

Tried nmap3. #!/bin/python3 import sys import getopt import nmap3 import inspect print(inspect.getfile(nmap3)) print(nmap3.__file__) import xml.dom.minidom, xml.etree.ElementTree as et def nmapS...
PythonNmap General Coding Help 21 10,957 Jan-19-2020, 07:09 PM
    Thread: Trying to use python-nmap but receiving however python2 or 3 can't find PortScanner.
Post: RE: Trying to use python-nmap but receiving howeve...

(Jan-19-2020, 04:11 PM)buran Wrote: Hm. that is strange you have python-nmap installed for both python2 and python3 so, you shoould have also /usr/local/lib/python3.6/site-packages/nmap/nmap.py fil...
PythonNmap General Coding Help 21 10,957 Jan-19-2020, 06:54 PM
    Thread: Trying to use python-nmap but receiving however python2 or 3 can't find PortScanner.
Post: RE: Trying to use python-nmap but receiving howeve...

Hmm, this is handy. Used this code: print(nmap.__file__)and it printed /usr/local/lib/python3.6/site-packages/nmap/__init__.pyI have python 2.7.X installed as well. The nmap module for that guy i...
PythonNmap General Coding Help 21 10,957 Jan-19-2020, 03:54 PM
    Thread: Trying to use python-nmap but receiving however python2 or 3 can't find PortScanner.
Post: RE: Trying to use python-nmap but receiving howeve...

I'm editing it in the same folder and user that I'm running it from. Any way to get more debug info to trace where it's getting it's packages from?
PythonNmap General Coding Help 21 10,957 Jan-19-2020, 03:32 PM
    Thread: Trying to use python-nmap but receiving however python2 or 3 can't find PortScanner.
Post: RE: Trying to use python-nmap but receiving howeve...

Nope. Ran this from the location I'm executing the script from: Error:$ ls -altri *nmap* ls: cannot access *nmap*: No such file or directory
PythonNmap General Coding Help 21 10,957 Jan-19-2020, 03:23 PM
    Thread: Trying to use python-nmap but receiving however python2 or 3 can't find PortScanner.
Post: RE: Trying to use python-nmap but receiving howeve...

Ya saw that. Meant to come back and edit that since I had the previous error still stuck in the paste buffer. However, this forum only allows that as long as the post is < 10 minutes old. Took o...
PythonNmap General Coding Help 21 10,957 Jan-19-2020, 03:16 PM
    Thread: Trying to use python-nmap but receiving however python2 or 3 can't find PortScanner.
Post: RE: Trying to use python-nmap but receiving howeve...

Hmm, I've changed the function name but same result. #!/bin/python import sys import getopt import nmap import xml.dom.minidom, xml.etree.ElementTree as et; def nmapScan(vlan, netmask): # N...
PythonNmap General Coding Help 21 10,957 Jan-19-2020, 02:36 PM
    Thread: Trying to use python-nmap but receiving however python2 or 3 can't find PortScanner.
Post: RE: Trying to use python-nmap but receiving howeve...

(face palm) Thanks man. Right, it'll call the local function. Guess what I was thinking is that it calls a static function on a class and will know that I'm referencing a class static function si...
PythonNmap General Coding Help 21 10,957 Jan-19-2020, 02:17 PM
    Thread: Trying to use python-nmap but receiving however python2 or 3 can't find PortScanner.
Post: Trying to use python-nmap but receiving however py...

Hi All, Given this code snippet, could you please help me understand what am I missing? High level overview: 1) I've imported python-nmap 2) Imported using import nmap 3) Receiving AttributeError...
PythonNmap General Coding Help 21 10,957 Jan-19-2020, 12:58 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020