Knockpy
Knockpy Agent Setup for Subdomain Enum
Using
{{rootDomain}}
ReconNess replace {{rootDomain}}
to the root domain, for example, yahoo.com if we define that as a root domain adding the Targetpython /app/knock/knockpy/knockpy.py {{rootDomain}}
using ReconNess.Core.Models;
if (lineInputCount < 17)
{
return new ScriptOutput();
}
var match = System.Text.RegularExpressions.Regex.Match(lineInput, @"(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\s*(\d{1,3})?\s*([a-z]*)\s*(([a-zA-Z0-9][a-zA-Z0-9-_]*\.)*[a-zA-Z0-9]*[a-zA-Z0-9-_]*[[a-zA-Z0-9]+)");
if (match.Success && match.Groups.Count > 4)
{
return new ScriptOutput
{
Ip = match.Groups[1].Value,
Subdomain = match.Groups.Count == 5 ? match.Groups[3].Value : match.Groups[4].Value,
Note = lineInput
};
}
return new ScriptOutput();
# -------- Agents dependencies --------
# To allow run knockpy the docker
RUN apt-get update && apt-get install -y git python2.7 python-pip python-dnspython
RUN git clone https://github.com/guelfoweb/knock
RUN cd knock && python setup.py install
# -------- End Agents dependencies --------
python /app/knock/knockpy/knockpy.py {{rootDomain}}
Last modified 3yr ago