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

Skip to content

Commit 192a911

Browse files
committed
Patch for an Issue #28
1 parent 41d6c1a commit 192a911

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

lib/core/option.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,15 @@ def _setMetasploit():
669669
msfEnvPathExists = False
670670

671671
if IS_WIN:
672+
try:
673+
import win32file
674+
except ImportError:
675+
errMsg = "sqlmap requires third-party module 'pywin32' "
676+
errMsg += "in order to use Metasploit functionalities on "
677+
errMsg += "Windows. You can download it from "
678+
errMsg += "'http://sourceforge.net/projects/pywin32/files/pywin32/'"
679+
raise SqlmapMissingDependence(errMsg)
680+
672681
if not conf.msfPath:
673682
def _(key, value):
674683
retVal = None

0 commit comments

Comments
 (0)