angryip / angryip/ipscan

Command line failure through Python subprocess

オープン
#107 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
5.1k
フォーク
835
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。