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

Skip to content

Commit 5d09f7b

Browse files
committed
Fixes #1822
1 parent 8bbfee7 commit 5d09f7b

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

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.revision import getRevisionNumber
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.0.5.13"
22+
VERSION = "1.0.5.14"
2323
REVISION = getRevisionNumber()
2424
STABLE = VERSION.count('.') <= 2
2525
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

lib/takeover/metasploit.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import os
99
import re
10+
import select
1011
import sys
1112
import tempfile
1213
import time
@@ -47,8 +48,6 @@
4748

4849
if IS_WIN:
4950
import msvcrt
50-
else:
51-
from select import select
5251

5352
class Metasploit:
5453
"""
@@ -550,7 +549,7 @@ def _controlMsfCmd(self, proc, func):
550549
# Probably the child has exited
551550
pass
552551
else:
553-
ready_fds = select([stdin_fd], [], [], 1)
552+
ready_fds = select.select([stdin_fd], [], [], 1)
554553

555554
if stdin_fd in ready_fds[0]:
556555
try:
@@ -598,7 +597,7 @@ def _controlMsfCmd(self, proc, func):
598597
else:
599598
proc.kill()
600599

601-
except (EOFError, IOError):
600+
except (EOFError, IOError, select.error):
602601
return proc.returncode
603602

604603
def createMsfShellcode(self, exitfunc, format, extra, encode):

0 commit comments

Comments
 (0)