mirror of
https://github.com/lgandx/Responder.git
synced 2025-08-21 22:03:30 -07:00
RunFinger.py max length fix
This commit is contained in:
parent
6f3cc4564c
commit
2a185e31c8
1 changed files with 5 additions and 0 deletions
|
@ -167,6 +167,11 @@ def GetHostnameAndDomainName(data):
|
|||
try:
|
||||
DomainJoined, Hostname = tuple([e.replace('\x00','') for e in data[81:].split('\x00\x00\x00')[:2]])
|
||||
Time = GetBootTime(data[60:68])
|
||||
#If max length domain name, there won't be a \x00\x00\x00 delineator to split on
|
||||
if Hostname == '':
|
||||
DomainJoined = data[81:110].replace('\x00','')
|
||||
Hostname = data[113:].replace('\x00','')
|
||||
|
||||
return Hostname, DomainJoined, Time
|
||||
except:
|
||||
return "Could not get Hostname.", "Could not get Domain joined"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue