From 8ccb3d4e63192ad3226a08833d8fa5e5062b99b4 Mon Sep 17 00:00:00 2001 From: Sebastian Titz Date: Wed, 17 Nov 2021 13:03:34 +0100 Subject: [PATCH 1/2] 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 ' From 25b3afc9a9dcdf232d76f9f91655ac93167c9a0d Mon Sep 17 00:00:00 2001 From: troy Date: Fri, 19 Nov 2021 14:39:48 +0100 Subject: [PATCH 2/2] tippfehler --- htaccess | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htaccess b/htaccess index 13a4910..393140e 100644 --- a/htaccess +++ b/htaccess @@ -15,6 +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] + 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