mirror of
https://github.com/lgandx/Responder.git
synced 2025-08-21 22:03:30 -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,9 +233,12 @@ class Settings:
|
|||
except:
|
||||
try:
|
||||
NetworkCard = subprocess.check_output(["ip", "address", "show"])
|
||||
except subprocess.CalledProcessError as ex:
|
||||
NetworkCard = "Error fetching Network Interfaces:", ex
|
||||
pass
|
||||
except:
|
||||
try:
|
||||
NetworkCard = subprocess.check_output(["ipconfig"])
|
||||
except subprocess.CalledProcessError as ex:
|
||||
NetworkCard = "Error fetching Network Interfaces:", ex
|
||||
pass
|
||||
try:
|
||||
DNS = subprocess.check_output(["cat", "/etc/resolv.conf"])
|
||||
except subprocess.CalledProcessError as ex:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue