/JSFetch

Fetch data with ease using JS Fetch

Primary LanguageGoMIT LicenseMIT


Logo

JS Fetch

Fetch data with ease using JS Fetch - a simple yet powerful tool for making HTTP requests in JavaScript!

View Demo . Request Feature

Downloads Contributors Forks Stargazers Issues License

About The Project

Screen Shot

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.

Built With

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.

Getting Started

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:

Prerequisites

go get github.com/PuerkitoBio/goquery

Installation

  1. Clone the repo
git clone https://github.com/aryanstha/JSFetch
  1. Install packages
go mod tidy
  1. Build file
go build
  1. Run
 jsfetch -d <target-domain> [-o <output-file>]

License

Distributed under the MIT License. See LICENSE for more information.

Authors

Acknowledgements