mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
Removed unused functions
This commit is contained in:
@@ -453,36 +453,6 @@ def strToHex(inpStr):
|
|||||||
|
|
||||||
return hexStr
|
return hexStr
|
||||||
|
|
||||||
def fileToStr(fileName):
|
|
||||||
"""
|
|
||||||
@param fileName: file path to read the content and return as a no
|
|
||||||
NEWLINE string.
|
|
||||||
@type fileName: C{file.open}
|
|
||||||
|
|
||||||
@return: the file content as a string without TAB and NEWLINE.
|
|
||||||
@rtype: C{str}
|
|
||||||
"""
|
|
||||||
|
|
||||||
filePointer = codecs.open(fileName, "rb")
|
|
||||||
fileText = filePointer.read()
|
|
||||||
|
|
||||||
return fileText.replace(" ", "").replace("\t", "").replace("\r", "").replace("\n", " ")
|
|
||||||
|
|
||||||
def fileToHex(fileName):
|
|
||||||
"""
|
|
||||||
@param fileName: file path to read the content and return as an
|
|
||||||
hexadecimal string.
|
|
||||||
@type fileName: C{file.open}
|
|
||||||
|
|
||||||
@return: the file content as an hexadecimal string.
|
|
||||||
@rtype: C{str}
|
|
||||||
"""
|
|
||||||
|
|
||||||
fileText = fileToStr(fileName)
|
|
||||||
hexFile = strToHex(fileText)
|
|
||||||
|
|
||||||
return hexFile
|
|
||||||
|
|
||||||
def readInput(message, default=None):
|
def readInput(message, default=None):
|
||||||
"""
|
"""
|
||||||
@param message: message to display on terminal.
|
@param message: message to display on terminal.
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ import re
|
|||||||
from extra.cloak.cloak import decloak
|
from extra.cloak.cloak import decloak
|
||||||
from lib.core.agent import agent
|
from lib.core.agent import agent
|
||||||
from lib.core.common import decloakToNamedTemporaryFile
|
from lib.core.common import decloakToNamedTemporaryFile
|
||||||
from lib.core.common import fileToStr
|
|
||||||
from lib.core.common import getDirs
|
from lib.core.common import getDirs
|
||||||
from lib.core.common import getDocRoot
|
from lib.core.common import getDocRoot
|
||||||
from lib.core.common import ntToPosixSlashes
|
from lib.core.common import ntToPosixSlashes
|
||||||
|
|||||||
Reference in New Issue
Block a user