p1g3 / jsinfo-scan Goto Github PK
View Code? Open in Web Editor NEW递归式寻找域名和api。
递归式寻找域名和api。
elif os.path.isfile(target):
with open(target, 'r+', encoding='utf-8') as f:
for domain in f:
domain = domain.strip()
if not domain.startswith(('http://', 'https://')):
domain = 'http://www.' + domain
self.root_domains.append(domain)
self.queue.put(domain)
这样就好啦~
使用命令 python jsinfo.py --target xxx.com 运行,出现以下异常
2021-03-15 01:28:01.059 | INFO | main:start:191 - --------------------
2021-03-15 01:28:01.060 | INFO | main:start:192 - [+]root domain count ==> 12
2021-03-15 01:28:01.060 | INFO | main:start:193 - [+]sub domain count ==> 52
2021-03-15 01:28:01.060 | INFO | main:start:194 - [+]api count ==> 19946
2021-03-15 01:28:01.060 | INFO | main:start:195 - [+]leakinfos count ==> 687
2021-03-15 01:28:01.061 | INFO | main:start:196 - --------------------
Task exception was never retrieved
future: <Task finished coro=<JSINFO.FindLinkInPage() done, defined at jsinfo.py:231> exception=CancelledError()>
concurrent.futures._base.CancelledError
楼下的兄弟 跟我换win吧
可以考虑增加一下中间结果的输出,不然一旦程序中间被无意kill或者服务器出问题,跑了很久的信息结果没有输出。。。。就很难受。
新版本无法自定义输出路径
如果api文件不能爬那还咋看关键文件。。。。
建议改为(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d).(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d).(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d).(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)
避免匹配到非法IP地址如:3.333.333.3333
please take a look on this error:
/home/test/Desktop/mod/JSINFO-SCAN/jsinfo.py:171: DeprecationWarning: There is no current event loop
loop = asyncio.get_event_loop()
/home/test/Desktop/mod/JSINFO-SCAN/jsinfo.py:186: DeprecationWarning: There is no current event loop
tasks.append(asyncio.ensure_future(self.FindLinkInPage(url)))
RT
邮箱有大量误报,建议 pattern 中限定几个常见的根域名
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.