Easiest way to find hidden api from js files

8 months ago 69
BOOK THIS SPACE FOR AD
ARTICLE AD

JEETPAL

Hello

Today I will show you how to find hidden api’s from a js file

Let’s starts

## Requirements

extensorSecretFinderWaybackurlsgauwaymoresubfinderurlremover

Let’s starts

First we have to select target lets say indeed.com

Steps

Find subdomains using subfindersubfinder -d indeed.com -v -o subdomains.txt-d : Define domain-v : verbose result-o : output file

2. After the subdomain enumeration use waymore ,gau and waybacurls to get manys urls as possible

First with waybackurls

cat subdomains.txt | waybackurls > waybackurls.txt

second gau

cat subdomains.txt | gau > gau.txt

third and last waymore

waymore -i subdomains.txt -mode U > waymore.txt-i : file name of subdomains-mode U : so only urls capture

3. Now will collect all urls into a single file naming as allurls

4. we will use extensor to find the endpoint file

extensor

after the extensor finish work

5. we use SecretFinder to find apikeys from js file

cat js.txt | while read url; do python3 /home/kali/tools/SecretFinder/SecretFinder.py -i $url -o cli; done

It will run a while loop and find hidden api’s

Output

It will shows all the possible credentials in js file

when you find it just report and enjoy the bounty

Thank you !!

Read Entire Article