More drei stuff

This commit is contained in:
Miroslav Stampar
2019-05-02 10:22:44 +02:00
parent d465007dfe
commit 6dbf24531c
8 changed files with 15 additions and 15 deletions

View File

@@ -8,6 +8,7 @@ See the file 'LICENSE' for copying permission
import binascii
from lib.core.common import Backend
from lib.core.common import getBytes
from lib.core.compat import xrange
from lib.core.data import logger
from lib.core.exception import SqlmapUnsupportedFeatureException
@@ -67,7 +68,7 @@ class Takeover(GenericTakeover):
raise SqlmapUnsupportedFeatureException(errMsg)
shellcodeChar = ""
hexStr = binascii.hexlify(self.shellcodeString[:-1])
hexStr = binascii.hexlify(getBytes(self.shellcodeString[:-1]))
for hexPair in xrange(0, len(hexStr), 2):
shellcodeChar += "CHAR(0x%s)+" % hexStr[hexPair:hexPair + 2]