From 2cfd40cd3dc20ad21bff813a580ddf73446a8f2f Mon Sep 17 00:00:00 2001 From: Andrea Santaniello Date: Tue, 20 Sep 2022 02:13:09 +0200 Subject: [PATCH] Update README.md --- README.md | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 26b76f2..fe776d7 100644 --- a/README.md +++ b/README.md @@ -55,26 +55,26 @@ Example of my jail config: Naughtylist can be included inside HTML and PHP pages to act as a honeypot logger. -- Example: +Example: -` - + // Call the honeypot(name, protocol, port) method to log the incident. + honeypot("wordpress-login", "https", 443); + + //DONE! + ?> -` + ### Remote mode / HTTP API @@ -82,11 +82,11 @@ This script can act as a client and as server to store and recive reports from H If you have the script exposed on a webserver you can call it via HTTP and add reports, simply make a `POST` request with the following parameters: -- name _~ the service name_ -- protocol _~ the service protocol_ -- port _~ the service port_ -- ip _~ the offender IP_ -- key _~ your secret key set in config.php_ +- name ~ the service name +- protocol ~ the service protocol +- port ~ the service port +- ip ~ the offender IP +- key ~ your secret key set in config.php This API is also used when you want to use the script in remote database mode, where it will call via curl your remote server, make sure to set the same SECRET on both machines.