From ea8a6bffbe86e49b9d742f3730fb114424a561a1 Mon Sep 17 00:00:00 2001 From: Swissky Date: Sun, 11 Jun 2017 17:11:41 +0200 Subject: [PATCH] BUGFIX - Thank you plugin now displayed last --- engine/brute.py | 3 +-- engine/load_plugins.py | 7 +++---- fuzz/wordlist.lst | 3 ++- plugins/{thank-you.py => _thank-you.py} | 6 +++--- 4 files changed, 9 insertions(+), 10 deletions(-) rename plugins/{thank-you.py => _thank-you.py} (76%) diff --git a/engine/brute.py b/engine/brute.py index 75c94ae..c083cd8 100644 --- a/engine/brute.py +++ b/engine/brute.py @@ -8,7 +8,6 @@ import urllib from core import * from wordpress import * -from lxml import etree from multiprocessing import Process, Pool class Brute_Engine: @@ -30,7 +29,7 @@ class Brute_Engine: print notice("Bruteforcing " + brute) print info("User found "+ brute) self.bruteforcing_pass(wordpress, brute) - + # Exit the bruteforce exit() diff --git a/engine/load_plugins.py b/engine/load_plugins.py index 2d5ccf6..e36749a 100644 --- a/engine/load_plugins.py +++ b/engine/load_plugins.py @@ -13,7 +13,6 @@ class Load_Plugins: def __init__(self, wordpress): available_plugins = os.listdir(self.plugin_folder) - for plugins in available_plugins: if not ".pyc" in plugins and not "__init__" in plugins: @@ -21,11 +20,11 @@ class Load_Plugins: name = plugins.replace('.py','') f, file, desc = imp.find_module('plugins', ['.']) pkg = imp.load_module('plugins', f, file, desc) - + # Find and load the plugin f, file, desc = imp.find_module(name, pkg.__path__) loaded = imp.load_module('plugins.' + name, f, file, desc) - + # Run the __init__ print notice('Plugin %s loaded.' % loaded.name) - loaded.__init__(wordpress) \ No newline at end of file + loaded.__init__(wordpress) diff --git a/fuzz/wordlist.lst b/fuzz/wordlist.lst index a073002..d5d12cc 100755 --- a/fuzz/wordlist.lst +++ b/fuzz/wordlist.lst @@ -2,6 +2,7 @@ 12345678 1234 pussy +password 12345 root toor @@ -13,6 +14,7 @@ letmein admin passw0rd baseball +demo letmein! master michael @@ -502,4 +504,3 @@ phantom billy 6666 albert -password diff --git a/plugins/thank-you.py b/plugins/_thank-you.py similarity index 76% rename from plugins/thank-you.py rename to plugins/_thank-you.py index ef9158c..a24da62 100644 --- a/plugins/thank-you.py +++ b/plugins/_thank-you.py @@ -2,14 +2,14 @@ # -*- coding: utf-8 -*- # name : Example Title -# description : Example description +# description : Example description # author : Wordpresscan Team import requests -name = "Example-Plugin" +name = "Thank You" def __init__(wordpress): # INSERT CODE HERE! print "Thank you for using this software :)" - return \ No newline at end of file + return