Fetch data with ease using JS Fetch - a simple yet powerful tool for making HTTP requests in JavaScript!
View Demo
.
Request Feature
This is a simple Go program that collects JavaScript files from a target domain. It sends an HTTP GET request to the target domain, parses the response HTML with goquery, and collects the URLs of all JavaScript files that are hosted on the target domain.
This is a Go program that collects JavaScript files from a target domain. The program takes two optional command line arguments:
The target domain (-d flag) The output file name (-o flag)
The program sends an HTTP GET request to the target domain URL and parses the response HTML with the goquery package. It then extracts the URLs of all the script tags in the HTML that ends with ".js" and contain the target domain.
The collected URLs are filtered for uniqueness using the unique() function. If the output file name is provided, the program writes the collected URLs to that file, otherwise, it prints them to the console.
o use this program, you need to have Go installed on your system. Once you have Go installed, you can install this program by running:
go get github.com/PuerkitoBio/goquery
- Clone the repo
git clone https://github.com/aryanstha/JSFetch
- Install packages
go mod tidy
- Build file
go build
- Run
jsfetch -d <target-domain> [-o <output-file>]
Distributed under the MIT License. See LICENSE for more information.
- Aryan Shrestha - Developer - Aryan Shrestha - **