Skip to content

Commit 6b5db1f

Browse files
committed
1 parent d3959e9 commit 6b5db1f

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from lib.core.enums import OS
1818

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

lib/takeover/web.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@ def webUpload(self, destFileName, directory, stream=None, content=None, filepath
100100
if content is not None:
101101
stream = io.BytesIO(content) # string content
102102

103+
# Reference: https://github.com/sqlmapproject/sqlmap/issues/3560
104+
# Reference: https://stackoverflow.com/a/4677542
105+
stream.seek(0, os.SEEK_END)
106+
stream.len = stream.tell()
107+
stream.seek(0, os.SEEK_SET)
108+
103109
return self._webFileStreamUpload(stream, destFileName, directory)
104110

105111
def _webFileStreamUpload(self, stream, destFileName, directory):

0 commit comments

Comments
 (0)