mirror of
https://github.com/lgandx/Responder.git
synced 2025-08-21 05:43:35 -07:00
Merge pull request #25 from joshuaskorich/master
added `ip` commands in addition to ifconfig and netstat
This commit is contained in:
commit
c9609bd8c6
1 changed files with 12 additions and 6 deletions
|
@ -229,6 +229,9 @@ class Settings:
|
||||||
|
|
||||||
try:
|
try:
|
||||||
NetworkCard = subprocess.check_output(["ifconfig", "-a"])
|
NetworkCard = subprocess.check_output(["ifconfig", "-a"])
|
||||||
|
except:
|
||||||
|
try:
|
||||||
|
NetworkCard = subprocess.check_output(["ip", "address", "show"])
|
||||||
except subprocess.CalledProcessError as ex:
|
except subprocess.CalledProcessError as ex:
|
||||||
NetworkCard = "Error fetching Network Interfaces:", ex
|
NetworkCard = "Error fetching Network Interfaces:", ex
|
||||||
pass
|
pass
|
||||||
|
@ -239,6 +242,9 @@ class Settings:
|
||||||
pass
|
pass
|
||||||
try:
|
try:
|
||||||
RoutingInfo = subprocess.check_output(["netstat", "-rn"])
|
RoutingInfo = subprocess.check_output(["netstat", "-rn"])
|
||||||
|
except:
|
||||||
|
try:
|
||||||
|
RoutingInfo = subprocess.check_output(["ip", "route", "show"])
|
||||||
except subprocess.CalledProcessError as ex:
|
except subprocess.CalledProcessError as ex:
|
||||||
RoutingInfo = "Error fetching Routing information:", ex
|
RoutingInfo = "Error fetching Routing information:", ex
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue