Skip to content

Commit

Permalink
Add Gowitness
Browse files Browse the repository at this point in the history
  • Loading branch information
gorums committed Sep 6, 2021
1 parent 55b4ed3 commit 256f2a6
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ RUN GO111MODULE=on /usr/local/go/bin/go get -v github.com/dwisiswant0/crlfuzz/cm
# To allow run puredns inside the docker
RUN GO111MODULE=on /usr/local/go/bin/go get github.com/d3mondev/puredns/v2

# To allow run gowitness inside the docker
RUN GO111MODULE=on /usr/local/go/bin/go get -u github.com/sensepost/gowitness

# -------- End Agents dependencies --------

ENTRYPOINT ["dotnet", "ReconNess.Web.dll"]
32 changes: 32 additions & 0 deletions Gowitness/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
## Gowitness Command

Using {{target}}, {{rootDomain}} and {{domain}} ReconNess replace {{target}} for the target name, {{rootDomain}} for the rootdomain name and {{domain}} for the subdomain.

```
gowitness single -o /Content/screenshots/{{target}}/{{rootDomain}}/{{domain}}.png https://{{domain}}
```
## Gowitness Command for Docker

```
mkdir -p /app/Content/screenshots/{{target}}/{{rootDomain}}/ && /root/go/bin/gowitness single -o /app/Content/screenshots/{{target}}/{{rootDomain}}/{{domain}}.png https://{{domain}}
```

## Gowitness Script

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

## Gowitness Dockerfile Entry

```
# -------- Agents dependencies --------
# To allow run gowitness inside the docker
RUN wget https://golang.org/dl/go1.16.linux-amd64.tar.gz
RUN tar -C /usr/local -xzf go1.16.linux-amd64.tar.gz
RUN export GOPATH=$HOME/go
RUN export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
RUN GO111MODULE=on /usr/local/go/bin/go get -u github.com/sensepost/gowitness
# -------- End Agents dependencies --------
```
1 change: 1 addition & 0 deletions Gowitness/Script
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return new ReconNess.Core.Models.ScriptOutput();
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ These are the list of Agents tested inside the Docker
- [Nuclei](https://github.com/reconness/reconness-agents/tree/master/Nuclei)
- [CRLFuzz](https://github.com/reconness/reconness-agents/tree/master/CRLFuzz)

### Agents Screenshots

- [Gowitness](https://github.com/reconness/reconness-agents/tree/master/Gowitness)

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

Expand Down
8 changes: 8 additions & 0 deletions default-agents1.5.json
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,14 @@
"isByRootDomain": "true",
"scriptUrl": "https://raw.githubusercontent.com/reconness/reconness-agents/master/Puredns/Script",
"repository": "https://github.com/d3mondev/puredns"
},
{
"name": "Gowitness",
"category": "Agents Screenshot",
"command": "mkdir -p /app/Content/screenshots/{{target}}/{{rootDomain}}/ && /root/go/bin/gowitness single -o /app/Content/screenshots/{{target}}/{{rootDomain}}/{{domain}}.png https://{{domain}}",
"isBySubdomain": "true",
"scriptUrl": "https://raw.githubusercontent.com/reconness/reconness-agents/master/Gowitness/Script",
"repository": "https://github.com/sensepost/gowitness
}
]
}

0 comments on commit 256f2a6

Please sign in to comment.