domained icon indicating copy to clipboard operation
domained copied to clipboard

Update the process, all the tools it's working.

Open Sitt04 opened this issue 5 years ago • 0 comments

Hello, I'm sorry so much if I have any mistake sending this report, it's my first time on this.

Finally, I could install all the tools and the script it's working now but I had to change some things before starting with the installation:

Install some dependencies more: apt-get install libldns-dev -y libxml2-dev libxslt-dev python-dev

Install Golang1.14.6 following these instructions:

https://golang.org/doc/install?download=go1.14.6.linux-amd64.tar.gz

Write these lines in the final of this file ~/.bashrc for root and your current user for Go: export GOPATH=(Desired Golang working directory) export GOROOT=/usr/local/go (Golang installation directory) export PATH=$PATH:$GOROOT/bin:$GOPATH/bin

Install Python2, Python3 and pip (normally Kali have these versions, less pip): apt-get install python2 python3 python-pip

Changes in domained.py file:

  • Line 156 -> massdnsCMD = "python {} {} {} | {} -r resolvers.txt -t A -o S -w {}_massdns.txt".format(

  • Line 157 -> os.path.join(script_path, "bin/massdns/scripts/subbrute.py"),

  • Line 251 -> EWHTTPScriptIPS = "python3 {} -f {} --no-prompt --web -d **/domained/{}-{}-EW".format( ** = In the -d option, write your domained directory.

  • Line 252 -> os.path.join(script_path, "bin/EyeWitness/Python/EyeWitness.py"),

  • Delete line 254 (this option isn't in EyeWitness)

Changes in installer.py file:

  • Line 46 -> eyeInstallReq = "bash bin/EyeWitness/Python/setup/setup.sh"

When I install the requirements I had the same error always with scandir, I solved launching: pip install --upgrade pip

Last note, while the installation is running asks you if you want to install golang, I told no all times.

More changes after the installation:

  • Enumall. For fix Enumall, I downloaded another Recon-ng version. We have to replace the folder in /usr/share/recon-ng with the version downloaded from this repository https://github.com/methos2016/recon-ng And install the Recon-ng modules from the other version: pip install -r /usr/share/recon-ng/REQUIREMENTS I changed another thing in the Enumall script, it saves the outputs in domained/, and i want to save all the outputs in domained/output to create the last file with all the information. Open enumall.py: Line 64 -> outFile = "FILENAME "+os.getcwd()+"/output/"+domains[0]+"_enumall"

  • Massdns. With massdns we have to replace all the massdns folder in domained/bin/, you can download it from my repository https://github.com/Inferrrno4tmk/Fix-domained I can explain this, I had to test some things with this problem. First, i downloaded another massdns from this repository (https://github.com/blechschmidt/massdns), but this repository doesn't have the bin folder, so, after so many test, I had to use the bin folder from LazyRecon (NahamSec tool). For this reason, finally, I uploaded the folder changed in my repository. If you replace all the massdns folder with my "creation" it should work.

Could you tell me if I made the report correctly? I hope you find this useful.

Thank you for your time.

Sitt04 avatar Sep 03 '20 17:09 Sitt04