** 备份文件扫描**
- 虽然对于python了解的不够多,但是扫描备份文件的思路还是有一点的
- 以下脚本思路大概为通过循环尝试可能出现的备份文件名称和后缀,并对其进行访问
- 通过requests,get函数获取返回的状态码
- 将状态码为200的输出到新的文档中
import requestsurl = ''li1 = ['web', 'website', 'backup', 'back', 'www', 'wwwroot', 'temp', '']
li2 = ['zip', 'rar', 'tar', 'tar.gz', 'git', 'svn', 'swp', 'bak']for i in li1:for j in li2:url_final = url + i + "." + jr = requests.get(url_final)if r.status_code == 200:print(url_final + ' ' + str(r))with open('200.txt', 'a', encoding='utf-8') as f:f.write(url_final + ' ' + str(r) + '\n')else:print('no')