restapi und gate als honeypot

This commit is contained in:
Sebastian Titz 2021-11-17 13:03:34 +01:00
parent b3df7aa993
commit 8ccb3d4e63
2 changed files with 5 additions and 0 deletions

View File

@ -15,4 +15,6 @@ Options +FollowSymLinks
RewriteRule ^wp-admin.*$ /wp-login/index.php?h=wp-login [L]
RewriteRule ^xmlrpc.php$ /wp-login/index.php?h=xmlrpc [L]
RewriteRule ^wp-content/.*& /wp-login/index.php?h=wp-content [L]
RewriteRule ^restapi.php& /wp-login/index.php?h=api [L]
RewriteRule ^gate.php& /wp-login/index.php?h=api [L]
</IfModule>

View File

@ -22,6 +22,9 @@ if (isset ( $_GET ['h'] )) {
</methodResponse>
';
}
if ($_GET ['h'] == 'api') {
echo '{"return":"success","version":"v1","_":' . time () . '}';
}
if ($_GET ['h'] == 'wp-login') {
echo '<!DOCTYPE html>
<html lang="de-DE">