mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Update for Issue #28
This commit is contained in:
parent
07738004cc
commit
6ffc5665d0
2 changed files with 24 additions and 1 deletions
|
|
@ -32,6 +32,7 @@ from lib.core.enums import DBMS
|
|||
from lib.core.enums import OS
|
||||
from lib.core.exception import sqlmapDataException
|
||||
from lib.core.exception import sqlmapFilePathException
|
||||
from lib.core.settings import IS_WIN
|
||||
from lib.core.settings import UNICODE_ENCODING
|
||||
from lib.core.subprocessng import blockingReadFromFD
|
||||
from lib.core.subprocessng import blockingWriteToFD
|
||||
|
|
@ -58,6 +59,12 @@ class Metasploit:
|
|||
self.__msfEncode = normalizePath(os.path.join(conf.msfPath, "msfencode"))
|
||||
self.__msfPayload = normalizePath(os.path.join(conf.msfPath, "msfpayload"))
|
||||
|
||||
if IS_WIN:
|
||||
_ = normalizePath(os.path.join(conf.msfPath, "..", "scripts", "setenv.bat"))
|
||||
for attr in dir(self):
|
||||
if "__msf" in attr:
|
||||
setattr(self, attr, "%s & %s" % (_, getattr(self, attr)))
|
||||
|
||||
self.__msfPayloadsList = {
|
||||
"windows": {
|
||||
1: ( "Meterpreter (default)", "windows/meterpreter" ),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue