Note that there are some explanatory texts on larger screens.

plurals
  1. POBurp and jar files usage for python files in command prompt
    primarykey
    data
    text
    <p>I'm using python 3.3 and working on an assignment where in i have to create a python script that takes in list of url's from the command prompt and runs burp suite on each of them dynamically.so i looked for sample demo code to get familiar with burp and found this one: Helloworld.py</p> <pre><code>from burp import IBurpExtender from java.io import PrintWriter from java.lang import RuntimeException class BurpExtender(IBurpExtender): def registerExtenderCallbacks(self, callbacks): # set our extension name callbacks.setExtensionName("Hello world extension") # obtain our output and error streams stdout = PrintWriter(callbacks.getStdout(), True) stderr = PrintWriter(callbacks.getStderr(), True) # write a message to our output stream stdout.println("Hello output") # write a message to our error stream stderr.println("Hello errors") # write a message to the Burp alerts tab callbacks.issueAlert("Hello alerts") # throw an exception that will appear in our error stream raise RuntimeException("Hello exception") </code></pre> <p>The problem which i am facing is, IDLE constantly pops error stating that java.io not found</p> <pre><code>from java.io import PrintWriter ImportError: No module named java.io </code></pre> <p>or</p> <pre><code>from burp import IBrupExtender ImportError: No module name burp </code></pre> <p>that's cos it's a java library so i downloaded a jython standalone jar file and burp suite too and i passed it in command prompt along with the filename as </p> <pre><code>java -jar jython-standalone-2.5.3.jar -Xmx1024m burpsuite_pro_v.1.5.14.jar HelloWorld.py </code></pre> <p>but its still not working. I have all the three files in the same folder. Any suggestions? What needs to be done inorder to make this demo work? am i doing something wrong?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload