-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathsolchecker.php
57 lines (42 loc) · 2.44 KB
/
solchecker.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
$banner = "\e[36;1m
# ######
# #
###### # # ##########
# # # #
####### ##
########## # ##
# ##
[#] Solana Token Checker [#]
Author : Revan AR
Team : IndoSec
Github : https//github.com/revan-ar/\n\n\e[00m";
sleep(2);
echo $banner;
sleep(2);
$file = file_get_contents("address.txt");
$explode = explode("\n", $file);
foreach($explode as $address){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.mainnet-beta.solana.com");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"method":"getTokenAccountsByOwner","jsonrpc":"2.0","params":["'.$address.'",{"programId":"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"},{"encoding":"jsonParsed","commitment":"processed"}],"id":"35f0036a-3801-4485-b573-2bf29a7c77d2"}');
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0");
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
"Referer: https://explorer.solana.com/address/".$address."/tokens",
"Content-Type: application/json",
"Origin: https://explorer.solana.com",
"Accept: */*"
));
$exe = curl_exec($ch);
$dec = json_decode($exe);
echo "\e[36;1m[+] Token for Address: ".$address." [+]\n\e[00m";
sleep(1);
foreach($dec->result->value as $data){
$balance = ($data->account->data->parsed->info->tokenAmount->uiAmountString != 0) ? "\e[92m".$data->account->data->parsed->info->tokenAmount->uiAmountString." \e[00m" : $data->account->data->parsed->info->tokenAmount->uiAmountString;
echo "Mint: ".$data->account->data->parsed->info->mint."|Balance: ".$balance."\n";
usleep(50000);
}
echo "\n";
}