angryip / angryip/ipscan

Command line failure through Python subprocess

Open
#107 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
5.1k
Forks
835
PR merge metrics
No merged PRs in 30d

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.