@@ -41,11 +41,13 @@ def url(urllist,proxies):
4141 except :
4242 cprint ("[-] URL为 " + u + " 的目标积极拒绝请求,予以跳过!" , "magenta" )
4343 #break
44- if r .status_code == 200 :
44+ if (( r .status_code == 200 ) and ( 'need login' not in r . text ) and ( '禁止访问' not in r . text )) :
4545 cprint ("[+] 状态码%d" % r .status_code + ' ' + "信息泄露URL为:" + u + ' ' + "页面长度为:" + str (len (r .content )),"red" )
4646 f2 = open ("urlout.txt" , "a" )
4747 f2 .write (u + '\n ' )
4848 f2 .close ()
49+ elif (r .status_code == 200 ):
50+ cprint ("[+] 状态码%d" % r .status_code + ' ' + "但无法获取信息 URL为:" + u + ' ' + "页面长度为:" + str (len (r .content )),"magenta" )
4951 else :
5052 cprint ("[-] 状态码%d" % r .status_code + ' ' + "无法访问URL为:" + u ,"yellow" )
5153 count = len (open ("urlout.txt" , 'r' ).readlines ())
@@ -81,11 +83,13 @@ def file(filename,proxies):
8183 except :
8284 cprint ("[-] URL为 " + u + " 的目标积极拒绝请求,予以跳过!" , "magenta" )
8385 #break
84- if r .status_code == 200 :
86+ if (( r .status_code == 200 ) and ( 'need login' not in r . text ) and ( '禁止访问' not in r . text )) :
8587 cprint ("[+] 状态码%d" % r .status_code + ' ' + "信息泄露URL为:" + u + ' ' + "页面长度为:" + str (len (r .content )),"red" )
8688 f2 = open ("output.txt" , "a" )
8789 f2 .write (u + '\n ' )
8890 f2 .close ()
91+ elif (r .status_code == 200 ):
92+ cprint ("[+] 状态码%d" % r .status_code + ' ' + "但无法获取信息 URL为:" + u + ' ' + "页面长度为:" + str (len (r .content )),"magenta" )
8993 else :
9094 cprint ("[-] 状态码%d" % r .status_code + ' ' + "无法访问URL为:" + u ,"yellow" )
9195 count = len (open ("output.txt" , 'r' ).readlines ())
0 commit comments