Rabu, 24 Juli 2013

PHP Indonesia - Facebook: Gan, mohon bntuannya, kok in g bsa msuk keDatabase...

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
Gan, mohon bntuannya, kok in g bsa msuk keDatabase...
Jul 25th 2013, 03:35, by Simbah Hamka

Simbah Hamka 3:35am Jul 25
Gan, mohon bntuannya, kok in g bsa msuk keDatabase Oracle y
mohon infox y, mkasih
<?php

$grep1 = "sudo grep 'Failed password' /var/log/auth.log | grep sshd";
$exec1 = shell_exec("$grep1 2>&1");
$grep2 = "sudo grep 'Failed password' /var/log/auth.log | grep sshd -c";
$exec2 = shell_exec("$grep2 2>&1");
$Failed = $exec1;

$rows = $exec2;

$userku = "abcdefghijk";
echo "<h3>Jumlah kegagalan login = ".$rows."<br><br></h3>";
$alert = explode("from",$exec1);
for($i=1; $i<$rows; $i++){
$word = explode("for",$alert[$i]);
//echo $word[1]."<br>";
$user_dihack = $word[1];

if ($userku != $user_dihack){

$grep3="sudo grep -c Failed /var/log/auth.log";
$exec3 = shell_exec("$grep2 2>&1");
$jumlah_user_diserang = $exec3;

echo "user $user_dihack diserang sebanyak $jumlah_user_diserang kali<br>";
if ($jumlah_user_diserang > 3){

$perintah = "sudo chsh $word[1] -s /bin/sh";
shell_exec($perintah);

$user = $word[1];
$user1 = explode(" ",$user);
$user2 = $user1[1];

$grep1 = "sudo grep $user /etc/passwd | grep @";
$exec1 = shell_exec("$grep1 2>&1");

//echo "<h3>Total Email Record = $exec1 <br>";

$a = explode(":",$exec1);
$satu = $a[4];
$email = explode(",",$satu);
echo "Email = $email[4]<br>";


}
$to = $email[4];
//echo "to = $email[4]<br>";
$subject = "Test mail";
$message = "Akun anda telah di Hack, tolong membuka link file:http://198.199.93.181/change_pass.php?user=$user2 untuk mengganti Password yang baru";
$from = "Admin Cakra";
$headers = "From:" . $from;
mail($to,$subject,$message,$headers);

include("empty_log.php");
$userku = $user_dihack;
}

//Koneksi Database Oracle

$username="cakra";
$password="simbah";
$database="http://198.199.93.181/XE";
$koneksi=oci_connect($username, $password, $database)
if(!$koneksi){
echo("Koneksi ke Database Gagal")
}

$insert=oci_parse($koneksi,"INSERT INTO JAIL(USER_SSH, EMAIL_USER) VALUES("$user_dihack","$email[4]"));
oci_execute($insert);
}

?>


mkasih bnyak ya

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar