jhaddix / domain Goto Github PK
View Code? Open in Web Editor NEWSetup script for Regon-ng
Setup script for Regon-ng
root@kali:~/h4ck/enum-all/domain# ./enumall.py
Traceback (most recent call last):
File "./enumall.py", line 27, in
sys.path.insert(0,reconPath)
NameError: name 'reconPath' is not defined
After searching domains from Bing following error happen:
SUMMARY
-------
[*] 1 total (1 new) hosts found.
[!] Invalid module name.
Traceback (most recent call last):
File "./enumall.py", line 98, in <module>
run_recon(domainList, bruteforceList)
File "./enumall.py", line 52, in run_recon
run_module(reconb, module, domain)
File "./enumall.py", line 37, in run_module
x.do_set("SOURCE " + domain)
AttributeError: 'NoneType' object has no attribute 'do_set'
The master
branch of recon-ng
does not work with this project. Adding description for compatible releases of recon-ng
would be nice
https://github.com/jhaddix/domain/blob/master/enumall.py#L45
enumall.py
tries to load recon/domains-hosts/{baidu_site,yahoo_domain}
which have been removed from LaNMaSteR53/recon-ng since April 22, 2016, commit d23da13.
I suggest removing the modules from the list, or suggesting a different, more specific fork of recon-ng which contains the baidu & yahoo plugins.
I was trying to install enumall.py but failed.
root@kali:~/Desktop/tools/domain-master# ./enumall.py google.com
Traceback (most recent call last):
File "./enumall.py", line 26, in
from recon.core import base
ImportError: No module named recon.core
No longer compatible with main branch of recon-ng as recon-ng has moved to python3 and has updated their code, which breaks some references in enumall.py.
Hey, I encountered this error at the last stage of running recon-ng in git bash. If someone understands, please help me solve it
$ ./recon-ng
Traceback (most recent call last):
File "C:\Users\User\recon-ng\recon-ng", line 8, in <module>
from recon.core import base
File "C:\Users\User\recon-ng\recon\core\base.py", line 7, in <module>
import imp
ModuleNotFoundError: No module named 'imp'
Traceback (most recent call last):
File "./enumall.py", line 28, in
from recon.core import base
File "/usr/share/recon-ng/recon/core/base.py", line 32
framework.Framework._spool.write(f"{args[0]}{os.linesep}")
^
SyntaxError: invalid syntax
โ recon-ng git:(master) sudo pip install -r README.md REQUIREMENTS
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 262, in run
for req in parse_requirements(filename, finder=finder, options=options, session=session):
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1632, in parse_requirements
req = InstallRequirement.from_line(line, comes_from, prereleases=getattr(options, "pre", None))
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 173, in from_line
return cls(req, comes_from, url=url, prereleases=prereleases)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 71, in __init__
req = pkg_resources.Requirement.parse(req)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2667, in parse
reqs = list(parse_requirements(s))
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2605, in parse_requirements
line, p, specs = scan_list(VERSION,LINE_END,line,p,(1,2),"version spec")
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2573, in scan_list
raise ValueError("Expected "+item_name+" in",line,"at",line[p:])
ValueError: ('Expected version spec in', 'Recon-ng is a full-featured Web Reconnaissance framework written in Python. Complete with independent modules, database interaction, built in convenience functions, interactive help, and command completion, Recon-ng provides a powerful environment in which open source web-based reconnaissance can be conducted quickly and thoroughly.', 'at', ' is a full-featured Web Reconnaissance framework written in Python. Complete with independent modules, database interaction, built in convenience functions, interactive help, and command completion, Recon-ng provides a powerful environment in which open source web-based reconnaissance can be conducted quickly and thoroughly.')
Storing debug log for failure in /home/<snip>/.pip/pip.log
Any ideas?
[!] 'shodan_api' key not set. shodan_hostname module will likely fail at runtime. See 'keys add'.
[!] 'bing_api' key not set. bing_domain_api module will likely fail at runtime. See 'keys add'.
[!] 'builtwith_api' key not set. builtwith module will likely fail at runtime. See 'keys add'.
[!] 'shodan_api' key not set. shodan_ip module will likely fail at runtime. See 'keys add'.
how to fix this
There is an issue when trying to load the 'google_site_web' module when running enumall.py. Interestingly, Bing works correctly in enumall.py and 'google_site_web' also works within recon-ng. This is what is occurring when trying to go through the code in pdb:
(Pdb) l
30 pdb.set_trace()
31 if altDnsPath:
32 sys.path.insert(1, altDnsPath)
33
34 def run_module(reconBase, module, domain):
35 -> x = reconBase.do_load(module)
36 x.do_set("SOURCE " + domain)
37 x.do_run(None)
38
39
40 def run_recon(domains, bruteforce):
(Pdb) module
'recon/domains-hosts/google_site_web'
(Pdb) n
[!] Invalid module name.
> /home/miqlae/domain/enumall.py(36)run_module()
-> x.do_set("SOURCE " + domain)
By the way, for testing purposes, I removed all the modules, except for Google. I also had to change the paths in the reconPath
, altDnsPath
variables to the correct paths, but everything else seems to work okay.
I'm testing on Ubuntu 16.04, latest versions of enumall, recon-ng and altdns.
Hey there,
I know you are going off the assumption that the user is using Kali but for those who are not, can I suggest the results are saved to a local folder such as "reports"?
echo "set FILENAME /root/Desktop/$domain$stamp.csv" >> $domain$stamp.resource
echo "set FILENAME /root/Desktop/$domain$stamp.lst" >> $domain$stamp.resource
As discussed, I have to say that enumall is the best thing i used till now .. i am finding assets didn't find with other tools, would suggest if it can check sudomains also from crt.sh and http://threatcrowd.org .. it will be great :) thank you.
raceback (most recent call last):
File "AIG.py", line 60, in
main()
File "AIG.py", line 58, in main
portScan(Host, Ports)
File "AIG.py", line 45, in portScan
t = Thread(target = connection, args=(Host, int(Port)))
ValueError: invalid literal for int() with base 10: 'None'
Hey Jason Haddix,
I think you forgot to add REQUIREMENTS file or it's removed. Can you please check this.
In readme file it's clearly state that it's needed.
File "enumall.py", line 83
print "Error: no altDns path specified, please download from: https://github.com/infosec-au/altdns"
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Error: no altDns path specified, please download from: https://github.com/infosec-au/altdns")?
In the following example the module name is wrong. It should be yahoo_domain.
[recon-ng][example.com08_10_2015][google_site_api] > use recon/domains-hosts/yahoo_site
[!] Invalid module name.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.