mirror of
https://github.com/lgandx/Responder.git
synced 2025-08-22 06:13:39 -07:00
Cygwin Support
Added ipconfig in case of Cygwin users. There is also another change requirement about the root validation. There is no root user on Cygwin so I changed the id 0 to my own user id. Maybe the solution would be check if Responder is running under Cygwin. Need to elaborate this better.
This commit is contained in:
parent
9cfa3cd3d0
commit
f12b36adeb
1 changed files with 6 additions and 3 deletions
|
@ -233,6 +233,9 @@ class Settings:
|
||||||
except:
|
except:
|
||||||
try:
|
try:
|
||||||
NetworkCard = subprocess.check_output(["ip", "address", "show"])
|
NetworkCard = subprocess.check_output(["ip", "address", "show"])
|
||||||
|
except:
|
||||||
|
try:
|
||||||
|
NetworkCard = subprocess.check_output(["ipconfig"])
|
||||||
except subprocess.CalledProcessError as ex:
|
except subprocess.CalledProcessError as ex:
|
||||||
NetworkCard = "Error fetching Network Interfaces:", ex
|
NetworkCard = "Error fetching Network Interfaces:", ex
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue