Wireless Army
This is a blog / tips and tricks website for web developers and security researchers.
follow us in feedly

Chrome as root
by admin
 at 2017-12-28 21:51:00.

to install google chrome on linux and run it as root(admin)
is just to past the fallowing code in the command line and press enter after each line

apt-get install chromium-browser
cd /usr/lib/chromium-browser
hexedit chromium-browser

then press tab


find geteuid
change it to get getppid
if you have downloaded the chrome(not the chromium) form the site just do this:

apt-get install gedit
gedit /usr/bin/google-chrome

a new page will open with some text in it now go to the last line that look like this

exec -a "$0" "$HERE/chrome"  "$@"

and add this:


so it should look like this

exec -a "$0" "$HERE/chrome"  "$@" --user-data-dir 

save (control+s)
now have fun using chrome!

every chrome update over write the /usr/bin/google-chrome so you need to redo it every time that you update the chrome