mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 21:21:33 +00:00
avoid exiting with a traceback for missing dependency, handle properly at some point
This commit is contained in:
@@ -15,8 +15,11 @@ from lib.core.common import dataToStdout
|
|||||||
from lib.core.settings import IS_WIN
|
from lib.core.settings import IS_WIN
|
||||||
|
|
||||||
if IS_WIN:
|
if IS_WIN:
|
||||||
|
try:
|
||||||
from win32file import ReadFile, WriteFile
|
from win32file import ReadFile, WriteFile
|
||||||
from win32pipe import PeekNamedPipe
|
from win32pipe import PeekNamedPipe
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
import msvcrt
|
import msvcrt
|
||||||
else:
|
else:
|
||||||
import select
|
import select
|
||||||
|
|||||||
Reference in New Issue
Block a user