-
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
2 changed files
with
58 additions
and
0 deletions.
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
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 | ||
``` |
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,21 @@ | ||
using ReconNess.Core.Models; | ||
|
||
if (lineInputCount < 20) | ||
{ | ||
return new ScriptOutput(); | ||
} | ||
|
||
lineInput = lineInput.Replace("[2K",""); | ||
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(); |