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

Skip to content

Commit 4e36bba

Browse files
committed
Update related to the last commit
1 parent 603e973 commit 4e36bba

3 files changed

Lines changed: 10 additions & 9 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.revision import getRevisionNumber
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.0.9.5"
22+
VERSION = "1.0.9.6"
2323
REVISION = getRevisionNumber()
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}

sqlmap.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,6 @@ def modulePath():
8585
return getUnicode(os.path.dirname(os.path.realpath(_)), encoding=sys.getfilesystemencoding() or UNICODE_ENCODING)
8686

8787
def checkEnvironment():
88-
global conf
89-
global kb
90-
9188
try:
9289
os.path.isdir(modulePath())
9390
except UnicodeEncodeError:
@@ -104,10 +101,14 @@ def checkEnvironment():
104101
logger.critical(errMsg)
105102
raise SystemExit
106103

107-
# Patch for pip environment
104+
# Patch for pip (import) environment
108105
if "sqlmap.sqlmap" in sys.modules:
109-
kb = sys.modules["lib.core.data"].kb
110-
conf = sys.modules["lib.core.data"].conf
106+
for _ in ("cmdLineOptions", "conf", "kb"):
107+
globals()[_] = getattr(sys.modules["lib.core.data"], _)
108+
109+
for _ in ("SqlmapBaseException", "SqlmapShellQuitException", "SqlmapSilentQuitException", "SqlmapUserQuitException"):
110+
globals()[_] = getattr(sys.modules["lib.core.exception"], _)
111+
111112

112113
def main():
113114
"""

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ e60456db5380840a586654344003d4e6 lib/core/readlineng.py
4545
5ef56abb8671c2ca6ceecb208258e360 lib/core/replication.py
4646
99a2b496b9d5b546b335653ca801153f lib/core/revision.py
4747
7c15dd2777af4dac2c89cab6df17462e lib/core/session.py
48-
b665e9ff92a2b1010d39c6dabc9a44e4 lib/core/settings.py
48+
c8d50922b448e3d60c4b0812da8748ab lib/core/settings.py
4949
7af83e4f18cab6dff5e67840eb65be80 lib/core/shell.py
5050
23657cd7d924e3c6d225719865855827 lib/core/subprocessng.py
5151
0bc2fae1dec18cdd11954b22358293f2 lib/core/target.py
@@ -218,7 +218,7 @@ c3cc8b7727161e64ab59f312c33b541a shell/stager.aspx_
218218
1f7f125f30e0e800beb21e2ebbab18e1 shell/stager.jsp_
219219
01e3505e796edf19aad6a996101c81c9 shell/stager.php_
220220
56702e95555adee718b6a11ee7098fd4 sqlmapapi.py
221-
148e4180a3e19ef26839ba49a9d2d3c7 sqlmap.py
221+
3d4d59905db17705e7c74680f928199b sqlmap.py
222222
1316deb997418507e76221c84ec99946 tamper/apostrophemask.py
223223
a6efe8f914c769c52afec703bd73609f tamper/apostrophenullencode.py
224224
b1c56983919b69f4f6f0e7929c881e7a tamper/appendnullbyte.py

0 commit comments

Comments
 (0)