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

Skip to content

Commit 26b81f5

Browse files
committed
Fixes #2772
1 parent 839070d commit 26b81f5

4 files changed

Lines changed: 9 additions & 7 deletions

File tree

lib/controller/controller.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,13 @@ def _saveToResultsFile():
242242
for key, value in results.items():
243243
place, parameter, notes = key
244244
line = "%s,%s,%s,%s,%s%s" % (safeCSValue(kb.originalUrls.get(conf.url) or conf.url), place, parameter, "".join(techniques[_][0].upper() for _ in sorted(value)), notes, os.linesep)
245-
conf.resultsFP.writelines(line)
245+
conf.resultsFP.write(line)
246246

247247
if not results:
248248
line = "%s,,,,%s" % (conf.url, os.linesep)
249-
conf.resultsFP.writelines(line)
249+
conf.resultsFP.write(line)
250+
251+
conf.resultsFP.flush()
250252

251253
def start():
252254
"""

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.enums import OS
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.1.11.16"
22+
VERSION = "1.1.11.17"
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/target.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ def _setResultsFile():
545545
if not conf.resultsFP:
546546
conf.resultsFilename = os.path.join(paths.SQLMAP_OUTPUT_PATH, time.strftime(RESULTS_FILE_FORMAT).lower())
547547
try:
548-
conf.resultsFP = openFile(conf.resultsFilename, "w+", UNICODE_ENCODING, buffering=0)
548+
conf.resultsFP = openFile(conf.resultsFilename, "a", UNICODE_ENCODING, buffering=0)
549549
except (OSError, IOError), ex:
550550
try:
551551
warnMsg = "unable to create results file '%s' ('%s'). " % (conf.resultsFilename, getUnicode(ex))

txt/checksum.md5

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ f96467fc5cd1d87f52dd7966c8ae6e79 extra/shutils/regressiontest.py
2222
1fc7772edce5a01c31f3932b2fc4c1c6 extra/sqlharvest/sqlharvest.py
2323
21bf2b3a7a22b8cd5d96a6457a1b4997 lib/controller/action.py
2424
7683a078a1766a3ef60fc44701d76ad1 lib/controller/checks.py
25-
91c9ef44927b270ea53b6739ff5b2e76 lib/controller/controller.py
25+
7d31b88dab81774316c99e6a8c9b5082 lib/controller/controller.py
2626
d2cdb9e832e18a81e936ca3348144b16 lib/controller/handler.py
2727
5fb9aaf874daa47ea2b672a22740e56b lib/controller/__init__.py
2828
fd69e56ce20a5a49ce10a7a745022378 lib/core/agent.py
@@ -46,10 +46,10 @@ e1c000db9be27f973569b1a430629037 lib/core/option.py
4646
760d9df2a27ded29109b390ab202e72d lib/core/replication.py
4747
a2466b62e67f8b31736bac4dac590e51 lib/core/revision.py
4848
02d4762140a72fd44668d3dab5eabda9 lib/core/session.py
49-
c55090cd0074a23ce5e56d3562db5b41 lib/core/settings.py
49+
6667019557ddeedf87b8eac9ff963e43 lib/core/settings.py
5050
35bffbad762eb9e03db9e93b1c991103 lib/core/shell.py
5151
a59ec28371ae067a6fdd8f810edbee3d lib/core/subprocessng.py
52-
7c9f2af3c0a8dd89223cfe07b0a0b826 lib/core/target.py
52+
d5a04d672a18f78deb2839c3745ff83c lib/core/target.py
5353
df8f6475a53d83400c1a3967c0a21bd7 lib/core/testing.py
5454
632538fe50f6b3179e1a5a85e8b79741 lib/core/threads.py
5555
a119989ca03f8c8fbdf7d3035084eb31 lib/core/unescaper.py

0 commit comments

Comments
 (0)