From 8ccb3d4e63192ad3226a08833d8fa5e5062b99b4 Mon Sep 17 00:00:00 2001 From: Sebastian Titz Date: Wed, 17 Nov 2021 13:03:34 +0100 Subject: [PATCH] restapi und gate als honeypot --- htaccess | 2 ++ index.php | 3 +++ 2 files changed, 5 insertions(+) diff --git a/htaccess b/htaccess index 3267782..13a4910 100644 --- a/htaccess +++ b/htaccess @@ -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] \ No newline at end of file diff --git a/index.php b/index.php index 58dfaf9..41eb478 100644 --- a/index.php +++ b/index.php @@ -22,6 +22,9 @@ if (isset ( $_GET ['h'] )) { '; } + if ($_GET ['h'] == 'api') { + echo '{"return":"success","version":"v1","_":' . time () . '}'; + } if ($_GET ['h'] == 'wp-login') { echo '