mirror of
https://github.com/lgandx/Responder.git
synced 2025-07-06 04:51:23 -07:00
fixed minor isse
This commit is contained in:
parent
79dfe8ebd0
commit
350058c179
1 changed files with 5 additions and 2 deletions
|
@ -22,7 +22,7 @@ from odict import OrderedDict
|
||||||
import errno
|
import errno
|
||||||
import optparse
|
import optparse
|
||||||
from RunFingerPackets import *
|
from RunFingerPackets import *
|
||||||
__version__ = "1.2"
|
__version__ = "1.3"
|
||||||
|
|
||||||
parser = optparse.OptionParser(usage='python %prog -i 10.10.10.224\nor:\npython %prog -i 10.10.10.0/24', version=__version__, prog=sys.argv[0])
|
parser = optparse.OptionParser(usage='python %prog -i 10.10.10.224\nor:\npython %prog -i 10.10.10.0/24', version=__version__, prog=sys.argv[0])
|
||||||
|
|
||||||
|
@ -169,7 +169,10 @@ def dtoa(d):
|
||||||
|
|
||||||
def OsNameClientVersion(data):
|
def OsNameClientVersion(data):
|
||||||
try:
|
try:
|
||||||
length = struct.unpack('<H',data[43:45].encode('latin-1'))[0]
|
if PY2OR3 == "PY3":
|
||||||
|
length = struct.unpack('<H',data[43:45].encode('latin-1'))[0]
|
||||||
|
else:
|
||||||
|
length = struct.unpack('<H',data[43:45])[0]
|
||||||
if length > 255:
|
if length > 255:
|
||||||
OsVersion, ClientVersion = tuple([e.replace("\x00", "") for e in data[47+length:].split('\x00\x00\x00')[:2]])
|
OsVersion, ClientVersion = tuple([e.replace("\x00", "") for e in data[47+length:].split('\x00\x00\x00')[:2]])
|
||||||
return OsVersion, ClientVersion
|
return OsVersion, ClientVersion
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue