-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathgenerator.php
42 lines (35 loc) · 1.19 KB
/
generator.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
<?php
$banner = "\e[36;1m
# ######
# #
###### # # ##########
# # # #
####### ##
########## # ##
# ##
[#] HMA License Key Generator [#]
Coded by : Revan AR
Team : IndoSec
Github : https//github.com/revan-ar/\n\n\e[0;1m";
sleep(3);
echo $banner;
sleep(1);
echo "masukan license awal : ";
$lic = trim(fgets(STDIN));
sleep(1);
echo "masukan jumlah generate : ";
$jum = trim(fgets(STDIN));
for ($i=1; $i <= $jum; $i++) {
$h = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
$a = "1234567890";
$r = $h.$a;
$go = str_shuffle($r);
$rand = substr($go, rand(0,20), 6);
$file = "list_key.txt";
//menggabungkan license awal dengan hasil generate
$res = $lic."-".$rand."\n";
touch($file);
$o = fopen($file, 'a');
fwrite($o, $res);
fclose($o);
}