Comments (3)
还有就是有些网站访问不存在地址时返回的响应码为200 这时候会导致 Dir.txt中的所有内容都会存储到urlout.txt中 可不可以加上一个判断 如果返回包的hash一致则不保存
import hashlib
encountered_hashes = set()
valid_pages = []
content_hash = hashlib.md5(r.content).hexdigest()
if content_hash not in encountered_hashes:
# 如果是新的哈希值,保存页面内容并记录哈希值
valid_pages.append(r.content)
encountered_hashes.add(content_hash)
f2 = open("urlout.txt", "a")
f2.write(u + '\n')
f2.close()
else:
# 如果哈希值已存在,忽略该页面内容
print(f"已存在{url}")
from springboot-scan.
已经收到师傅的反馈,我会再优化优化相关的内容🤩
之前就已经想到对页面Hash进行校验的想法哈哈~
from springboot-scan.
嗯嗯 期待更新😁
from springboot-scan.
Related Issues (15)
- error HOT 1
- 缺少代理 HOT 1
- 考虑增加多线程,面对大批量目标,可以提高扫描速率 HOT 4
- CVE-2022-22965漏洞利用的一些问题 HOT 2
- 扫描报错 HOT 2
- 师傅能不能CVE漏洞增加命令交互功能,默认只执行id,想执行其他命令 HOT 2
- 安装库后,还是报错 HOT 7
- 有一个IP忘记打码了 HOT 1
- 血书一个自定义请求头功能 HOT 1
- 扫描文件URL中针对inc文件夹下run.py中封装的file函数中try方法的优化建议. HOT 5
- CVE_2022_22947漏报 HOT 2
- plz add En Lange and support yaml file HOT 1
- 扫出来了这个webjars/springfox-swagger-ui/swagger-ui-standalone-preset.js?v=2.9.2请问有危害吗没看出来怎么利用 HOT 3
- 关于指纹识别的一个疑问 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from springboot-scan.