mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-06-21 15:12:16 +00:00
Fixing Java-based connectors
This commit is contained in:
parent
46ba1d1bf1
commit
4f425792e3
4 changed files with 10 additions and 8 deletions
5
plugins/dbms/cache/connector.py
vendored
5
plugins/dbms/cache/connector.py
vendored
|
|
@ -37,8 +37,9 @@ class Connector(GenericConnector):
|
|||
jar = readInput(msg)
|
||||
checkFile(jar)
|
||||
args = "-Djava.class.path=%s" % jar
|
||||
jvm_path = jpype.getDefaultJVMPath()
|
||||
jpype.startJVM(jvm_path, args)
|
||||
if not jpype.isJVMStarted():
|
||||
jvm_path = jpype.getDefaultJVMPath()
|
||||
jpype.startJVM(jvm_path, args)
|
||||
except Exception as ex:
|
||||
raise SqlmapConnectionException(getSafeExString(ex))
|
||||
|
||||
|
|
|
|||
|
|
@ -37,8 +37,9 @@ class Connector(GenericConnector):
|
|||
jar = readInput(msg)
|
||||
checkFile(jar)
|
||||
args = "-Djava.class.path=%s" % jar
|
||||
jvm_path = jpype.getDefaultJVMPath()
|
||||
jpype.startJVM(jvm_path, args)
|
||||
if not jpype.isJVMStarted():
|
||||
jvm_path = jpype.getDefaultJVMPath()
|
||||
jpype.startJVM(jvm_path, args)
|
||||
except Exception as ex:
|
||||
raise SqlmapConnectionException(getSafeExString(ex))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue