mirror of
https://github.com/lgandx/Responder.git
synced 2025-12-06 04:31:30 +00:00
fix: DHCP now working on VPN interface
This commit is contained in:
@@ -90,8 +90,12 @@ Respond_To_Requests = True
|
|||||||
DHCPClient = []
|
DHCPClient = []
|
||||||
|
|
||||||
def GetMacAddress(Interface):
|
def GetMacAddress(Interface):
|
||||||
|
try:
|
||||||
mac = netifaces.ifaddresses(Interface)[netifaces.AF_LINK][0]['addr']
|
mac = netifaces.ifaddresses(Interface)[netifaces.AF_LINK][0]['addr']
|
||||||
return binascii.unhexlify(mac.replace(':', '')).decode('latin-1')
|
return binascii.unhexlify(mac.replace(':', '')).decode('latin-1')
|
||||||
|
except:
|
||||||
|
mac = "00:00:00:00:00:00"
|
||||||
|
return binascii.unhexlify(mac.replace(':', '')).decode('latin-1')
|
||||||
|
|
||||||
##### IP Header #####
|
##### IP Header #####
|
||||||
class IPHead(Packet):
|
class IPHead(Packet):
|
||||||
|
|||||||
Reference in New Issue
Block a user