403Webshell
Server IP : 172.67.178.83  /  Your IP : 216.73.217.141
Web Server : Apache
System : Linux hosting01.arsenalhost.com 4.18.0-425.13.1.lve.el8.x86_64 #1 SMP Mon Feb 27 15:23:24 EST 2023 x86_64
User : corbizre ( 1013)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/corbizre/findnextproperty.com/console/controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/corbizre/findnextproperty.com/console/controllers/ProxiController.php
<?php
namespace console\controllers;

use console\models\Urltable;
use console\parsers\Coldwellbanker;
use console\parsers\Hudhomestore;
use console\parsers\Main;
use console\parsers\Mobilehomes;
use Yii;
use console\models\AngryCurl;
use console\parsers\Movoto;
use console\parsers\Realestatebook;

class ProxiController extends \yii\console\Controller
{
    function init()
    {
        if (!defined('DS')) define('DS',DIRECTORY_SEPARATOR);
        ini_set('display_errors', 'On');
        ini_set('max_execution_time', 6000);
        ini_set('memory_limit', '128M');

}

    public function actionGet()
    {
        echo "#FindNewProxi..",PHP_EOL;
        $listProxi = file_get_contents('http://randgate.wecandevelopit.com/1000/10');
        $arrListProxi = json_decode($listProxi);

        foreach ($arrListProxi as $proxi) {
            $arrProxi[]=$proxi->ip . ':' . $proxi->port;
        }

        $i=0;
        $arrProxiString='';
        $file = Yii::getAlias('@console') . DIRECTORY_SEPARATOR . 'models' . DIRECTORY_SEPARATOR . 'proxy_list_good.txt';
        file_put_contents($file, '');
        foreach ($arrProxi as $proxi) {

            //$url = 'http://kotmonstr.com';
            //$url = 'http://wecandevelopit.com/';
            $url = 'http://wecandevelopit.com/';
            $proxiMOD = explode(":",trim($proxi));
            $ch = curl_init();
            curl_setopt($ch, CURLOPT_URL,$url);
            curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 0);
            curl_setopt($ch, CURLOPT_PROXY, $proxiMOD[0]);
            curl_setopt($ch, CURLOPT_PROXYPORT, $proxiMOD[1]);
            curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
            curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
            curl_setopt($ch, CURLOPT_CUSTOMREQUEST,'GET');
            curl_setopt($ch, CURLOPT_HEADER, 1);
            curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
            curl_setopt($ch, CURLOPT_TIMEOUT, 10);
            $output = curl_exec($ch);

            if ($output === FALSE) {
                echo $proxiMOD[0].':'.$proxiMOD[1].' -'. curl_error($ch),PHP_EOL;
            }else{
                echo $proxiMOD[0].':'.$proxiMOD[1]. ' -ok',PHP_EOL;
                $i++;
                $arrRusult[$i]= $proxi;
                $arrProxiString .= trim($proxiMOD[0]) . ':' . trim($proxiMOD[1]) . "\n";

                file_put_contents($file, $arrProxiString,FILE_APPEND);

            }

            curl_close($ch);
        }
        echo "Was founded: ".$i. ' proxis.',PHP_EOL;
    }

}

Youez - 2016 - github.com/yon3zu
LinuXploit