From 41a1c70a728537f8bde01b0b94f7b29b8713b5c4 Mon Sep 17 00:00:00 2001 From: N3V0N Date: Sat, 29 Jul 2017 15:58:47 +0530 Subject: The Magical Script --- pwned.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pwned.sh diff --git a/pwned.sh b/pwned.sh new file mode 100644 index 0000000..16d769f --- /dev/null +++ b/pwned.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +#set -x +account=$1 +if [ "$1" == "-h" ]; +then +echo Pwned Help +echo Usage : +echo -e "pwned -h \t /Shows Help" +echo -e "pwned title@email.com \t \t /Gives Information " +exit +fi +clear +echo "Using Email $account" +echo "If it is not in the format test@mail.com" +echo "then press Ctrl+C and put it in the correct format" +echo "Press enter to continue" + +read nothing +echo "Checking if you have been Pwned" +curl -s -o raw_data.json "https://haveibeenpwned.com/api/v2/breachedaccount/"$account"" +clear +jq ".[]" raw_data.json > semi.json +jq .Title semi.json > final.txt +echo "You Have Been Pwned at/in/by" +sed 's/\"//g' final.txt + + -- cgit v1.2.3