1 #-*-coding:utf-8-*-2 #the operating environment is python3.0 screw3 4 ImportRequests5Url=input ("Enter your URL:")6Script=int (Input ("Select Script 1.asp 2.php 3.jsp 4.sapx:"))7true_script=""8Ture_url=""9 ifScript==1:Tentrue_script="ASP.txt" One elifscript==2: Atrue_script="PHP.txt" - elifScript==3: -true_script="JSP.txt" the elifScript==4: -true_script="ASPX.txt" - Else : - Print("input Error! ") + defBaopo (): - Print(U"The blast began to wait patiently:") +Str=Open (True_script). Read () AStr_list=str.split ('\ n') at forIinchstr_list: - #print (URL) -url_true=url+I - - Try: -A=Requests.get (url_true). Status_code in ifa>=200 anda<=300: - Print(url_true) to except: + Pass - Print(U"The blast is over! ") the *
This script does not have a progress bar and may wait for a slower process.
You can use the dictionary of the Imperial Sword directly! You can also add your own dictionary!
Python Batch blasting background directory script