mirror of
https://github.com/lgandx/Responder.git
synced 2025-08-20 13:23:38 -07:00
fix: DHCP now working on VPN interface
This commit is contained in:
parent
1dfa997da8
commit
88a2c6a53b
1 changed files with 7 additions and 3 deletions
|
@ -90,8 +90,12 @@ Respond_To_Requests = True
|
|||
DHCPClient = []
|
||||
|
||||
def GetMacAddress(Interface):
|
||||
try:
|
||||
mac = netifaces.ifaddresses(Interface)[netifaces.AF_LINK][0]['addr']
|
||||
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 #####
|
||||
class IPHead(Packet):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue