Skip to content

Instantly share code, notes, and snippets.

@KathanP19
Created August 21, 2020 05:15
Show Gist options
  • Save KathanP19/d2cda2f99c0b60d64b76ee6039b37e47 to your computer and use it in GitHub Desktop.
Save KathanP19/d2cda2f99c0b60d64b76ee6039b37e47 to your computer and use it in GitHub Desktop.
extract variables from jsfiles
#!/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