Skip to content

Commit

Permalink
Add ffuf agent and gobusterDir agent
Browse files Browse the repository at this point in the history
  • Loading branch information
gorums committed Jan 24, 2020
1 parent 2e42ece commit 7306edb
Show file tree
Hide file tree
Showing 9 changed files with 84 additions and 22 deletions.
20 changes: 11 additions & 9 deletions Ffuf/README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
## Ffuf Command
## ffuf Command

Using {{domain}} ReconNess replace {{domain}} to the root domain, for example, yahoo.com if we define that as a root domain adding the Target
Using {{domain}} ReconNess replace {{domain}} for the subdomain.

If we have the wordlist in ~/Desktop/tools/wordlist/directories.txt

```
ffuf -w ~/Desktop/tools/wordlist/directories.txt -u https://{{domain}}/FUZZ
```

## Ffuf Script
## ffuf Command for Docker

```
cd /root/go/bin/ && ./ffuf -w /app/dicc.txt -u https://{{domain}}/FUZZ
```

## ffuf Script

Check [Script file](https://github.com/reconness/reconness-agents/blob/master/Ffuf/Script)

## Ffuf Dockerfile Entry
## ffuf Dockerfile Entry

```
# -------- Agents dependencies --------
Expand All @@ -25,13 +31,9 @@ RUN echo 'export GOROOT=/usr/local/go' >> ~/.profile
RUN echo 'export GOPATH=$HOME/go' >> ~/.profile
RUN echo 'export PATH=$GOPATH/bin:$GOROOT/bin:$PATH' >> ~/.profile
RUN . ~/.profile && go get github.com/ffuf/ffuf
RUN wget https://raw.githubusercontent.com/maurosoria/dirsearch/master/db/dicc.txt
RUN wget https://gist.githubusercontent.com/gorums/0a3a9d903e8e47fbff9d91097e19b4f8/raw/c81a34fe84731430741e0463eb6076129c20c4c0/content_discovery_all.txt
# -------- End Agents dependencies --------
```

## Ffuf Command for Docker

```
cd /root/go/bin/ && ./ffuf -w /app/dicc.txt -u https://{{domain}}/FUZZ
```
36 changes: 36 additions & 0 deletions GoBusterDir/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
## GoBusterDir Command

Using {{domain}} ReconNess replace {{domain}} for the subdomain.

If we have the wordlist in ~/Desktop/tools/wordlist/directories.txt

```
gobuster dir -u https://{{domain}} -w ~/Desktop/tools/wordlist/directories.txt go run main.go dir -u https://{{domain}} -w ~/Desktop/tools/wordlist/directories.txt -z -k -l -r --wildcard
```
## GoBusterDir Command for Docker

```
cd /root/go/bin/ && ./gobuster dir -u https://{{domain}} -w /app/content_discovery_all.txtcd /root/go/bin/ && ./gobuster dir -u https://{{domain}} -w /app/content_discovery_all.txt -z -k -l -r --wildcard
```

## GoBusterDir Script

Check [Script file](https://github.com/reconness/reconness-agents/blob/master/GoBusterDir/Script)

## GoBusterDir Dockerfile Entry

```
# -------- Agents dependencies --------
# To allow run gobuster inside the docker
RUN apt-get update && apt-get install -y git
RUN apt-get install -y wget
RUN wget https://dl.google.com/go/go1.13.linux-amd64.tar.gz
RUN tar -C /usr/local -xzf go1.13.linux-amd64.tar.gz
RUN echo "export PATH=$PATH:/usr/local/go/bin" >> ~/.profile
RUN . ~/.profile && go get github.com/OJ/gobuster
RUN wget https://gist.githubusercontent.com/gorums/0a3a9d903e8e47fbff9d91097e19b4f8/raw/c81a34fe84731430741e0463eb6076129c20c4c0/content_discovery_all.txt
# -------- End Agents dependencies --------
```
File renamed without changes.
14 changes: 7 additions & 7 deletions GoBuster/README.md → GoBusterDns/README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
## GoBuster Command
## GoBusterDns Command

Using {{domain}} ReconNess replace {{domain}} to the root domain, for example, yahoo.com if we define that as a root domain adding the Target.

If we have the wordlist in ~/Desktop/tools/wordlist/all.txt

```
go run main.go dns -d {{domain}} -w ~/Desktop/tools/wordlist/all.txt --wildcard
gobuster dns -d {{domain}} -w ~/Desktop/tools/wordlist/all.txt --wildcard -z
```
## GoBuster Command for Docker
## GoBusterDns Command for Docker

```
cd /root/go/bin/ && ./gobuster dns -d {{domain}} -w /app/Subdomain.txt --wildcard
cd /root/go/bin/ && ./gobuster dns -d {{domain}} -w /app/Subdomain.txt --wildcard -z
```

## GoBuster Script
## GoBusterDns Script

Check [Script file](https://github.com/reconness/reconness-agents/blob/master/GoBuster/Script)
Check [Script file](https://github.com/reconness/reconness-agents/blob/master/GoBusterDns/Script)

## GoBuster Dockerfile Entry
## GoBusterDns Dockerfile Entry

```
# -------- Agents dependencies --------
Expand Down
14 changes: 14 additions & 0 deletions GoBusterDns/Script
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using ReconNess.Core.Models;

if (lineInputCount < 13)
{
return new ScriptOutput();
}

var match = System.Text.RegularExpressions.Regex.Match(lineInput, @"^Found:\s(.*?)");
if (match.Success && match.Groups.Count == 2)
{
return new ScriptOutput { Subdomain = match.Groups[1].Value };
}

return new ScriptOutput();
2 changes: 1 addition & 1 deletion Httprobe/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Httprobe Command

Using {{domain}} ReconNess replace {{domain}} to the root domain, for example, yahoo.com if we define that as a root domain adding the Target
Using {{domain}} ReconNess replace {{domain}} for the subdomain.

```
echo '{{domain}}' | httprobe
Expand Down
2 changes: 1 addition & 1 deletion Nmap/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Nmap Command

Using {{domain}} ReconNess replace {{domain}} to the root domain, for example, yahoo.com if we define that as a root domain adding the Target.
Using {{domain}} ReconNess replace {{domain}} for the subdomain.

```
nmap -T4 {{domain}}
Expand Down
2 changes: 1 addition & 1 deletion Ping/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Ping Command

Using {{domain}} ReconNess replace {{domain}} to the root domain, for example, yahoo.com if we define that as a root domain adding the Target.
Using {{domain}} ReconNess replace {{domain}} for the subdomain.

```
ping {{domain}} -c 1
Expand Down
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,23 @@ Here we are going to store the list of Agents tested running inside ReconNess We

These are the list of Agents tested inside the Docker

### Agents Subdomain Enum

- [Subfinder](https://github.com/reconness/reconness-agents/tree/master/Subfinder)
- [Amass](https://github.com/reconness/reconness-agents/blob/master/Amass)
- [GoBusterDns](https://github.com/reconness/reconness-agents/tree/master/GoBusterDns)
- [Sublist3r](https://github.com/reconness/reconness-agents/tree/master/Sublist3r)
- [GoBuster](https://github.com/reconness/reconness-agents/tree/master/GoBuster)

### Agents Dir Discovery

- [ffuf](https://github.com/reconness/reconness-agents/tree/master/Ffuf)
- [GoBusterDir](https://github.com/reconness/reconness-agents/tree/master/GoBusterDir)

### Agents Scan

- [Httprobe](https://github.com/reconness/reconness-agents/tree/master/Httprobe)
- [Ping](https://github.com/reconness/reconness-agents/tree/master/Ping)
- [Nmap](https://github.com/reconness/reconness-agents/tree/master/Nmap)
- [Httprobe](https://github.com/reconness/reconness-agents/tree/master/Httprobe)
- [Subfinder](https://github.com/reconness/reconness-agents/tree/master/Subfinder)

## Thanks
[@hdbreaker](https://github.com/hdbreaker)
Expand Down

0 comments on commit 7306edb

Please sign in to comment.