Skip to content

Commit 1c3f2dc

Browse files
committed
More patching (#5965)
1 parent 70c3c12 commit 1c3f2dc

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

data/txt/sha256sums.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ c4bfb493a03caf84dd362aec7c248097841de804b7413d0e1ecb8a90c8550bc0 lib/core/readl
189189
d1bd70c1a55858495c727fbec91e30af267459c8f64d50fabf9e4ee2c007e920 lib/core/replication.py
190190
1d0f80b0193ac5204527bfab4bde1a7aee0f693fd008e86b4b29f606d1ef94f3 lib/core/revision.py
191191
d2eb8e4b05ac93551272b3d4abfaf5b9f2d3ac92499a7704c16ed0b4f200db38 lib/core/session.py
192-
a5953548484b3f8fc1a1afd30f8a1ba46ceee4238f3d59509f0f0af369abb543 lib/core/settings.py
192+
17d2ef081f4e0820b2123e0a213dc44a7a081fa18da9b0b4edf1991c13c3a82d lib/core/settings.py
193193
1c5eab9494eb969bc9ce118a2ea6954690c6851cbe54c18373c723b99734bf09 lib/core/shell.py
194194
4eea6dcf023e41e3c64b210cb5c2efc7ca893b727f5e49d9c924f076bb224053 lib/core/subprocessng.py
195195
cdd352e1331c6b535e780f6edea79465cb55af53aa2114dcea0e8bf382e56d1a lib/core/target.py
@@ -261,7 +261,7 @@ c0e6e33d2aa115e7ab2459e099cbaeb282065ea158943efc2ff69ba771f03210 lib/utils/sear
261261
8258d0f54ad94e6101934971af4e55d5540f217c40ddcc594e2fba837b856d35 lib/utils/sgmllib.py
262262
61dfd44fb0a5a308ba225092cb2768491ea2393999683545b7a9c4f190001ab8 lib/utils/sqlalchemy.py
263263
6f5f4b921f8cfe625e4656ee4560bc7d699d1aebf6225e9a8f5cf969d0fa7896 lib/utils/timeout.py
264-
5ad017569d4cfbd0ec4971537e9bb81ad8ee008029422104932afceaed0fec57 lib/utils/tui.py
264+
9967e8af7db75fa662a3934e3f4e6fb03f56448a6f96d7fb3761bca7a0f917a5 lib/utils/tui.py
265265
9cb6bd014598515a95945f03861e7484d6c0f9f4b508219eb5cc0c372ed5c173 lib/utils/versioncheck.py
266266
bd4975ff9cbc0745d341e6c884e6a11b07b0a414105cc899e950686d2c1f88ba lib/utils/xrange.py
267267
33049ba7ddaea4a8a83346b3be29d5afce52bbe0b9d8640072d45cadc0e6d4bb LICENSE

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.59"
22+
VERSION = "1.9.12.60"
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/utils/tui.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ def _draw_current_tab(self):
224224
# Draw value
225225
value_str = ""
226226
if option['type'] == 'bool':
227-
value_str = "[X]" if option['value'] else "[ ]"
227+
value = option['value'] if option['value'] is not None else option.get('default')
228+
value_str = "[X]" if value else "[ ]"
228229
else:
229230
value_str = str(option['value']) if option['value'] else ""
230231
if option['default'] and not option['value']:
@@ -367,7 +368,7 @@ def _export_config(self):
367368
for tab in self.tabs:
368369
for option in tab['options']:
369370
dest = option['dest']
370-
value = option['value'] if option['value'] else option.get('default')
371+
value = option['value'] if option['value'] is not None else option.get('default')
371372

372373
if option['type'] == 'bool':
373374
config[dest] = bool(value)
@@ -526,7 +527,7 @@ def _run_sqlmap(self):
526527
for tab in self.tabs:
527528
for option in tab['options']:
528529
dest = option['dest']
529-
value = option['value'] if option['value'] else option.get('default')
530+
value = option['value'] if option['value'] is not None else option.get('default')
530531

531532
if option['type'] == 'bool':
532533
config[dest] = bool(value)
@@ -580,10 +581,11 @@ def _show_console(self, configFile):
580581
close_fds=not IS_WIN
581582
)
582583

583-
# Make it non-blocking
584-
import fcntl
585-
flags = fcntl.fcntl(process.stdout, fcntl.F_GETFL)
586-
fcntl.fcntl(process.stdout, fcntl.F_SETFL, flags | os.O_NONBLOCK)
584+
if not IS_WIN:
585+
# Make it non-blocking
586+
import fcntl
587+
flags = fcntl.fcntl(process.stdout, fcntl.F_GETFL)
588+
fcntl.fcntl(process.stdout, fcntl.F_SETFL, flags | os.O_NONBLOCK)
587589

588590
output_win.nodelay(True)
589591
console_win.nodelay(True)

0 commit comments

Comments
 (0)