Skip to content

Commit

Permalink
Add Massdns
Browse files Browse the repository at this point in the history
  • Loading branch information
gorums committed Jul 24, 2020
1 parent 4b98e84 commit 5e796c9
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 25 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ RUN apt-get install -y python-dnspython
RUN git clone https://github.com/guelfoweb/knock
RUN cd knock && python setup.py install

# To allow run Massdns inside the docker
RUN apt-get install -y build-essential
RUN git clone https://github.com/blechschmidt/massdns.git && cd massdns && make
RUN cd /app && wget https://raw.githubusercontent.com/reconness/reconness-agents/master/Massdns/MassdnsWrapper.go

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

ENTRYPOINT ["dotnet", "ReconNess.Web.dll"]
12 changes: 6 additions & 6 deletions Knockpy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ If we have knockpy in the folder /app/knock/
python /app/knock/knockpy/knockpy.py {{rootDomain}}
```

## Knockpy Command for Docker

```
python /app/knock/knockpy/knockpy.py {{rootDomain}}
```

## Knockpy Script

Check [Script file](https://github.com/reconness/reconness-agents/blob/master/Knockpy/Script)
Expand All @@ -25,9 +31,3 @@ RUN cd knock && python setup.py install
# -------- End Agents dependencies --------
```

## Knockpy Command for Docker

```
python /app/knock/knockpy/knockpy.py {{rootDomain}}
```
17 changes: 10 additions & 7 deletions Massdns/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,26 @@ Using {{target}} ReconNess replaces {{{target}}} for the target and {{rootDomain
If we have MassdnsWrapper in the folder ~/Desktop/MassdnsWrapper/

```
cd ~/Desktop/MassdnsWrapper && /usr/local/go/bin/go run MassdnsWrapper.go -b https://localhost -a api/Auth/Login -u <username> -p <password> -s api/targets/exportSubdomains/{{target}}/{{rootDomain}}
cd ~/Desktop/MassdnsWrapper && /usr/local/go/bin/go run MassdnsWrapper.go -o "-t A --ignore --norecurse --predictable" -b https://localhost -a api/Auth/Login -u <username> -p <password> -s api/targets/exportSubdomains/{{target}}/{{rootDomain}}
```

## MassDNS Command for Docker
## Massdns Command for Docker

```
/usr/local/go/bin/go run MassdnsWrapper.go -b https://localhost -a api/Auth/Login -u <username> -p <password> -s api/targets/exportSubdomains/{{target}}/{{rootDomain}}
/usr/local/go/bin/go run MassdnsWrapper.go -o "-t A --ignore --norecurse --predictable" -b https://localhost -a api/Auth/Login -u <username> -p <password> -s api/targets/exportSubdomains/{{target}}/{{rootDomain}}
```

## Massdns Script

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


## Massdns Dockerfile Entry

```
# -------- Agents dependencies --------
# To allow run Massdns inside the docker

```
RUN apt-get update && apt-get install -y git build-essential wget
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
Expand All @@ -29,8 +33,7 @@ RUN echo 'export GOPATH=$HOME/go' >> ~/.profile
RUN echo 'export PATH=$GOPATH/bin:$GOROOT/bin:$PATH' >> ~/.profile
RUN . ~/.profile
RUN git clone https://github.com/blechschmidt/massdns.git && cd massdns && make
RUN cd /app && wget https://raw.githubusercontent.com/hiddengearz/reconness-agents/master/Massdns/MassdnsWrapper.go
```
RUN cd /app && wget https://raw.githubusercontent.com/reconness/reconness-agents/master/Massdns/MassdnsWrapper.go
# -------- End Agents dependencies --------
```
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ These are the list of Agents tested inside the Docker
- [Findomain](https://github.com/reconness/reconness-agents/tree/master/Findomain)
- [OneForAll](https://github.com/reconness/reconness-agents/tree/master/OneForAll)
- [Knockpy](https://github.com/reconness/reconness-agents/tree/master/Knockpy)
- [Massdns](https://github.com/reconness/reconness-agents/tree/master/Massdns)

### Agents Dir Discovery

Expand Down
12 changes: 6 additions & 6 deletions Subfinder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ Using {{domain}} ReconNess replace {{domain}} to the root domain, for example, y
subfinder -d '{{domain}}'
```

## Subfinder Command for Docker

```
cd /root/go/bin/ && ./subfinder -d {{domain}}
```

## Subfinder Script

Check [Script file](https://github.com/reconness/reconness-agents/blob/master/Subfinder/Script)
Expand All @@ -27,9 +33,3 @@ RUN . ~/.profile && go get -u github.com/projectdiscovery/subfinder/cmd/subfinde
# -------- End Agents dependencies --------
```

## Subfinder Command for Docker

```
cd /root/go/bin/ && ./subfinder -d {{domain}}
```
12 changes: 6 additions & 6 deletions Zdns/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ Using {{domain}} ReconNess replace {{domain}} for the subdomain.
echo "{{domain}},8.8.8.8" | go run zdns/main.go A
```

## Zdns Command for Docker

```
cd /app/zdns/zdns && echo "{{domain}},8.8.8.8" | /usr/local/go/bin/go run main.go A
```

## Zdns Script

Check [Script file](https://github.com/reconness/reconness-agents/blob/master/Zdns/Script)
Expand All @@ -27,9 +33,3 @@ RUN . ~/.profile && cd zdns && go build
# -------- End Agents dependencies --------
```

## Zdns Command for Docker

```
. ~/.profile && cd /app/zdns/zdns && echo "{{domain}},8.8.8.8" | go run main.go A
```
11 changes: 11 additions & 0 deletions default-agents.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,17 @@
"skipIfRanBefore": "false",
"scriptUrl": "https://raw.githubusercontent.com/reconness/reconness-agents/master/Knockpy/Script",
"repository": "https://github.com/guelfoweb/knock"
},
{
"name": "Massdns",
"category": "Agents Subdomain Enum",
"command": "/usr/local/go/bin/go run MassdnsWrapper.go -o \"-t A --ignore --norecurse --predictable\" -b https://localhost -a api/Auth/Login -u <username> -p <password> -s api/targets/exportSubdomains/{{target}}/{{rootDomain}}",
"isBySubdomain": "false",
"onlyIfIsAlive": "false",
"onlyIfHasHttpOpen": "false",
"skipIfRanBefore": "false",
"scriptUrl": "https://raw.githubusercontent.com/reconness/reconness-agents/master/Massdns/Script",
"repository": "https://github.com/blechschmidt/massdns"
}
]
}

0 comments on commit 5e796c9

Please sign in to comment.