Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f950986

Browse files
committed
Removed unused functions
1 parent 430bb74 commit f950986

2 files changed

Lines changed: 0 additions & 31 deletions

File tree

lib/core/common.py

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -453,36 +453,6 @@ def strToHex(inpStr):
453453

454454
return hexStr
455455

456-
def fileToStr(fileName):
457-
"""
458-
@param fileName: file path to read the content and return as a no
459-
NEWLINE string.
460-
@type fileName: C{file.open}
461-
462-
@return: the file content as a string without TAB and NEWLINE.
463-
@rtype: C{str}
464-
"""
465-
466-
filePointer = codecs.open(fileName, "rb")
467-
fileText = filePointer.read()
468-
469-
return fileText.replace(" ", "").replace("\t", "").replace("\r", "").replace("\n", " ")
470-
471-
def fileToHex(fileName):
472-
"""
473-
@param fileName: file path to read the content and return as an
474-
hexadecimal string.
475-
@type fileName: C{file.open}
476-
477-
@return: the file content as an hexadecimal string.
478-
@rtype: C{str}
479-
"""
480-
481-
fileText = fileToStr(fileName)
482-
hexFile = strToHex(fileText)
483-
484-
return hexFile
485-
486456
def readInput(message, default=None):
487457
"""
488458
@param message: message to display on terminal.

lib/takeover/web.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
from extra.cloak.cloak import decloak
1616
from lib.core.agent import agent
1717
from lib.core.common import decloakToNamedTemporaryFile
18-
from lib.core.common import fileToStr
1918
from lib.core.common import getDirs
2019
from lib.core.common import getDocRoot
2120
from lib.core.common import ntToPosixSlashes

0 commit comments

Comments
 (0)