404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.145.201.49: ~ $
<?php
if(isset($_GET["url"])){
    $handle = curl_init();
 
    $url = "https://www.memrise.com/course/126065/a1-german-2/1/";
    $url = "https://www.memrise.com/course/427841/german-studio-d-a1-vocabulary/3/";
    $url = $_GET["url"];
    $urlParts = explode("/",$url);
     $cachedAddress = "cached/". $urlParts[sizeof($urlParts)-3].$urlParts[sizeof($urlParts)-2].".html";
    // $pattern = `#<div class="text">(.*?)<\/div>#`;
    // $pattern = /text">((.|\n)*?)</;
    
    // Set the url
    curl_setopt($handle, CURLOPT_URL, $url);
    // Set the result output to be a string.
    curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);
     
    echo $output = curl_exec($handle);
     
    curl_close($handle);
    file_put_contents($cachedAddress,$output);
    echo "written";
    // echo $output;
    // preg_match_all($pattern, $output, $matches);
    // print_r($matches);
}

Filemanager

Name Type Size Permission Actions
cached Folder 2755
getUrlContent.php File 882 B 0755
memrise.cached.php File 1.19 KB 0755
memrise.class.php File 602 B 0755