Check out Part 1 for using local group policy to harden the browser
Introduction
So I've been working on making my script more dynamic and work to defeat advanced fingerprinting techniques. The eff provides a nifty tool here https://panopticlick.eff.org/
(Thanks to @infoseccrow for the heads up)
Ideally your browser finger print will change every session, but be common enough to hide in the masses. This code update is the first step in that goal provides 11 different browsers based on the most common user agents.
(Source: https://techblog.willshouse.com/2012/01/03/most-common-user-agents/)
chromelaunch.bat
Click for Details >
REM vgrsec.com browser launch script
REM top 11 user agent strings from: https://techblog.willshouse.com/2012/01/03/most-common-user-agents/
for /f "tokens=2 delims==" %%I in ('wmic os get localdatetime /format:list') do set datetime=%%I
set datetime=%datetime:~0,8%-%datetime:~8,6%
echo %datetime%
mkdir "%userprofile%\Desktop\ChromeData\%datetime%"
set /a number=%random% %% 11-1
if %number%==1 (
set useragent="Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36" )
if %number%==2 (
set useragent="Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36" )
if %number%==3 (
set useragent="Mozilla/5.0 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36" )
if %number%==4 (
set useragent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36" )
if %number%==5 (
set useragent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/601.7.7 (KHTML, like Gecko) Version/9.1.2 Safari/601.7.7" )
if %number%==6 (
set useragent="Mozilla/5.0 (Windows NT 10.0; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0" )
if %number%==7 (
set useragent="Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36" )
if %number%==8 (
set useragent="Mozilla/5.0 (Windows NT 6.1; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0" )
if %number%==9 (
set useragent="Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36" )
if %number%==10 (
set useragent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36" )
if %number%==11 (
set useragent="Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko" )
echo %useragent%
start "" "%PROGRAMFILES(x86)%\Google\Chrome\Application\chrome.exe" --user-data-dir="%userprofile%\Desktop\ChromeData\%datetime%" -incognito --user-agent=%useragent% /secondary /minimized