Пример #1
0
 public function call($request = null, $post = null)
 {
     foreach ($this->domains as $domain) {
         $fullUrl = self::url . "{$domain}";
         $c = new curl($fullUrl);
         if (isset($request)) {
             $c->setRequest($request);
         }
         if (isset($post)) {
             $json = json_encode($post);
             $c->setPost($json);
         }
         $c->createCurl();
         $resp = $c->getWebPage();
         $this->returnCode = $c->getHttpStatus();
         $this->checkVuln($resp, $domain);
     }
 }
Пример #2
0
<?php

$str = file_get_contents("php://input");
include "curl.php";
$url = 'http://' . $_GET['host'] . '/' . urldecode($_GET['api']);
$mobile = $_GET['mobileNum'];
$token = $_GET['token'];
$cookie_str = "mobileNum={$mobile}; token={$token}";
$curl = new curl("");
$curl->setPost($str);
$curl->createCurl($url, $cookie_str);
echo $curl->__tostring();