Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ob_implicit_flush();
- set_time_limit(0);
- ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>[PROXY GETTER]</title>
- <style type="text/css">
- html {
- background: #f1f1f1;
- }
- body {
- background: #fff;
- margin: 22px auto;
- width: 764px;
- padding: 22px;
- text-align: center;
- font-family: Georgia, "Times New Roman", Times, serif;
- color: #464646;
- }
- h2 {
- font-size: 3em;
- font-weight: normal;
- }
- </style>
- </head>
- <body>
- <pre>
- _____ _____ _ _____ _____ _____ _____ _____ _____
- ___| | __ |_| _ |_ _|___ ___|_ _| __| _ | |
- |_ -| --| -| | __| | | |- _|___| | | | __| | | | |
- |___|_____|__|__|_|__| |_| |___| |_| |_____|__|__|_|_|_|
- |s C R i P T z - T E A M . i N F O|
- [PROXY GETTER]
- </pre>
- <form action="" method="POST">
- Max. pages (1-5): <input type="text" name="pages" value="5" size="1" maxlength="1"> -
- Timeout: <input type="text" name="timeout" value="1" size="1" maxlength="1"><br />
- Show all results: <select name="show"><option value="no">No</option><option value="yes">Yes</option></select><br />
- Stop processing if there's <input type="text" name="stop" value="0" size="2" maxlength="2"> positive matches<br /><br />
- <input type="submit" name="get" value="Give me proxys!">
- </form>
- <?php
- if(isset($_POST['get']))
- {
- echo '<div class="result">';
- $proxyList = array();
- $pages = (!is_numeric($_POST['pages']) or $_POST['pages'] < 1 or $_POST['pages'] > 5) ? 5 : abs($_POST['pages']);
- $timeOut = (!is_numeric($_POST['timeout'])) ? 5 : abs($_POST['timeout']);
- $show = ($_POST['show'] != 'no' && $_POST['show'] != 'yes') ? 'yes' : $_POST['show'];
- $stop = ($_POST['stop'] == 0 or !is_numeric($_POST['stop']) or $_POST['stop'] > 50) ? 'all' : abs($_POST['stop']);
- $counter = 0;
- $quit = false;
- #This section of the code
- #is for proxys.com.ar
- for($i = 0; $i <= $pages; $i++)
- {
- if($quit)
- {
- break;
- }else{
- $web = ($i == 0) ? 'http://www.proxys.com.ar/' : 'http://www.proxys.com.ar/index.php?act=list&port=&type=&country=&page='.$i;
- $webContent = @file_get_contents($web);
- $_pattern1 = "/<tr class=\"cells\" onmouseover=\"this\.className='cells2'\" onmouseout=\"this\.className='cells'\">(.*?)<\/tr>/is";
- $pregMatch = @preg_match_all($_pattern1, $webContent, $proxyData, PREG_SET_ORDER);
- for($x = 0; $x<count($proxyData); $x++)
- {
- $_pattern2 = "/<td>(.*)<\/td>/i";
- $pregMatch = @preg_match_all($_pattern2, $proxyData[$x][1], $proxyConnect, PREG_SET_ORDER);
- $proxyIp = $proxyConnect[0][1];
- $proxyPort = $proxyConnect[1][1];
- $proxyCountry = $proxyConnect[3][1];
- $proxyTarget = $proxyIp.':'.$proxyPort;
- echo '<br /><font color="green">'.$proxyTarget.' > '.$proxyCountry.'</font><br />';
- }
- }
- }
- //echo count($proxyList).' matches.';
- echo '</div>';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment