angryip / angryip/ipscan

Command line failure through Python subprocess

Offen
#107 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Java
Sterne
5.1k
Forks
835
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Hello,
First thanks for you software, it is awesome and works really well.
Well, except in one case, but I'm trying to automatize its use in a particular case:
I'm developping a python script in which I would like to scan all IP addresses and extract the one that matches a particular MAC address.
When I launch the command "Angry IP Scanner\ipscan.exe" -sq -f:range 10.37.64.0 10.37.64.255 -o c:\knxnet\scan.txt in Windows command line it perfectly works.
When I launch the same command from the Python subprocess.run method, I end up with a pop up saying that the feeder is unknown.
I have several cases:
- if I send subprocess.run(["C:\Program Files\Angry IP Scanner\ipscan.exe","-sq","-f:file c:/knxnet/file_ip_to_scan","-o c:\knxnet\scan.txt"]), I end up with the message "feeder unknown: file c:/file_ip_to_scan" (my file contains a list of ip addresses)
- if I send subprocess.run(["C:\Program Files\Angry IP Scanner\ipscan.exe","-sq","-f:range 10.37.64 0 10.37.64.255","-o c:\knxnet\scan.txt"]), I end up with the message "feeder unknown: 255"
as if it could not interprete the feeder information ?

Do you have any idea of what could be wrong (maybe in the feeder's syntax)

Is there a way to set fetchers with command lines ? actually I would just need the fetchers "ping" and "MAC address" for my purpose ...

thank you

Alexandre

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.