mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-16 12:49:02 +00:00
Minor bug fix
This commit is contained in:
@@ -25,14 +25,6 @@ import socket
|
|||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
def checkLibs():
|
|
||||||
try:
|
|
||||||
from impacket import ImpactDecoder
|
|
||||||
from impacket import ImpactPacket
|
|
||||||
except ImportError:
|
|
||||||
sys.stderr.write('You need to install Python Impacket library first\n')
|
|
||||||
sys.exit(255)
|
|
||||||
|
|
||||||
def setNonBlocking(fd):
|
def setNonBlocking(fd):
|
||||||
"""
|
"""
|
||||||
Make a file descriptor non-blocking
|
Make a file descriptor non-blocking
|
||||||
@@ -49,7 +41,12 @@ def main(src, dst):
|
|||||||
sys.stderr.write('icmpsh master can only run on Posix systems\n')
|
sys.stderr.write('icmpsh master can only run on Posix systems\n')
|
||||||
sys.exit(255)
|
sys.exit(255)
|
||||||
|
|
||||||
checkLibs()
|
try:
|
||||||
|
from impacket import ImpactDecoder
|
||||||
|
from impacket import ImpactPacket
|
||||||
|
except ImportError:
|
||||||
|
sys.stderr.write('You need to install Python Impacket library first\n')
|
||||||
|
sys.exit(255)
|
||||||
|
|
||||||
# Make standard input a non-blocking file
|
# Make standard input a non-blocking file
|
||||||
stdin_fd = sys.stdin.fileno()
|
stdin_fd = sys.stdin.fileno()
|
||||||
|
|||||||
Reference in New Issue
Block a user