Skip to content

Commit

Permalink
Add ffuf
Browse files Browse the repository at this point in the history
  • Loading branch information
gorums committed Jan 23, 2020
1 parent 9fb0698 commit 2e42ece
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
37 changes: 37 additions & 0 deletions Ffuf/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
## 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

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

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

## Ffuf Script

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

## Ffuf Dockerfile Entry

```
# -------- Agents dependencies --------
# To allow run ffuf inside the docker
RUN apt-get update && apt-get install -y wget && apt-get install -y git
RUN wget https://dl.google.com/go/go1.13.4.linux-amd64.tar.gz
RUN tar -C /usr/local -xzf go1.13.4.linux-amd64.tar.gz
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
# -------- End Agents dependencies --------
```

## Ffuf Command for Docker

```
cd /root/go/bin/ && ./ffuf -w /app/dicc.txt -u https://{{domain}}/FUZZ
```
21 changes: 21 additions & 0 deletions Ffuf/Script
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using ReconNess.Core.Models;

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

lineInput = lineInput.Replace("","");
var match = System.Text.RegularExpressions.Regex.Match(lineInput, @"(.*?)\[Status: (.*?), Size: (.*?),");
if (match.Success && match.Groups.Count == 4)
{
return new ScriptOutput
{
HttpDirectory = match.Groups[1].Value,
HttpDirectoryMethod = "GET",
HttpDirectoryStatusCode = match.Groups[2].Value,
HttpDirectorySize = match.Groups[3].Value,
};
}

return new ScriptOutput();

0 comments on commit 2e42ece

Please sign in to comment.