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

Skip to content

Commit 1cf0125

Browse files
committed
Minor refactoring
1 parent a33b045 commit 1cf0125

7 files changed

Lines changed: 0 additions & 15 deletions

File tree

lib/core/shell.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import rlcompleter
1111

1212
from lib.core import readlineng as readline
13-
from lib.core.common import Backend
1413
from lib.core.data import logger
1514
from lib.core.data import paths
1615
from lib.core.enums import AUTOCOMPLETE_TYPE

lib/parse/configfile.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@
55
See the file 'doc/COPYING' for copying permission
66
"""
77

8-
import codecs
9-
10-
from ConfigParser import MissingSectionHeaderError
11-
from ConfigParser import ParsingError
12-
138
from lib.core.common import checkFile
149
from lib.core.common import getUnicode
1510
from lib.core.common import openFile
@@ -20,7 +15,6 @@
2015
from lib.core.exception import SqlmapMissingMandatoryOptionException
2116
from lib.core.exception import SqlmapSyntaxException
2217
from lib.core.optiondict import optDict
23-
from lib.core.settings import UNICODE_ENCODING
2418

2519
config = None
2620

lib/takeover/web.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ def webInit(self):
205205
backdoorContent = decloak(os.path.join(paths.SQLMAP_SHELL_PATH, "backdoor.%s_" % self.webApi))
206206

207207
stagerContent = decloak(os.path.join(paths.SQLMAP_SHELL_PATH, "stager.%s_" % self.webApi))
208-
success = False
209208

210209
for directory in directories:
211210
if not directory:
@@ -357,6 +356,4 @@ def webInit(self):
357356
infoMsg += self.webBackdoorUrl
358357
logger.info(infoMsg)
359358

360-
success = True
361-
362359
break

lib/utils/api.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
import tempfile
1414
import time
1515

16-
from subprocess import PIPE
17-
1816
from lib.core.common import unArrayizeValue
1917
from lib.core.convert import base64pickle
2018
from lib.core.convert import hexencode

lib/utils/hash.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
from lib.core.common import dataToStdout
4545
from lib.core.common import getFileItems
4646
from lib.core.common import getPublicTypeMembers
47-
from lib.core.common import getUnicode
4847
from lib.core.common import hashDBRetrieve
4948
from lib.core.common import hashDBWrite
5049
from lib.core.common import normalizeUnicode

plugins/dbms/postgresql/filesystem.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import os
99

1010
from lib.core.common import randomInt
11-
from lib.core.data import kb
1211
from lib.core.data import logger
1312
from lib.core.exception import SqlmapUnsupportedFeatureException
1413
from lib.core.settings import LOBLKSIZE

plugins/generic/filesystem.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
from lib.core.common import isStackingAvailable
2121
from lib.core.common import isTechniqueAvailable
2222
from lib.core.common import readInput
23-
from lib.core.common import unArrayizeValue
2423
from lib.core.data import conf
2524
from lib.core.data import kb
2625
from lib.core.data import logger

0 commit comments

Comments
 (0)