Advertisement
Guest User

Ioncube9 decode - decube.xyz

a guest
Jun 9th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.10 KB | None | 0 0
  1. <?php
  2. /*decoded by decube.xyz
  3. Source: myqiwiparser.class.php
  4. */
  5. class MyQiwiParser
  6. {
  7. private $sProxyIP;
  8. private $iProxyPort;
  9. private $sProxyType;
  10. private $sProxyUser;
  11. private $sProxyPassword;
  12. public $sResponse;
  13. public $aResponse;
  14.  
  15. public function __construct($sProxyIP = null, $iProxyPort = null, $sProxyType = null, $sProxyUser = null, $sProxyPassword = null)
  16. {
  17. $this->sProxyIP = $sProxyIP;
  18. $this->iProxyPort = $iProxyPort;
  19. $this->sProxyType = $sProxyType;
  20. $this->sProxyUser = $sProxyUser;
  21. $this->sProxyPassword = $sProxyPassword;
  22. $this->curl("checkConnection");
  23. }
  24.  
  25. public function getregistercaptcha()
  26. {
  27. $this->curl("getRegisterCaptcha");
  28. return $this->aResponse["sCaptchaBase64"];
  29. }
  30.  
  31. public function getremindcaptcha()
  32. {
  33. $this->curl("getRemindCaptcha");
  34. return $this->aResponse["sCaptchaBase64"];
  35. }
  36.  
  37. public function requestregister($iAccount, $iCaptcha)
  38. {
  39. $this->curl("requestRegister", array("iAccount" => $iAccount, "iCaptcha" => $iCaptcha));
  40. return $this->aResponse["iIdentifier"];
  41. }
  42.  
  43. public function requestremind($iAccount, $iCaptcha)
  44. {
  45. $this->curl("requestRemind", array("iAccount" => $iAccount, "iCaptcha" => $iCaptcha));
  46. return $this->aResponse["iIdentifier"];
  47. }
  48.  
  49. public function progressregister($iAccount, $sPassword, $iIdentifier, $iCode)
  50. {
  51. $this->curl("progressRegister", array("iAccount" => $iAccount, "sPassword" => $sPassword, "iIdentifier" => $iIdentifier, "iCode" => $iCode));
  52. }
  53.  
  54. public function progressremind($iAccount, $sPassword, $iIdentifier, $iCode)
  55. {
  56. $this->curl("progressRemind", array("iAccount" => $iAccount, "sPassword" => $sPassword, "iIdentifier" => $iIdentifier, "iCode" => $iCode));
  57. }
  58.  
  59. private function curl($sMod, array $aData = array())
  60. {
  61. $oCurl = &STRoCurl;
  62.  
  63. if (is_null($oCurl)) {
  64. $oCurl = curl_init(base64_decode("aHR0cDovL2FwaXNlcnZlci5pbi51YS9hcGktcWl3aS5waHA="));
  65. curl_setopt_array($oCurl, array(CURLOPT_RETURNTRANSFER => true, CURLOPT_HEADER => false, CURLOPT_USERAGENT => "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.65 Safari/537.36", CURLOPT_SSL_VERIFYHOST => false, CURLOPT_SSL_VERIFYPEER => false, CURLOPT_POST => true, CURLOPT_TIMEOUT => 60));
  66. }
  67.  
  68. $aData["sMod"] = $sMod;
  69. $aData["sProxyIP"] = $this->sProxyIP;
  70. $aData["iProxyPort"] = $this->iProxyPort;
  71. $aData["sProxyType"] = $this->sProxyType;
  72. $aData["sProxyUser"] = $this->sProxyUser;
  73. $aData["sProxyPassword"] = $this->sProxyPassword;
  74. curl_setopt($oCurl, CURLOPT_POSTFIELDS, http_build_query($aData));
  75. $this->sResponse = curl_exec($oCurl);
  76.  
  77. if (curl_errno($oCurl)) {
  78. throw new Exception(curl_errno($oCurl) . " - " . curl_error($oCurl));
  79. }
  80.  
  81. if (($this->aResponse = @json_decode($this->sResponse, true)) === false) {
  82. throw new Exception($this->sResponse);
  83. }
  84.  
  85. if (!isset($this->aResponse["sStatus"])) {
  86. throw new Exception($this->sResponse);
  87. }
  88.  
  89. if ($this->aResponse["sStatus"] != "SUCCESS") {
  90. throw new Exception(isset($this->aResponse["sMessage"]) ? $this->aResponse["sMessage"] : $this->sResponse);
  91. }
  92. }
  93. }
  94.  
  95.  
  96. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement