-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using ReconNess.Core.Models; | ||
|
||
var match = System.Text.RegularExpressions.Regex.Match(lineInput, @"([^\.\/]+)(\.[^\.\/]+)+(?:\/|$)"); | ||
if (match.Success) | ||
{ | ||
return new ScriptOutput { Subdomain = match.Groups[0].Value }; | ||
} | ||
|
||
return new ScriptOutput(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
## Puredns command | ||
|
||
Using {{rootDomain}} ReconNess replace {{rootDomain}} to the root domain, for example, yahoo.com if we define that as a root domain adding the Target | ||
|
||
If we have massdns in the folder /app/massdns/bin/massdns | ||
|
||
``` | ||
puredns bruteforce subdomains.txt {{rootDomain}} --resolvers resolvers.txt --bin /app/massdns/bin/massdns -q | ||
``` | ||
|
||
## Puredns Command for Docker | ||
|
||
``` | ||
/root/go/bin/puredns bruteforce /app/Content/wordlists/subdomain_enum/default.txt {{rootDomain}} --resolvers /app/Content/wordlists/dns_resolver_enum/default.txt --bin /app/massdns/bin/massdns -q | ||
``` | ||
|
||
## Puredns Script | ||
|
||
Check [Script file](https://github.com/reconness/reconness-agents/blob/master/Puredns/Script) | ||
|
||
## Puredns Dockerfile Entry | ||
|
||
# -------- Agents dependencies -------- | ||
|
||
``` | ||
# To allow run Puredns inside the docker | ||
RUN apt-get update && apt-get install -y git build-essential wget | ||
RUN wget https://dl.google.com/go/go1.14.6.linux-amd64.tar.gz | ||
RUN tar -C /usr/local -xzf go1.14.6.linux-amd64.tar.gz | ||
RUN git clone https://github.com/blechschmidt/massdns.git && cd massdns && make | ||
RUN GO111MODULE=on /usr/local/go/bin/go get github.com/d3mondev/puredns/v2 | ||
``` | ||
|
||
# -------- End Agents dependencies -------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters