From fd36c9d87b59bea5ec7d00c37b97021da7487715 Mon Sep 17 00:00:00 2001 From: Fox <10927-fox@users.noreply.0xacab.org> Date: Wed, 6 Dec 2023 01:12:40 +0000 Subject: [PATCH] . --- tool/api_for_ismm_isat/README.md | 11 ++++++++- tool/api_for_ismm_isat/ismm_online.php | 34 ++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 tool/api_for_ismm_isat/ismm_online.php diff --git a/tool/api_for_ismm_isat/README.md b/tool/api_for_ismm_isat/README.md index c49f7da4d2..fb469ce676 100644 --- a/tool/api_for_ismm_isat/README.md +++ b/tool/api_for_ismm_isat/README.md @@ -10,8 +10,11 @@ ### 1a. Set up API for `Are links vulnerable to MITM attack?`(isMM) +Pick A or B. + +> Type A: download JSON files and use them locally 1. Copy [ismm.php](ismm.php) to your website directory.
- e.g. `/api/ismm.php` + e.g. `/api/ismm.php` (you can rename it) 2. Create `listdata` directory.
e.g. `/api/listdata/` 3. Download JSON files (*.json) from [/cloudflare_users/domains](../../cloudflare_users/domains) and save them to dir above.
@@ -20,6 +23,12 @@ 4. Open your API. It should say `OK`.
e.g. `http://localhost/api/ismm.php` +> Type B: Use KarmaAPI online service +1. Copy [ismm_online.php](ismm_online.php) to your website directory.
+ e.g. `/api/ismm_online.php` (you can rename it) +2. Open your API. It should say `OK`.
+ e.g. `http://localhost/api/ismm_online.php` + ### 1b. Set up API for `Will these links block Tor user?`(isAT) diff --git a/tool/api_for_ismm_isat/ismm_online.php b/tool/api_for_ismm_isat/ismm_online.php new file mode 100644 index 0000000000..637443c031 --- /dev/null +++ b/tool/api_for_ismm_isat/ismm_online.php @@ -0,0 +1,34 @@ +