From 5ad27264a24d5a649e4bf54ad9556fe67b311125 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 2 Sep 2016 15:52:07 +0200 Subject: [PATCH] Patches #2143 --- lib/core/settings.py | 4 ++-- sqlmap.py | 5 +++++ txt/checksum.md5 | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 886125593..171d59219 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.enums import OS from lib.core.revision import getRevisionNumber # sqlmap version (...) -VERSION = "1.0.9.1" +VERSION = "1.0.9.2" REVISION = getRevisionNumber() TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} @@ -583,7 +583,7 @@ NON_SQLI_CHECK_PREFIX_SUFFIX_LENGTH = 6 MAX_CONNECTION_CHUNK_SIZE = 10 * 1024 * 1024 # Maximum response total page size (trimmed if larger) -MAX_CONNECTION_TOTAL_SIZE = 100 * 1024 * 1024 +MAX_CONNECTION_TOTAL_SIZE = 50 * 1024 * 1024 # For preventing MemoryError exceptions (caused when using large sequences in difflib.SequenceMatcher) MAX_DIFFLIB_SEQUENCE_LENGTH = 10 * 1024 * 1024 diff --git a/sqlmap.py b/sqlmap.py index 2d32eb2f6..c9dbb5101 100755 --- a/sqlmap.py +++ b/sqlmap.py @@ -203,6 +203,11 @@ def main(): dataToStdout(excMsg) raise SystemExit + elif "MemoryError" in excMsg: + errMsg = "memory exhaustion detected" + logger.error(errMsg) + raise SystemExit + elif any(_ in excMsg for _ in ("No space left", "Disk quota exceeded")): errMsg = "no space left on output device" logger.error(errMsg) diff --git a/txt/checksum.md5 b/txt/checksum.md5 index 4c1654a53..83a6eb380 100644 --- a/txt/checksum.md5 +++ b/txt/checksum.md5 @@ -45,7 +45,7 @@ e60456db5380840a586654344003d4e6 lib/core/readlineng.py 5ef56abb8671c2ca6ceecb208258e360 lib/core/replication.py 99a2b496b9d5b546b335653ca801153f lib/core/revision.py 7c15dd2777af4dac2c89cab6df17462e lib/core/session.py -1a8eccb8108e213d7b7257302e82cef8 lib/core/settings.py +80746b60fa630e1ecdecd34b97bf40c3 lib/core/settings.py 7af83e4f18cab6dff5e67840eb65be80 lib/core/shell.py 23657cd7d924e3c6d225719865855827 lib/core/subprocessng.py 0bc2fae1dec18cdd11954b22358293f2 lib/core/target.py @@ -218,7 +218,7 @@ c3cc8b7727161e64ab59f312c33b541a shell/stager.aspx_ 1f7f125f30e0e800beb21e2ebbab18e1 shell/stager.jsp_ 01e3505e796edf19aad6a996101c81c9 shell/stager.php_ 56702e95555adee718b6a11ee7098fd4 sqlmapapi.py -bb63aa4415b779ddabe93b10300ce813 sqlmap.py +832010d5d68ce3357e7066ac1eaa169e sqlmap.py 1316deb997418507e76221c84ec99946 tamper/apostrophemask.py a6efe8f914c769c52afec703bd73609f tamper/apostrophenullencode.py b1c56983919b69f4f6f0e7929c881e7a tamper/appendnullbyte.py