Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lc/subjs
Fetches javascript file from a list of URLS or subdomains.
https://github.com/lc/subjs
Last synced: 12 days ago
JSON representation
Fetches javascript file from a list of URLS or subdomains.
- Host: GitHub
- URL: https://github.com/lc/subjs
- Owner: lc
- License: mit
- Archived: true
- Created: 2019-02-04T20:16:20.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-21T20:55:56.000Z (over 1 year ago)
- Last Synced: 2024-08-01T02:29:50.468Z (3 months ago)
- Language: Go
- Homepage:
- Size: 31.3 KB
- Stars: 730
- Watchers: 14
- Forks: 92
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-bbht - sub.js - A tool to get javascript files from a list of URLS or subdomains (Content Discovery / Inspecting JS Files)
- awesome-bbht - sub.js - A tool to get javascript files from a list of URLS or subdomains (Content Discovery / Inspecting JS Files)
- WebHackersWeapons - subjs
README
# subjs
[![License](https://img.shields.io/badge/license-MIT-_red.svg)](https://opensource.org/licenses/MIT)
[![Go ReportCard](https://goreportcard.com/badge/github.com/lc/gau)](https://goreportcard.com/report/github.com/lc/subjs)subjs fetches javascript files from a list of URLS or subdomains. Analyzing javascript files can help you find undocumented endpoints, secrets, and more.
It's recommended to pair this with [gau](https://github.com/lc/gau) and then [https://github.com/GerbenJavado/LinkFinder](https://github.com/GerbenJavado/LinkFinder)
# Resources
- [Usage](#usage)
- [Installation](#installation)## Usage:
Examples:
```bash
$ cat urls.txt | subjs
$ subjs -i urls.txt
$ cat hosts.txt | gau | subjs
```To display the help for the tool use the `-h` flag:
```bash
$ subjs -h
```| Flag | Description | Example |
|------|-------------|---------|
| `-c` | Number of concurrent workers | `subjs -c 40` |
| `-i` | Input file containing URLS | `subjs -i urls.txt` |
| `-t` | Timeout (in seconds) for http client (default 15) | `subjs -t 20` |
| `-ua` | User-Agent to send in requests | `subjs -ua "Chrome..."` |
| `-version` | Show version number | `subjs -version"` |## Installation
### From Source:```
$ GO111MODULE=on go get -u -v github.com/lc/subjs@latest
```### From Binary
You can download the pre-built [binaries](https://github.com/lc/subjs/releases/) from the releases page and then move them into your $PATH.```
$ tar xvf subjs_1.0.0_linux_amd64.tar.gz
$ mv subjs /usr/bin/subjs
```## Useful?