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);
     }
 }
Esempio n. 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();