angryip / angryip/ipscan

Command line failure through Python subprocess

Ouverte
#107 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Java
Étoiles
5.1k
Forks
835
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.