This repository has been archived by the owner on Aug 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
69 lines (67 loc) · 1.88 KB
/
index.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
57
58
59
60
61
62
63
64
65
66
67
68
69
<html>
<head>
<style>
body {
font-family:Consolas;
color:#20D2AA;
background-color:black;
font-size:11px;
}
body a {
font-family:Consolas;
color:#20D2AA;
background-color:black;
font-size:11px;
}
</style>
</head>
<body>
<?php
ini_set('max_execution_time', 300);
$p[0]=rand(1,904625697);
$p[1]=rand(0,166532776);
$p[2]=rand(0,746648320);
$p[3]=rand(0,380374280);
$p[4]=rand(0,100293470);
$p[5]=rand(0,930272690);
$p[6]=rand(0,489102837);
$p[7]=rand(0,043110636);
$p[8]=rand(0,675);
foreach($p as $key=>$value) if($key != 8) $p[$key] = str_pad($p[$key], 9,"0",STR_PAD_LEFT);
$final = null;
foreach($p as $key=>$value) $final .= $p[$key];
$final = ltrim($final,"0");
echo "<center>Viendo página directory.io/<a href='http://directory.io/$final'>$final</a></center>";
echo "<br>\n";
$json = file_get_contents('http://directory.io/'.$final);
//$json = file_get_contents('http://directory.io/1');
preg_match_all('|<a href="https://blockchain.info/address/(.+)">|U', $json, $match,PREG_PATTERN_ORDER);
$match = $match[1];
$direcciones = array();
foreach($match as $key=>$value) if($key % 2 == 0) array_push($direcciones, $value);
//print_r( ($direcciones));
echo "<table><tr>";
$i=0;
foreach($direcciones as $key=>$value) {
$json = file_get_contents('https://blockchain.info/es/rawaddr/'.$value);
$obj = json_decode($json);
if($i==4) { $i = 0; echo "</tr><tr>"; }
if($obj->final_balance>0 || $obj->total_received>0)
{
echo "<td style='color:yellow'> $obj->final_balance BTC <a href='https://blockchain.info/address/$value' style='color:yellow'>$value</a></td>\n";
$file = 'data.txt';
$current = file_get_contents($file);
$current .= "Page $final $value \n";
file_put_contents($file, $current);
}else{
echo "<td>$obj->final_balance BTC <a href='https://blockchain.info/address/$value'><i>$value</i></a></td>\n";
}
$i++;
}
echo "</tr></table>";
?>
<script>
location.reload();
</script>
</body>
</html>