mirror of
https://github.com/lgandx/Responder.git
synced 2025-12-07 13:11:29 +00:00
Fixed some tools and +x on some executables
This commit is contained in:
6
utils.py
6
utils.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user