diff --git a/README.md b/README.md index 1a7352a..f727474 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/Takeover/README.md b/Takeover/README.md new file mode 100644 index 0000000..bcb1da0 --- /dev/null +++ b/Takeover/README.md @@ -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 -------- +``` diff --git a/Takeover/Script b/Takeover/Script new file mode 100644 index 0000000..05a34b3 --- /dev/null +++ b/Takeover/Script @@ -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();