Custom bash scripts used to automate various penetration testing tasks including recon, scanning, enumeration, and malicious payload creation using Metasploit. For use with Kali Linux.
I installed discover and made a passive scan successfully but there's a problem with the data directory. I can't find anything in the data directory after the scan. I tried changing the permissions for the data directory but that didn't work.
_____ ___ _____ _____ _____ _ _ _____ _____
| \ | |____ | | | \ / |____ |____/
|_____/ _|_ _____| |_____ |_____| \/ |_____ | \_
By Lee Baird
Uses ARIN, dnsrecon, goofile, goog-mail, goohost, theHarvester,
Metasploit, URLCrazy, Whois, multiple websites, and recon-ng.
[*] Acquire API keys for maximum results with recon-ng and
theHarvester.
==================================================================
Usage
Company: Target
Domain: target.com
==================================================================
Company: blend
Domain: https://blend.com
cp: cannot create directory '/root/data/https://blend.com': No such file or directory
sed: can't read /root/data/https://blend.com/index.htm: No such file or directory
sed: -e expression #1, char 19: unknown option to `s'
sed: can't read /root/data/https://blend.com/index.htm: No such file or directory
==================================================================
ARIN
Email (1/44)
Names (2/44)
Networks (3/44)
BLEND-1
dnsrecon (4/44)
/opt/discover/passive.sh: line 117: dnsrecon: command not found
/opt/discover/passive.sh: line 119: /root/data/https://blend.com/data/records.htm: No such file or directory
/opt/discover/passive.sh: line 120: /root/data/https://blend.com/data/records.htm: No such file or directory
goofile (5/44)
goog-mail (6/44)
goohost
IP (7/44)
Email (8/44)
/opt/discover/mods/goohost.sh: line 502: report-27485-https://blend.com.txt: No such file or directory
wc: 'report-27485-https://blend.com.txt': No such file or directory
cat: 'report-*': No such file or directory
theHarvester
baidu (9/44)
bing (10/44)
bingapi (11/44)
censys (12/44)
crtsh (13/44)
dnsdumpster (14/44)
dogpile (15/44)
duckduckgo (16/44)
exalead (17/44)
github-code (18/44)
google (19/44)
hunter (20/44)
intelx (21/44)
linkedin (22/44)
netcraft (23/44)
otx (24/44)
securityTrails (25/44)
spyse (26/44)
threatcrowd (27/44)
trello (28/44)
twitter (29/44)
vhost (30/44)
virustotal (31/44)
yahoo (32/44)
Metasploit (33/44)
URLCrazy (34/44)
/opt/discover/passive.sh: line 252: urlcrazy: command not found
Whois
Domain (35/44)
IP (36/44)
crt.sh (37/44)
Traceback (most recent call last):
File "/opt/discover/parsers/parse-certificates.py", line 6, in <module>
from texttable import Texttable
ImportError: No module named texttable
/opt/discover/passive.sh: line 347: /root/data/https://blend.com/data/certificates.htm: No such file or directory
/opt/discover/passive.sh: line 348: /root/data/https://blend.com/data/certificates.htm: No such file or directory
/opt/discover/passive.sh: line 349: /root/data/https://blend.com/data/certificates.htm: No such file or directory
dnsdumpster.com (38/44)
email-format.com (39/44)
hackertarget.com (40/44)
/opt/discover/passive.sh: line 375: /root/data/https://blend.com/data/pages.htm: No such file or directory
intodns.com (41/44)
/opt/discover/passive.sh: line 383: /root/data/https://blend.com/pages/config.htm: No such file or directory
sed: can't read /root/data/https://blend.com/pages/config.htm: No such file or directory
sed: can't read /root/data/https://blend.com/pages/config.htm: No such file or directory
sed: can't read /root/data/https://blend.com/pages/config.htm: No such file or directory
sed: can't read /root/data/https://blend.com/pages/config.htm: No such file or directory
sed: can't read /root/data/https://blend.com/pages/config.htm: No such file or directory
sed: can't read /root/data/https://blend.com/pages/config.htm: No such file or directory
sed: can't read /root/data/https://blend.com/pages/config.htm: No such file or directory
sed: can't read /root/data/https://blend.com/pages/config.htm: No such file or directory
sed: can't read /root/data/https://blend.com/pages/config.htm: No such file or directory
sed: can't read /root/data/https://blend.com/pages/config.htm: No such file or directory
sed: can't read /root/data/https://blend.com/pages/config.htm: No such file or directory
robtex.com (42/44)
/root/data/https://blend.com/assets/images/robtex.png: No such file or directory
Registered Domains (43/44)
recon-ng (44/44)
sed: -e expression #1, char 14: unknown option to `s'
/opt/discover/passive.sh: line 534: recon-ng: command not found
cat: /tmp/usernames: No such file or directory
rm: cannot remove '/tmp/emails': No such file or directory
rm: cannot remove '/tmp/networks': No such file or directory
rm: cannot remove '/tmp/usernames': No such file or directory
sed: -e expression #1, char 14: unknown option to `s'
/opt/discover/passive.sh: line 554: recon-ng: command not found
grep: /tmp/emails: No such file or directory
sed: can't read /tmp/names: No such file or directory
grep: /tmp/networks: No such file or directory
cat: networks-tmp: No such file or directory
grep: /tmp/subdomains: No such file or directory
/opt/discover/passive.sh: line 579: /root/data/https://blend.com/data/hosts.htm: No such file or directory
/opt/discover/passive.sh: line 580: /root/data/https://blend.com/data/hosts.htm: No such file or directory
/opt/discover/passive.sh: line 582: c: command not found
/opt/discover/passive.sh: line 595: /root/data/https://blend.com/data/emails.htm: No such file or directory
/opt/discover/passive.sh: line 596: /root/data/https://blend.com/data/emails.htm: No such file or directory
/opt/discover/passive.sh: line 609: /root/data/https://blend.com/data/names.htm: No such file or directory
/opt/discover/passive.sh: line 610: /root/data/https://blend.com/data/names.htm: No such file or directory
/opt/discover/passive.sh: line 611: /root/data/https://blend.com/data/names.htm: No such file or directory
/opt/discover/passive.sh: line 651: /root/data/https://blend.com/data/registered-domains.htm: No such file or directory
/opt/discover/passive.sh: line 652: /root/data/https://blend.com/data/registered-domains.htm: No such file or directory
/opt/discover/passive.sh: line 653: /root/data/https://blend.com/data/registered-domains.htm: No such file or directory
/opt/discover/passive.sh: line 654: /root/data/https://blend.com/data/registered-domains.htm: No such file or directory
/opt/discover/passive.sh: line 667: /root/data/https://blend.com/data/squatting.htm: No such file or directory
/opt/discover/passive.sh: line 668: /root/data/https://blend.com/data/squatting.htm: No such file or directory
/opt/discover/passive.sh: line 681: /root/data/https://blend.com/data/subdomains.htm: No such file or directory
/opt/discover/passive.sh: line 682: /root/data/https://blend.com/data/subdomains.htm: No such file or directory
/opt/discover/passive.sh: line 698: /root/data/https://blend.com/data/doc.htm: No such file or directory
/opt/discover/passive.sh: line 699: /root/data/https://blend.com/data/doc.htm: No such file or directory
/opt/discover/passive.sh: line 712: /root/data/https://blend.com/data/pdf.htm: No such file or directory
/opt/discover/passive.sh: line 713: /root/data/https://blend.com/data/pdf.htm: No such file or directory
/opt/discover/passive.sh: line 726: /root/data/https://blend.com/data/ppt.htm: No such file or directory
/opt/discover/passive.sh: line 727: /root/data/https://blend.com/data/ppt.htm: No such file or directory
/opt/discover/passive.sh: line 740: /root/data/https://blend.com/data/txt.htm: No such file or directory
/opt/discover/passive.sh: line 741: /root/data/https://blend.com/data/txt.htm: No such file or directory
/opt/discover/passive.sh: line 754: /root/data/https://blend.com/data/xls.htm: No such file or directory
/opt/discover/passive.sh: line 755: /root/data/https://blend.com/data/xls.htm: No such file or directory
/opt/discover/passive.sh: line 764: /root/data/https://blend.com/data/whois-domain.htm: No such file or directory
/opt/discover/passive.sh: line 765: /root/data/https://blend.com/data/whois-domain.htm: No such file or directory
/opt/discover/passive.sh: line 776: /root/data/https://blend.com/data/whois-ip.htm: No such file or directory
/opt/discover/passive.sh: line 777: /root/data/https://blend.com/data/whois-ip.htm: No such file or directory
/opt/discover/passive.sh: line 783: /root/data/https://blend.com/data/passive-recon.htm: No such file or directory
/opt/discover/passive.sh: line 784: /root/data/https://blend.com/data/passive-recon.htm: No such file or directory
mv: target '/root/data/https://blend.com/tools/recon-ng/' is not a directory
==================================================================
***Scan complete.***
The supporting data folder is located at /root/data/https://blend.com/
==================================================================
*** This option must be ran locally. ***
==================================================================
I installed discover and made a passive scan successfully but there's a problem with the data directory. I can't find anything in the data directory after the scan. I tried changing the permissions for the data directory but that didn't work.