mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
minor optimization
This commit is contained in:
parent
7c1af97852
commit
440b7efe55
18 changed files with 44 additions and 44 deletions
|
|
@ -62,10 +62,10 @@ def md5hash(value):
|
|||
|
||||
def orddecode(value):
|
||||
packedString = struct.pack("!"+"I" * len(value), *value)
|
||||
return "".join([chr(char) for char in struct.unpack("!"+"I"*(len(packedString)/4), packedString)])
|
||||
return "".join(chr(char) for char in struct.unpack("!"+"I"*(len(packedString)/4), packedString))
|
||||
|
||||
def ordencode(value):
|
||||
return tuple([ord(char) for char in value])
|
||||
return tuple(ord(char) for char in value)
|
||||
|
||||
def sha1hash(value):
|
||||
if sys.modules.has_key('hashlib'):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue