Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?PHP
- ini_set('max_execution_time', 1000);
- ini_set('memory_limit', '-1');
- require 's/pgbrowser.php';
- require 's/simple_html_dom.php';
- $b = new PGBrowser('simple-html-dom');
- $page = $b->get('http://forum.tastyspleen.net/quake/index.php?action=login');
- $form = $page->_forms[0];
- $username = "";
- $password = "";
- $start_links = array();
- $form->set('user', $username);
- $form->set('passwrd', $password);
- $page = $form->submit();
- $start = 0;
- for($i = 0; $i <= 210; $i += 15)
- {
- echo 'i: ' . $i;
- $l = 'http://forum.tastyspleen.net/quake/index.php?action=profile;u=1541;area=showposts;start=' . $i;
- array_push($start_links, $l);
- }
- $links = array();
- $links2 = array();
- for($i = 0; $i < count($start_links); $i++) {
- $page = $b->get($start_links[$i]);
- foreach($page->search('a') as $e) {
- if(strpos($e->href, '#msg')) {
- array_push($links, $e->href);
- }
- }
- }
- for($i = 0;$i < count($links); $i++)
- {
- $page2 = $b->get($links[$i]);
- foreach($page2->search('li.modify_button a') as $d) {
- $modify_button_link = $d->href;
- array_push($links2, $modify_button_link);
- }
- }
- $file = fopen('links.txt', 'w');
- for($i = 0; $i < count($links2);$i++)
- {
- fwrite($file, $links2[$i] . "\n");
- }
- for($i = 0;$i < count($links2); $i++)
- {
- $page = $b->get($links2[$i]);
- $form = $page->_forms[1];
- $form->set('message', '.');
- $page = $form->submit();
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment