mirror of
https://github.com/lgandx/Responder.git
synced 2025-08-22 06:13:39 -07:00
SMBFinger/Finger also exhibits the same issue
This commit is contained in:
parent
2a185e31c8
commit
66eace9853
1 changed files with 181 additions and 176 deletions
|
@ -148,6 +148,11 @@ def OsNameClientVersion(data):
|
||||||
def GetHostnameAndDomainName(data):
|
def GetHostnameAndDomainName(data):
|
||||||
try:
|
try:
|
||||||
DomainJoined, Hostname = tuple([e.replace('\x00','') for e in data[81:].split('\x00\x00\x00')[:2]])
|
DomainJoined, Hostname = tuple([e.replace('\x00','') for e in data[81:].split('\x00\x00\x00')[:2]])
|
||||||
|
#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
|
return Hostname, DomainJoined
|
||||||
except:
|
except:
|
||||||
return "Could not get Hostname.", "Could not get Domain joined"
|
return "Could not get Hostname.", "Could not get Domain joined"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue