403Webshell
Server IP : 202.61.199.114  /  Your IP : 216.73.217.139
Web Server : nginx/1.22.1
System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
User : web20 ( 1018)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/clients/client2/web21/web/api/v1/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/clients/client2/web21/web/api/v1/blacklist.php
<?php
/**
 * DNSBL-/Spam-Blacklist-Prüfung → GET /api/v1/blacklist.php?ip=1.2.3.4
 * Alternativ ?domain=example.com (primäre A-IP wird geprüft).
 *
 * @package SafeMyIdent\Api
 */

declare(strict_types=1);

require __DIR__ . '/../lib/boot2.php';
require_once __DIR__ . '/../lib/dnsbl.php';

if (!smi_module_on('blacklist')) {
    smi_json_error('Blacklist-Modul ist deaktiviert.', 403);
}

$ip = trim((string) ($_GET['ip'] ?? ''));
if ($ip === '' && !empty($_GET['domain'])) {
    $domain = smi_valid_domain((string) $_GET['domain']);
    if ($domain !== null) {
        $ips = smi_resolve_public_ips($domain);
        $ip  = $ips['ipv4'][0] ?? ($ips['all'][0] ?? '');
    }
}
if ($ip === '' || smi_ip_version($ip) === 0) {
    smi_json_error('Bitte eine gültige IP angeben.', 422);
}
if (!smi_ip_is_public($ip)) {
    smi_json_error('Private/reservierte IPs werden nicht geprüft.', 422);
}

$result = smi_dnsbl_check($ip);
smi_json_ok($result, $result['cached'] ?? false);

Youez - 2016 - github.com/yon3zu
LinuXploit