angryip / angryip/ipscan

Command line failure through Python subprocess

Abierto
#107 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Java
Estrellas
5.1k
Forks
835
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.