Guest User

Untitled

a guest
Jan 28th, 2014
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.42 KB | None | 0 0
  1. <?PHP
  2.  
  3. ini_set('max_execution_time', 1000);
  4. ini_set('memory_limit', '-1');
  5. require 's/pgbrowser.php';
  6. require 's/simple_html_dom.php';
  7.  
  8.  
  9. $b = new PGBrowser('simple-html-dom');
  10. $page = $b->get('http://forum.tastyspleen.net/quake/index.php?action=login');
  11. $form = $page->_forms[0];
  12.  
  13.  
  14. $username = "";
  15. $password = "";
  16.  
  17.  
  18. $start_links = array();
  19. $form->set('user', $username);
  20. $form->set('passwrd', $password);
  21. $page = $form->submit();
  22.  
  23.  
  24. $start = 0;
  25. for($i = 0; $i <= 210; $i += 15)
  26. {
  27.     echo 'i: ' . $i;
  28.     $l = 'http://forum.tastyspleen.net/quake/index.php?action=profile;u=1541;area=showposts;start=' . $i;
  29.     array_push($start_links, $l);
  30. }
  31.  
  32.  
  33. $links = array();
  34. $links2 = array();
  35.  
  36. for($i = 0; $i < count($start_links); $i++) {
  37.     $page = $b->get($start_links[$i]);
  38.     foreach($page->search('a') as $e) {
  39.  
  40.         if(strpos($e->href, '#msg')) {
  41.  
  42.             array_push($links, $e->href);
  43.  
  44.             }
  45.  
  46.     }
  47. }
  48.  
  49.  
  50. for($i = 0;$i < count($links); $i++)
  51. {
  52.    
  53.     $page2 = $b->get($links[$i]);
  54.     foreach($page2->search('li.modify_button a') as $d) {
  55.  
  56.             $modify_button_link = $d->href;
  57.             array_push($links2, $modify_button_link);
  58.  
  59.     }
  60. }
  61.  
  62. $file = fopen('links.txt', 'w');
  63. for($i = 0; $i < count($links2);$i++)
  64. {
  65.     fwrite($file, $links2[$i] . "\n");
  66. }
  67.  
  68.  
  69.  
  70. for($i = 0;$i < count($links2); $i++)
  71. {
  72.     $page = $b->get($links2[$i]);
  73.     $form = $page->_forms[1];
  74.     $form->set('message', '.');
  75.     $page = $form->submit();
  76.  
  77.    
  78. }
  79.  
  80.  
  81.  
  82.  
  83. ?>
Advertisement
Add Comment
Please, Sign In to add comment