Created
August 21, 2020 05:15
-
-
Save KathanP19/d2cda2f99c0b60d64b76ee6039b37e47 to your computer and use it in GitHub Desktop.
extract variables from jsfiles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
target=$1 | |
echo -e "\e[1;33m$target\n\e[32m"; | |
curl -s $target | grep -Eo "var [a-zA-Z0-9_]+" | sort -u | cut -d" " -f2 | awk 'length($1) >= 3 {print $1}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment