Hands-On Bug Hunting for Penetration Testers
上QQ阅读APP看书,第一时间看更新

Using Burp

Now let's start Burp  the 4G part of the command is where we're specifying Burp Suite should run on 4 GB memory:

java -jar -Xmx4G "/Applications/Burp Suite Community Edition.app/Contents/java/app/burp/burpsuite_community_1.7.33-9.jar"

Since this is a mouthful, we can create a small wrapper script that will use the $@ variable to add any options we may want to pass, without making us rewrite our path to the .jar executable. Here's bootstrap_burp.sh:

#!/bin/sh

java -jar -Xmx3G "/Applications/Burp Suite Community Edition.app/Contents/java/app/burp/burpsuite_community_1.7.33-9.jar" $@

Now you can make the file executable and symlink it to /usr/local/bin or the appropriate utility so it's available in your $PATH:

chmod u+x bootstrap_burp.sh
sudo ln -s /Full/path/to/bootstrap_burp.sh /usr/local/bin/bootstrap_burp

This allows us to start the program with just bootstrap_burp.