SyntaxGeek / gason

Automatically exported from code.google.com/p/gason
0 stars 1 forks source link

SQLMap doesn't execute under windows #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
05-Apr-2012 21:03:04 CustomPlugin.sqlmap.sqlmapGUI Execute
SEVERE: null
java.io.IOException: Cannot run program "D:\tools\db\sqlmap-0.9\sqlmap\sqlmap.py
": CreateProcess error=193, %1 is not a valid Win32 application
        at java.lang.ProcessBuilder.start(Unknown Source)
        at CustomPlugin.sqlmap.sqlmapTab.<init>(Unknown Source)
        at CustomPlugin.sqlmap.sqlmapGUI.Execute(Unknown Source)
        at CustomPlugin.sqlmap.sqlmapGUI.bnt_runActionPerformed(Unknown Source)
        at CustomPlugin.sqlmap.sqlmapGUI.access$2400(Unknown Source)
        at CustomPlugin.sqlmap.sqlmapGUI$55.actionPerformed(Unknown Source)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
ce)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$000(Unknown Source)
        at java.awt.EventQueue$1.run(Unknown Source)
        at java.awt.EventQueue$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown
Source)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown
Source)
        at java.awt.EventQueue$2.run(Unknown Source)
        at java.awt.EventQueue$2.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown
Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.io.IOException: CreateProcess error=193, %1 is not a valid Win32
 application
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.<init>(Unknown Source)
        at java.lang.ProcessImpl.start(Unknown Source)
        ... 42 more

---------------------------------------

Doesn't look like that function will execute a .py file under windows.

Couldn't find a way to manipulate the bin path string to read 'python 
d:\tools\...\sqlmap.py' or similar.

Instead created a sqlmap.bat file with the following contents as a workaround:

cd d:\tools\db\sqlmap-0.9\sqlmap\
python sqlmap.py %*

Original issue reported on code.google.com by a.ben.ca...@gmail.com on 5 Apr 2012 at 8:34

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
If you are experiencing this issue consider using Nathan Sportsman's Windows 
port of Daniel Garcia's SQLMap plugin: 
http://www.praetorian.com/blog/burp-sqlmap-plugin-for-windows

Original comment by paul.jau...@praetorian.com on 19 Nov 2012 at 4:34