Skip to content

Commit d7be168

Browse files
committed
Minor update
1 parent 60a306b commit d7be168

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

data/txt/sha256sums.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,11 @@ c4bfb493a03caf84dd362aec7c248097841de804b7413d0e1ecb8a90c8550bc0 lib/core/readl
188188
d1bd70c1a55858495c727fbec91e30af267459c8f64d50fabf9e4ee2c007e920 lib/core/replication.py
189189
1d0f80b0193ac5204527bfab4bde1a7aee0f693fd008e86b4b29f606d1ef94f3 lib/core/revision.py
190190
d2eb8e4b05ac93551272b3d4abfaf5b9f2d3ac92499a7704c16ed0b4f200db38 lib/core/session.py
191-
c48a44db58b2dfc611b4c0a0f2637f1b2cd03125e129bd53a4f55920dc7e8b50 lib/core/settings.py
191+
8e38e7d895f946b8631b9a93e4a52936fd309213816fd9db6f3458b977f49cf8 lib/core/settings.py
192192
1c5eab9494eb969bc9ce118a2ea6954690c6851cbe54c18373c723b99734bf09 lib/core/shell.py
193193
4eea6dcf023e41e3c64b210cb5c2efc7ca893b727f5e49d9c924f076bb224053 lib/core/subprocessng.py
194194
cdd352e1331c6b535e780f6edea79465cb55af53aa2114dcea0e8bf382e56d1a lib/core/target.py
195-
6cf11d8b00fa761046686437fe90565e708809f793e88a3f02527d0e49c4d2a8 lib/core/testing.py
195+
a9b3dca1c17f56bed8e07973c7f8603932012931947633781f7523c05cb2bed2 lib/core/testing.py
196196
2194ffd7891a9c6c012fb93e76222e33e85e49e6f1d351cd7664c5d306ebc675 lib/core/threads.py
197197
6f61e7946e368ee1450c301aaf5a26381a8ae31fc8bffa28afc9383e8b1fbc3f lib/core/unescaper.py
198198
8919863be7a86f46d2c41bd30c0114a55a55c5931be48e3cfc66dfa96b7109c8 lib/core/update.py

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from thirdparty import six
2020

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

lib/core/testing.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ def vulnTest():
8080

8181
retVal = True
8282
count = 0
83+
cleanups = []
8384

8485
while True:
8586
address, port = "127.0.0.1", random.randint(10000, 65535)
@@ -130,22 +131,27 @@ def _thread():
130131

131132
handle, config = tempfile.mkstemp(suffix=".conf")
132133
os.close(handle)
134+
cleanups.append(config)
133135

134136
handle, database = tempfile.mkstemp(suffix=".sqlite")
135137
os.close(handle)
138+
cleanups.append(database)
136139

137140
with sqlite3.connect(database) as conn:
138141
c = conn.cursor()
139142
c.executescript(vulnserver.SCHEMA)
140143

141144
handle, request = tempfile.mkstemp(suffix=".req")
142145
os.close(handle)
146+
cleanups.append(request)
143147

144148
handle, log = tempfile.mkstemp(suffix=".log")
145149
os.close(handle)
150+
cleanups.append(log)
146151

147152
handle, multiple = tempfile.mkstemp(suffix=".lst")
148153
os.close(handle)
154+
cleanups.append(multiple)
149155

150156
content = "POST / HTTP/1.0\nUser-Agent: foobar\nHost: %s:%s\n\nid=1\n" % (address, port)
151157
with open(request, "w+") as f:
@@ -207,6 +213,12 @@ def _thread():
207213
else:
208214
logger.error("vuln test final result: FAILED")
209215

216+
for filename in cleanups:
217+
try:
218+
os.remove(filename)
219+
except:
220+
pass
221+
210222
return retVal
211223

212224
def smokeTest():

0 commit comments

Comments
 (0)