Posted by: blesafho | July 27, 2007

Flooding

ya, baru2 ini ada temenku yang mo nge-flood blog ku, mmmm…, ternyata susah juga ya mbuatnya. Kemaren udah ku coba2, ternyata ga berhasil, kayaknya mesti pake AJAX, wow ga ngerti kk, apaan tuh AJAX. Tapi sampe blog ini ditulis, akhirnya berhasil juga, walopun ga selalu berhasil, maksudnya komennya ga selalu masuk. Mungkin dari pembaca sekalian ada yang bisa membantu memperbaiki ato memberi source yang lebih baik.

file main.php

<html>
<head>
<?
$bb = $_GET['a'];
?>
<script>
function startTime()
{
var today=new Date()
var s=today.getSeconds()
document.getElementById(’txt’).innerHTML=s
if (s % 3 == 0) {
cek()
}
t=setTimeout(’startTime()’,500)
}
</script>
</head>


<body onload=”startTime()”>
<div id=”txt”></div>
<script>
function cek() {
var z = (<?echo ($bb);?&gt ;)
window.location=’http://localhost/flood.php?a=’ + z
}
</script>
</body>
</html>


nah file ini cm nge-redirect ke file flood yang nantinya nge-submit data ke blog, oke file selanjutnya flooding.php


<html>
<body>
<?$aa = $_GET['a'];?>
<form action=’http://blesafho.wordpress.com/wp-comments-post.php’ method=’post’ id=’commentform’ name=’commentform’>
<script>
var i = (<?echo ($aa + 1);?&gt ;)


document.write(”<input type=’text’ name=’author’ id=’author’ value=” size=’22′ tabindex=’1′ />”)
document.write(”<label for=’author’><small>Name (required)</small></label><br>”)
document.write(”<input type=’text’ name=’url’ id=’url’ value=’coba.com’ size=’22′ tabindex=’3′ />”)
document.write(”<label for=’email’><small>e-Maile-Mail (required - will not be published)</small></label><br>”)
document.write(”<input type=’text’ name=’email’ id=’email’ value=’blesafho@yahoo.com’ size=’22′ tabindex=’2′ />”)
document.write(”<label for=’url’><small>Website</small></label><br>”)
document.write(”<input type=’hidden’ name=’comment_post_ID’ value=’22′ />”)
document.write(”<textarea name=’comment’ id=’comment’ cols=’60′ rows=’10′ tabindex=’4′></textarea><br><br>”)
document.commentform.author.value=”coba” + i
document.commentform.comment.value=”bagus” + i
document.commentform.submit()

window.location=’http://localhost/main.php?a=’ + i
</script>
</form>
</body>
</html>


adakah yang bersedia membantu?

Responses

Ga ngerti AJAX? Si Nunu tukang bohong. Nunu kan master gitu :D.
[ master apaan? ]

Eh, jangan salah, Nunu emang ga ngerti AJAX..

Tapi kalo soal Hacking dan Jaringan, kk nunu tuh Mastah nya
[ wkkkk :D , Hack ma Jaringan apaan, ngerti aja engga' ]

Leave a response

Your response:

Categories