
Shadow Vault – Add shadow users with SHA-512 hash, auto aging match, multiple write fallbacks.
Shadow Vault is a lightweight PHP web tool designed for system administrators to securely add new user credentials to shadow files on shared hosting environments. It automatically detects existing shadow aging format, uses SHA-512 password hashing, supports multiple write fallback methods, and even provides one-click auto-login to cPanel webmail (port 2096).
⚠️ Disclaimer: This tool is intended for legitimate server management only. Unauthorized access or use on systems you do not own is illegal. Use at your own risk.
$6$)lastchange:min:max:warn:inactive:expire:reserved formatfile_put_contents, fopen/flock, temp+rename, system, exec, shell_exec, proc_open, popen, passthru, copy, stream_copy_to_stream, and more/home/*/etc/*/shadow – no manual configuration/etc/virtual/*/passwd for mail servers that require it; non‑critical if login already workshttps://domain:2096/login/ (cPanel webmail standard) using POST with user/pass fieldsexecCommandget_current_user()./home/username/etc/*/shadow for all existing shadow files (one per domain). If none exist, it creates a new shadow file under /home/username/etc/{domain}/shadow.john) and a password.19400:0:99999:7:::).localpart:hash:aging_suffix to every shadow file found (or the newly created one)./etc/virtual/{domain}/passwd – failure does not affect login if the system uses shadow authentication.https://domain:2096)localpart@domain)shadow.php file to any directory inside your hosting account (e.g., public_html/shadow/)..htaccess with Basic Authentication or IP whitelisting./randomhash/).random_bytes polyfill)shadow directory (/home/username/etc/)Input:
example.com (auto‑detected)supportMyStr0ng!Output table:
| Login URL | Username | Password | Action |
|---|---|---|---|
| https://example.com:2096 SSL | [email protected] | MyStr0ng! | copy / auto-login |
Entry added to shadow file:
support:$6$randomSalt$hashedPassword:19400:0:99999:7:::
shadow-vault/
└── shadow.php # Main script (upload to your server)
No shadow files found. Check directory structure.Failed to write to shadow (all methods failed).Please fill username, password, and ensure domain is available.The script generates a temporary HTML form that submits a POST request to:
https://domain:2096/login/user (full email address) and pass (plain password)This matches the standard cPanel webmail login form. If your webmail uses different endpoints or field names, you can modify the JavaScript autoLogin() function accordingly.
MIT License – free to use, modify, and distribute. The author is not responsible for any misuse.
Feel free to open issues or pull requests for improvements. Keep the tool simple and educational.
This tool is intended for authorized server administrators only.
By using this software, you confirm that you have explicit permission to modify shadow files on the server where it is executed.
- Unauthorized access or use on systems you do not own is illegal.
- The author assumes no liability for any damage, data loss, or legal consequences resulting from misuse.
- Use at your own risk. Always test in a safe environment first.
- If you are not the server owner or an authorized admin, stop now and delete this script immediately.
More Disclaimer You can see the disclaimer on the cover of Jenderal92. You can check it HERE !!!