Skip to content

AltDns Generator.js Is An Application That Generates & Resolves Dynamic DNS Wildcards

Notifications You must be signed in to change notification settings

Sidodus/AltDnsGen

Repository files navigation

AltDns Generator Image


AltDns Generator.js Is An Application That Generates & Intelligently Resolves Dynamic DNS Wildcards".

AltDns Generator.js Consists Of 3 Main, And 2 Optional Process
  1. Subdomain Wildcard Locator.js(01):
    Locates all possible wildcard points
  2. AltDns Generator.js(02):
    Generates potential DNS wildcards
  3. Set Wordlist Gen Parameters(03): OPTIONAL
    Set parameters for generating wordlist From domain names.
  4. DNS Resolver(04):
    Dynamically Resolves all generated wildcards
  5. Filter Params A From B(05): OPTIONAL
    Filter Params A From B And Return Unique Values In A or B & vice versa

How It Works

01). Subdomain Wildcard Locator.js:

  • Pass In Valid Subdomains
  • Subdomain Wildcard Locator.js Would Process All The Subdomains And Return Only UNIQUE Subdomains (no duplicates)
  • Subdomain Wildcard Locator.js Would Then Process All The Unique Subdomains And Return All The POTENTIAL Wildcard Areas Within Those Subdomains e.g *.exampledns.com

02). AltDns Generator.js:

  • AltDns Generator.js Takes In 2 Arguments
    1. DNS Wordlist
    2. Wildcard DNS Generated By Subdomain Wildcard Locator.js OR A Regular Domain e.g *.exampledns.com OR dev.exampledns.com etc.
  • AltDns Generator.js Treats Every Domain Independently Depending On Which Type Of Wildcard That Is Provided
    1. If The Supplied Subdomain Contains * As A Subdomain, Then AltDns Generator.js Would Only Focus And Generate AltDns At The * Position Notwithstanding If Create All Possible AltDns Permutation Is Checked
    2. If The Supplied Subdomain DOES NOT Contains * As A Subdomain, And Create All Possible AltDns Permutation Is NOT Checked, Then AltDns Generator.js Would Only Focus On Generating AltDns At The Beginning Position Of The Supplied Domain
    3. ELSE If The Supplied Subdomain DOES NOT Contains * As A Subdomain, And Create All Possible AltDns Permutation Is CHECKED, Then AltDns Generator.js Would Generate All Possible AltDns At At Every Position Of The Supplied Domain
      e.g admin.dev.exampledns.com & A Wordlist Of git Would Output
      admin.dev.exampledns.com
      git.admin.dev.exampledns.com
      admin.git.dev.exampledns.com
      admin.dev.git.exampledns.com
  • IF YOU ALREADY HAVE YOUR GENERATED DOMAINS & JUST WANT TO TEST IT'S VALIDITY WITHOUT NEEDING TO GENERATE NEW ALTDNS
    • Input Your Domains Into The Domains Field
    • Input PASS (in Caps) into the WordList Field.

03). Set Wordlist Generator Parameters:

OPTIONAL
  • Setting Parameters For Generating Wordlist From Domain Names...
    1. Set Min Word length To Return. (default min length is 3)
    2. Set Max Word length To Return. (default max length is 15)

04). DNS Resolver:

  • Click On The Resolve DNS Button In The Menu Bar Of AltDns Generator.js An All Generated AltDns Would Be Sent To The Server For Processing
  • Wait For DNS Resolver To Finish It's Job Then A Process Completion Message Would Appear On Your Screen & Result Would Be Populated As Resolved DNS OR Where It Fits Depending On The Outcome

05). Filter:

OPTIONAL
  • Filter Params A From B And Return The Unique Values In A
  • Filter Params A From B And Return The Unique Values In B
  • Filter Params A & B And Return The Unique Values In Both A & B

Also:

You Can Also Intelligently Resolve Domains In Bash Terminal (CMD) Using:

# Using .txt File Of Within 3000 Lines Of DNS (FAST)
# Note: A large file with lines over 3*** would return (xargs: argument line too long error)
cat inputDomains.txt | xargs -0 node resolveDns_bash.js | tee --append /locationTo/saveLiveDomains.txt

# Using .txt File Of Any Line Length Of DNS (SLOW)
# No Error With large file / Long Lines
cat inputDomains.txt | xargs -n 1 node resolveDns_bash.js | tee --append /locationTo/saveLiveDomains.txt

cat inputDomains.txt | xargs -n4 node resolveDns_bash.js | tee --append /locationTo/saveLiveDomains.txt
// Using An Exported Array, From A .JS File Of Any Line Length OF DNS (FAST)
// No Error With large file / Long Lines
// NOTE: The "array" Argument is a constant & must be present in the code
node resolveDns_bash.js "/location/Of/dnsFunc.js" "array" | >> /locationTo/saveLiveDomains.txt

// dnsFunc.js File Example...
function dnsFunc() {
  let dns = [ "example.com", "www.example.com"];
  return dns;
}
module.exports = dnsFunc();

"homepage": "https://sidodus.github.io/AltDnsGen/"

Use Online @ AltDnsGen.
Developed By Saheed Odulaja.