-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathcli.php
38 lines (35 loc) · 946 Bytes
/
cli.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
<?php
error_reporting(0);
if (isset($argv['1'])) {
$up = $argv['1'];
$isi = file_get_contents($up);
if ($isi) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api-nor.000webhostapp.com/api-jso.php');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "submit=Create&output=97, 110, 106, 105, 114");
$headers = array();
$headers[] = 'Content-Type: application/x-www-form-urlencoded';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
}
curl_close($ch);
// var_dump($result);
echo "Loading";
for ($i=0; $i < 4; $i++) {
echo ".";
sleep(1);
}
echo "\n";
echo $result;
}else{
echo "[x] File Tidak Ditemukan!";
}
}else{
echo 'Format : php cli.php "namafile.php"';
echo "\n* File berisi script yang telah di ubah ke dalam char";
}
?>