Giter Club home page Giter Club logo

a1k-ghaz1 / fu-js-discover-website-endpoints-from-the-js-javascript-files Goto Github PK

View Code? Open in Web Editor NEW

This project forked from th3hack3rwiz/fu-js

0.0 0.0 0.0 157 KB

This tool aims at accumulating javascript files from a given set of subdomains to discover hidden endpoints. It swims through JS files to find more JS files. It also creates a target-specific wordlist from the JS-files for further content discovery and dumps all the discovered JS files neatly in a folder for static analysis.

License: GNU General Public License v3.0

Shell 100.00%

fu-js-discover-website-endpoints-from-the-js-javascript-files's Introduction

Fu-JS

This tool aims at accumulating javascript files from a given set of subdomains to discover hidden endpoints. It swims through JS files to find more JS files. It also creates a target-specific wordlist from the JS-files for further content discovery, appends new subdomains discovered from the JS files to the user specified subdomain file, and dumps all the discovered JS files neatly in a folder for static analysis.

Installation

git clone https://github.com/th3hack3rwiz/Fu-JS.git
cd  Fu-JS
chmod +x setup.sh
./setup.sh	#This will install all requirements and configure the tool.

Requirements

Features

  • Gathers javascript files using a given set of subdomains supplied by the user. How? -
    1. It crawls the subdomains using hakrawler
    2. Queries the wayback machine with tools like waybackurls + gau
    3. Subjs
  • Runs linkfinder.py and secretfinder.py on all those alive JS files that have either been fetched from tools like (waybackurls/gau/hakrawler/subjs) OR fed by the user (For eg: list of JS-files obtained from burp suite) to find endpoints and to grab any sensitive/hard coded secrets in those JS file. Stores the results for both in respective text files.
    • It will then fuzz for all those endpoints on the domain of the js-file from which they were discovered.
    • It will dump all the JS files neatly in a directory for static analysis.
  • For eg: If it runs linkfinder.py on https://test.example.com/justajs.js and finds 3 endpoints (a,b,c), it will fuzz for https://test.example.com/a, https://test.example.com/b and https://test.example.com/c to see if those endpoints are alive on that domain. The positive results are stored neatly in a text file.
  • Fu-JS runs the above processes recursively on newly discovered JS files found via linkfinder.py/secretfinder.py --> until no more new javascript files are discoverable.
  • It also creates a wordlist from the discovered paths using linkfinder + api words extracted from the static JS files which is very useful for target-specific content discovery.
  • It also appends new subdomains that are discovered from the JS files, to the subdomain file provided by the user.

Usage

Sample Usage

Different use case scenarios:
  1. In the following example Fu-JS gathers JS files from subdomains and performs its operations.

  1. In the following example Fu-JS uses the JS files supplied by the user and perform it's operations.

  1. In the following example Fu-JS gathers JS files from subdomains + crawls them with a depth of 2 + uses the JS files supplied by the use and performs its operations.

Explained Output

The following files are generated:-

Let's look at the major outout:-

Hidden alive endpoints discovered from the Js files:-

All the javascript files are fetched and stored neatly in js-dump directory:-

All the secrets gathered from js files:-

Target specific wordlist formed:-

Linkfinder output of each and every js file:-

fu-js-discover-website-endpoints-from-the-js-javascript-files's People

Contributors

th3hack3rwiz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.