Credential Dumping
File-based Credentials Dumping via PHP Injection
This technique involves modifying any authentication-handling
PHP file to log user credentials to a file on the server.
Add the next line after
<?php
:
The attacker can continuously check the
creds.txt
file for new data using a command like this:
Memory-based Credentials Dumping via PHP Injection
This method involves injecting PHP code into an authentication PHP script to capture login credentials and write them to a temporary memory file (/dev/shm
).
The following code to capture the
$_REQUEST
data (which includes the$_POST
data from the login form) and write it to a file:
Just
cat
the file:
Last updated