#!/usr/bin/env php $notifier, "team" => $team, "url" => $url, "poc" => $poc, "reason" => $reason ]); $ch = curl_init("https://api.defacer.id/notify"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_HTTPHEADER, [ 'Content-Type: application/json' ]); $response = curl_exec($ch); $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); $response_json = json_decode($response, true); if (json_last_error() === JSON_ERROR_NONE) { $message = $response_json['message'] ?? 'No message found'; } else { $message = 'Invalid JSON response'; } echo "$url => $message\n"; } } print_banner(); if ($argc !== 2) { echo "\nUsage: php defacerid.php \n"; exit(1); } $file_path = $argv[1]; defacerid_bulk_submissions($file_path);