forked from bl4de/security-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchromium
More file actions
executable file
·37 lines (29 loc) · 964 Bytes
/
chromium
File metadata and controls
executable file
·37 lines (29 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
#
# see available options:
# http://peter.sh/experiments/chromium-command-line-switches/
#
# 8080 - is a standard port for Burp
# To disable XSS Auditor in Chromium simply put 0 as second argument, 1 leaves XSS Auditor enabled
# to enable auto opening DevTools, set 1 as a third argument
echo
echo "Usage: chromium [port] [enable xss Auditor] [open DevTools for new tabs]"
echo " example:"
echo " $ chromium 8080 1 1 - runs Chromium listening on 8080, XSS Auditor enabled and DevTools open in new tab(s)"
# default settings
xss_auditor=""
port=""
devtools=""
if [ $1 -ne 80 ]; then
port="--proxy-server=127.0.0.1:$1"
fi
if [ $2 == 0 ]; then
xss_auditor="--disable-xss-auditor"
fi
if [ $3 == 1 ]; then
devtools="--auto-open-devtools-for-tabs"
fi
# update those lines to your system specific path:
cd /Applications/Chromium.app/Contents/MacOS
echo "[+] running ./Chromium $port $xss_auditor $devtools"
./Chromium $port $xss_auditor $devtools