本文整理匯總了Python中tester.Tester.wp_vulns方法的典型用法代碼示例。如果您正苦於以下問題:Python Tester.wp_vulns方法的具體用法?Python Tester.wp_vulns怎麽用?Python Tester.wp_vulns使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類tester.Tester
的用法示例。
在下文中一共展示了Tester.wp_vulns方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: code
# 需要導入模塊: from tester import Tester [as 別名]
# 或者: from tester.Tester import wp_vulns [as 別名]
# tes = fp.check_if_exist("http://www.123algeriasport.com/wp-content/plugins/social-discussions/")
print "[!] CMS installed is : " + t
if t == "wordpress":
print "[x] Searching for plugins or themes in the code (passive search): \n"
ic.get_info_passive(url, t)
print "[x] Fingerprinting using readme.html \n"
print "[!] Wordpress Version is : " + str(fp.wp_fp_rm(url)) + "\n"
print "[x] Fingerprinting Using advanced fingerprinting \n"
print "[!] Wordpress Version is :" + str(fp.wp_fp(url)) + "\n"
print "[x] Searching for plugins and Themes using agressive mode: \n"
ic.get_info_aggressive(url, "top", "plugins")
print "\n"
ic.get_info_aggressive(url, "top", "themes")
print "\n"
if fp.wp_fp(url) == "None":
ts.wp_vulns(fp.wp_fp_rm(url))
else:
ts.wp_vulns(str(fp.wp_fp(url)))
print "\n"
print "[x] Scanning for plugins Vulns :\n"
ts.wp_plugins_vulns(url)
print "\n"
print "[x] Scanning for Themes Vulns :\n"
ts.wp_theme_vulns(url)
elif o in ("-t", "--type"):
type = u
if type == "wordpress":
print "[x] Searching for plugins or themes in the code (passive search): \n"
ic.get_info_passive(url, type)
print "[x] Fingerprinting using readme.html \n"
readmev = fp.wp_fp_rm(url)
示例2: code
# 需要導入模塊: from tester import Tester [as 別名]
# 或者: from tester.Tester import wp_vulns [as 別名]
t = fp.detect_cms(url)
print "[!] CMS installed is : "+t
if (t == "wordpress"):
print "[x] Searching for plugins or themes in the code (passive search): \n"
ic.get_info_passive(url,t)
print "[x] Fingerprinting using readme.html \n"
print "[!] Wordpress Version is : "+fp.wp_fp_rm(url)+"\n"
print "[x] Fingerprinting Using advanced fingerprinting \n"
print "[!] Wordpress Version is :"+str(fp.wp_fp(url))+"\n"
print "[x] Searching for plugins and Themes using agressive mode: \n"
ic.get_info_aggressive(url,"top","plugins")
print "\n"
ic.get_info_aggressive(url,"top","themes")
print "\n"
print "[x] Scanning for core Vulns : \n"
ts.wp_vulns(fp.wp_fp(url))
print "\n"
print "[x] Scanning for plugins Vulns :\n"
ts.wp_plugins_vulns(url)
print "\n"
print "[x] Scanning for Themes Vulns :\n"
ts.wp_theme_vulns(url)
elif o in ("-t","--type"):
type = u
if (type == "wordpress"):
print "[x] Searching for plugins or themes in the code (passive search): \n"
ic.get_info_passive(url,type)
print "[x] Fingerprinting using readme.html \n"
print "[!] Wordpress Version is : "+fp.wp_fp_rm(url)+"\n"
print "[x] Fingerprinting Using advanced fingerprinting \n"
print "[!] Wordpress Version is :"+fp.wp_fp(url)+"\n"