Fixed some tools and +x on some executables

This commit is contained in:
lgandx 2016-06-05 19:55:32 -05:00
parent f5a8bf0650
commit 8171a96b9e
9 changed files with 13 additions and 6 deletions

View file

@ -21,7 +21,7 @@ import logging
import socket
import time
import settings
import struct
try:
import sqlite3
except:
@ -383,3 +383,7 @@ def hexdump(src, l=0x16):
res.append(('%08X: %-'+str(l*(2+1)+1)+'s |%s|') % (i, hexa, text))
return '\n'.join(res)
def longueur(payload):
length = struct.pack(">i", len(''.join(payload)))
return length