Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sooluh/subfinder
:mag: Find, scan and collect subdomains of any domain.
https://github.com/sooluh/subfinder
domain finder javascript nodejs pentest scanner subdomain subdomain-finder subdomain-scanner subfinder
Last synced: 3 months ago
JSON representation
:mag: Find, scan and collect subdomains of any domain.
- Host: GitHub
- URL: https://github.com/sooluh/subfinder
- Owner: sooluh
- License: mit
- Created: 2021-07-18T04:35:50.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-28T01:09:52.000Z (10 months ago)
- Last Synced: 2024-10-02T07:57:52.589Z (3 months ago)
- Topics: domain, finder, javascript, nodejs, pentest, scanner, subdomain, subdomain-finder, subdomain-scanner, subfinder
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@sooluh/subfinder
- Size: 22.5 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Subdomain Finder
[Subfinder](https://github.com/sooluh/subfinder) is used to find, scan and collect subdomains of any domain
## Install
```
npm i @sooluh/subfinder
```## Usage
```javascript
const Subfinder = require("@sooluh/subfinder");
const subfinder = new Subfinder();// callback
subfinder.lookup("domain.com", function (subdomains, error) {
if (error) return console.error(error);console.log(subdomains);
});// promise with then/catch
subfinder.lookup("domain.com")
.then(console.log)
.catch(console.error);// promise with async/await
(async () => {
try {
const subdomains = await subfinder.lookup("domain.com");
console.log(subdomains);
} catch (error) {
console.error(error);
}
})();
```## License
Code licensed under [MIT License](./LICENSE).