Skip to content

Commit

Permalink
Add Takeover agent
Browse files Browse the repository at this point in the history
  • Loading branch information
gorums committed Feb 24, 2020
1 parent 9e60757 commit 3f53ee7
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ These are the list of Agents tested inside the Docker
- [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)
- [Takeover](https://github.com/reconness/reconness-agents/tree/master/Takeover)

## Thanks
[@hdbreaker](https://github.com/hdbreaker)
Expand Down
30 changes: 30 additions & 0 deletions Takeover/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## Takeover Command

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

```
python3 takeover.py -d {{domain}} -v
```

## Takeover Command for Docker

```
python3 /app/takeover/takeover.py -d {{domain}} -v
```

## Takeover Script

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

## Takeover Dockerfile Entry

```
# -------- Agents dependencies --------
# To allow run takeover inside the docker
RUN apt-get update && apt-get install -y git python3 python3-pip wget
RUN git clone https://github.com/m4ll0k/takeover.git
RUN cd takeover && python3 setup.py install
# -------- End Agents dependencies --------
```
13 changes: 13 additions & 0 deletions Takeover/Script
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using ReconNess.Core.Models;

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

if (lineInput.Contains("service found! Potential domain takeover found"))
{
return new ScriptOutput { Takeover = true };
}

return new ScriptOutput();

0 comments on commit 3f53ee7

Please sign in to comment.