Will create firefox profile
This commit is contained in:
parent
045a120083
commit
031ae34a60
1 changed files with 4 additions and 4 deletions
|
@ -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="
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue