From 34ea59f0f60f15e8887104443328f5403adf8879 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Mon, 25 May 2020 18:13:43 +0100 Subject: [PATCH] Will create firefox profile --- bin/.bin/webtest/clickjacking | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/.bin/webtest/clickjacking b/bin/.bin/webtest/clickjacking index 4f042407..9af4f19f 100755 --- a/bin/.bin/webtest/clickjacking +++ b/bin/.bin/webtest/clickjacking @@ -6,9 +6,7 @@ Usage: clickjacking url [outfile] The script will use a headless version of firefox to screenshot a page containing the provided url in an iframe -You will need to create a profile called headless for firefox before this will work. - -Open firefox and go to about:profiles to create one +This script will create a firefox profile called headless to create the screenshot with EOF exit 0 fi @@ -26,7 +24,7 @@ die(){ # This will need to be a profile that isn't currently open # I suggest making one for headless use # go to about:profiles in firefox to create one -profile="headless" +profile="test" # Url of site to put in iframe url="$1" @@ -36,6 +34,8 @@ url="$1" # Name of image to make output="${2:-screenshot.png}" +$firefox -CreateProfile "$profile" -no-remote 2>&1 >/dev/null + source="