mirror of
https://github.com/ziirish/burp-ui.git
synced 2026-05-21 06:45:24 -06:00
fix demo setup
This commit is contained in:
parent
51a3de2041
commit
b21c1db4f8
1 changed files with 2 additions and 2 deletions
|
|
@ -72,11 +72,11 @@ cp ${CONFIG_DIR}/gunicorn.d/burp-ui /etc/gunicorn.d/burp-ui
|
|||
mkdir -p /etc/burp
|
||||
cp ${CONFIG_DIR}/burp-ui/burpui.cfg /etc/burp/burpui.cfg
|
||||
rand=$(dd if=/dev/urandom bs=256 count=1 2>/dev/null | base64 | sed ':a;N;$!ba;s/\n//g')
|
||||
perl -i -pe "s#@RANDOM@#$rand#" /etc/burp/burpui.cfg
|
||||
perl -i -pe "s#\@RANDOM\@#$rand#" /etc/burp/burpui.cfg
|
||||
|
||||
# patch demo with piwik
|
||||
REP=$(cat ${CONFIG_DIR}/patch/piwik.patch)
|
||||
perl -i -pe "s#^.*@DEMO@.*\$#$REP#" /usr/local/lib/python2.7/dist-packages/burpui/templates/layout.html
|
||||
perl -i -pe "s#^.*\@DEMO\@.*\$#$REP#" /usr/local/lib/python2.7/dist-packages/burpui/templates/layout.html
|
||||
|
||||
# cleanup
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue