Wordpresscan/main.py

42 lines
1.5 KiB
Python
Raw Normal View History

2017-02-18 22:31:11 +00:00
#!/usr/bin/python
# -*- coding: utf-8 -*-
import requests
import argparse
from engine.core import *
from engine.load_plugins import *
from engine.wordpress import *
from engine.scan import *
2017-02-18 22:31:11 +00:00
if __name__ == "__main__":
print "_______________________________________________________________ "
print " _ _ _ "
print "| | | | | | "
print "| | | | ___ _ __ __| |_ __ _ __ ___ ___ ___ ___ __ _ _ __ "
print "| |/\| |/ _ \| '__/ _` | '_ \| '__/ _ \/ __/ __|/ __/ _` | '_ \ "
print "\ /\ / (_) | | | (_| | |_) | | | __/\__ \__ \ (_| (_| | | | |"
print " \/ \/ \___/|_| \__,_| .__/|_| \___||___/___/\___\__,_|_| |_|"
print " | | "
print " |_| "
print " Wordpress scanner based on wpscan work - @pentest_swissky "
print "_______________________________________________________________ "
parser = argparse.ArgumentParser()
parser.add_argument('-u', action ='store', dest='url', help="Wordpress URL")
parser.add_argument('--update', action ='store_const', const='update', dest='update', help="Update the database")
results = parser.parse_args()
2017-02-18 22:31:11 +00:00
# Check wordpress url
if results.url != None:
# Update scripts
if results.update != None:
database_update()
# Build a new wordpress object
wp = Wordpress(results.url)
Scan_Engine(wp)
2017-02-26 21:08:03 +00:00
wp.to_string()
2017-02-18 22:31:11 +00:00
else:
parser.print_help()