Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

README

        

I stand with Palestine

# 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).