![]() |
|
[php]very simple dictionary attack - Printable Version +- HN-Community (https://hacker-newbie.org) +-- Forum: Miscellaneous (https://hacker-newbie.org/forum-86.html) +--- Forum: Coding/Programing (https://hacker-newbie.org/forum-19.html) +---- Forum: Web Programing (https://hacker-newbie.org/forum-38.html) +---- Thread: [php]very simple dictionary attack (/thread-16048.html) |
[php]very simple dictionary attack - RieqyNS13 - 01-01-2013 langsung aja ke tutornya gan,,tutor ini untuk yg belum tw aja, bgi yg udah dewa php silahkan angkat kaki dri thread ini dulu ane pernah bikin tpi wordlistnya ane truh di database mysql(linknya gan), skarang wordlisnya ane coba taruh di file text Ane buat 2 versi gan , via browser dan console. klo console kodenya lebih sedikit 1. yg via browser gan PHP Code: <?php
/*Coded by RieqyNS13
devilzc0de.org*/
error_reporting(0);
set_time_limit(0);
if(isset($_POST['btnSubmit'])){
if(empty($_POST['txHash'])){
$hash = $_POST['txHash'];
$string = $_POST['txString'];
}else{
$string = null;
$hash = trim($_POST['txHash']);
$file = "hash.lst";
$fopen = fopen($file, "w");
fwrite($fopen, $hash);
fclose($fopen);
$str = array_unique(str_replace(array("\n", "\r", "\r\n"), "", file("wordlist_hash.lst")));
$str2 = array_unique(str_replace(array("\n", "\r", "\r\n"), "", file($file)));
foreach($str as $key){
foreach($str2 as $key2){
if($key2==md5($key)){
$string.="[MD5]".$key2.":".$key."\n";
}
if($key2==sha1($key)){
$string.="[SHA1]".$key2.":".$key."\n";
}
}
}
}
}else{
$hash = null;
$string = null;
}
?>
<html>
<head>
<title>Dictionary Attack</title>
<style type="text/css">
body, button{
background:#000;
color:#0F0;
font-family:"Courier New";
}
legend, fieldset{
border:dashed 1px #0F0;
}
#menu1{
position:absolute;
left:0px;
top:30px;
}
#menu2{
position:absolute;
right:0px;
top:30px;
}
button{
border:dashed 1px;
bottom:50px;
}
button:hover{
opacity:0.7;
}
textarea{
background:url("../images/DevilzC0de.png") no-repeat center;
border:solid 1px #0F0;
color:#0F0;
font-family:"Courier New";
}
</style>
</head>
<body>
<center>
<form method=POST action="<?php $_SERVER['PHP_SELF']; ?>">
<fieldset id="menu1">
<legend>Hash</legend>
<textarea name="txHash" rows="30" cols="50"><?php echo $hash; ?></textarea>
</fieldset>
<button name="btnSubmit" type="submit">Submit</button>
<fieldset id="menu2">
<legend>String</legend>
<textarea name="txString" id="tx" rows="30" cols="50" readonly><?php echo $string; ?></textarea>
</fieldset>
</form>
</center>
</body>
</html>
[via browser pic] ![]() kelemahan klo lewat browser yaitu kompi kdang2 lemot dan prosesnya yg lama gan -_- soalnya konsep yg ane buat ini ngescan seluruh hash,,klo udah selesai semua baru ditampilin di kotak "string" nya 2. Yg kedua via console gan,,ini yg jdi favorit ane klo lewat console kode nya jdi lebih sedikit gan,,(ya iyalah,,wong kagak ada kode css,html,ama parameter2 kaya $_POST) PHP Code: <?php
/*Coded by RieqyNS13
devilzc0de.org*/
error_reporting(0);
set_time_limit(0);
$file = "hash.lst";
$str = array_unique(str_replace(array("\n", "\r", "\r\n"), "", file("wordlist_hash.lst")));
$str2 = array_unique(str_replace(array("\n", "\r", "\r\n"), "", file($file)));
foreach($str as $key){
foreach($str2 as $key2){
if($key2==md5($key)){
echo "[MD5]".$key2.":".$key."\n";
}
if($key2==sha1($key)){
echo "[SHA1]".$key2.":".$key."\n";
}
}
}
?>Code: php sempak.php[via console pic] ![]() ini cumah contoh kecilnya gan,,mudah2an scriptnya bisa dipelajari yg belum bisa trus dikembangkan sampai menjadi advanced tool ![]() thanks to HN, DC, and me
RE: [php]very simple dictionary attack - Syndrom2211 - 01-01-2013 Izin pelajari dulu bro.. lumayan nih buat bekal RE: [php]very simple dictionary attack - RizkyHNc - 01-01-2013 Ikut menyimak om
RE: [php]very simple dictionary attack - w4rl0ck404 - 01-01-2013 berarti wordlistnya harus banyk dnk?
RE: [php]very simple dictionary attack - Jheny - 01-02-2013 bronumpang sedot ya bro nih cendoool di tunggu ya bro ilmu baru lagi yang bisa di sedot nice |