Advertisement
Guest User

Untitled

a guest
Jan 4th, 2020
447
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.30 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 4.0.9.0
  8. * @ Author : DeZender
  9. * @ Release on : 08.08.2019
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function generator($ig, $climate)
  15. {
  16. $climate->backgroundBlueWhite('Hypervote Config Generator is Starting... ');
  17. $climate->out('');
  18. sleep(2);
  19. $climate->out('Please provide a valid license key from your Dashboard on Hypervoter.com (https://hypervoter.com).');
  20. sleep(1);
  21. $climate->out('Example: j5tkjkl4f7e595e9008bb77acc599453');
  22. $license_key = getVarFromUser('License key');
  23.  
  24. if (empty($license_key)) {
  25. do {
  26. $license_key = getVarFromUser('License key');
  27. } while (empty($license_key));
  28. }
  29.  
  30. $license_key = str_replace(' ', '', $license_key);
  31. $license_status = activate_license($license_key, $ig, $climate);
  32.  
  33. if ('valid' === $license_status) {
  34. $climate->out('You license active and valid. Processing...');
  35. }
  36. else {
  37. $climate->out('You license key not valid.');
  38. }
  39.  
  40. sleep(1);
  41. $climate->out('Please provide login data of your Instagram Account.');
  42. $login = getVarFromUser('Login');
  43.  
  44. if (empty($login)) {
  45. do {
  46. $login = getVarFromUser('Login');
  47. } while (empty($login));
  48. }
  49.  
  50. sleep(1);
  51. $password = getVarFromUser('Password');
  52.  
  53. if (empty($password)) {
  54. do {
  55. $password = getVarFromUser('Password');
  56. } while (empty($password));
  57. }
  58.  
  59. $first_loop = true;
  60.  
  61. do {
  62. if ($first_loop) {
  63. $climate->out('(Optional) Set proxy, if needed. It\'s better to use a proxy from the same country where you running this script.');
  64. $climate->out('Proxy should match following pattern:');
  65. $climate->out('http://ip:port or http://username:password@ip:port');
  66. $climate->out('Don\'t use in pattern https://.');
  67. $climate->out('Type 3 to skip and don\'t use proxy.');
  68. $first_loop = false;
  69. }
  70. else {
  71. $climate->out('Proxy - [NOT VALID]');
  72. $climate->out('Please check the proxy syntax and try again.');
  73. }
  74.  
  75. $proxy = getVarFromUser('Proxy');
  76.  
  77. if (empty($proxy)) {
  78. do {
  79. $proxy = getVarFromUser('Proxy');
  80. } while (empty($proxy));
  81. }
  82.  
  83. if ('3' === $proxy) {
  84. $proxy = '3';
  85. break;
  86. }
  87. } while (!isValidProxy($proxy, $climate));
  88.  
  89. $climate->out('Please choose the Hypervote estimated speed.');
  90. $climate->out('Type integer value without spaces from 1 to 1 500 000 stories/day or 0 for maximum possible speed.');
  91. $climate->out('We recommend you set 400000 stories/day. This speed works well for a long time without exceeding the limits.');
  92. $climate->out('When you are using the maximum speed you may exceed the Hypervote limits per day if this account actively used by a user in the Instagram app at the same time.');
  93. $climate->out('If you are using another type of automation, we recommend to you reducing Hypervote speed and find your own golden ratio.');
  94. $speed = (int) getVarFromUser('Speed');
  95.  
  96. if (1500000 < $speed) {
  97. do {
  98. $climate->out('Speed value is incorrect. Type integer value from 1 to 1 500 000 stories/day.');
  99. $climate->out('Type 0 for maximum speed.');
  100. $speed = (int) getVarFromUser('Delay');
  101. } while (1500000 < $speed);
  102. }
  103.  
  104. if (0 == $speed) {
  105. $climate->out('Maximum speed enabled.');
  106. }
  107. else {
  108. $climate->out('Speed set to ' . $speed . ' stories/day.');
  109. }
  110.  
  111. $climate->out('Experimental features:');
  112. $climate->out('Voting only fresh stories, which posted no more than X hours ago.');
  113. $climate->out('X - is integer value from 1 to 23.');
  114. $climate->out('Type 0 to skip this option.');
  115. $climate->out('This option will reduce speed, but can increase results of Hypervote.');
  116. $fresh_stories_range = 0;
  117.  
  118. if (23 < $fresh_stories_range) {
  119. do {
  120. $climate->out('Fresh stories range value is incorrect. Type integer value from 1 to 23.');
  121. $climate->out('Type 0 for skip this option.');
  122. $fresh_stories_range = 0;
  123. } while (23 < $fresh_stories_range);
  124. }
  125.  
  126. $defined_targs = getVarFromUser('Please define your targets. Use only usernames without "@" sign');
  127. $q_answers = (int) getVarFromUser('Is Question Answers active? (0/1)');
  128. $q_vote = (int) getVarFromUser('Is Poll Vote active? (0/1)');
  129. $q_slide = (int) getVarFromUser('Is Slide Points active? (0/1)');
  130. $q_quiz = (int) getVarFromUser('Is Quiz Answers active? (0/1)');
  131. $q_stories = (int) getVarFromUser('Is Story Masslooking Active? (0/1)');
  132. $climate->out('Please use this option with caution.Our algorithm is optimized for maximum efficiency and human behaviour. As developers, we are not responsible if your account blocked by Instagram.');
  133.  
  134. if (0 !== $q_answers) {
  135. $q_answers_a = getVarFromUser('Please provide your answers (comma seperated. For Ex: hello,hi there,oh dear)');
  136. }
  137.  
  138. if (0 !== $q_slide) {
  139. $q_slide_points_min = (int) getVarFromUser('Please Provide Min. Slide Points (0/100)');
  140. $q_slide_points_max = (int) getVarFromUser('Please Provide Max. Slide Points (0/100)');
  141.  
  142. do {
  143. $climate->errorBold('Max value can not set lower than min value. Max value must set ' . ($q_slide_points_min + 1) . ' or bigger!');
  144. $q_slide_points_max = (int) getVarFromUser('Please Provide Max. Slide Points (0/100)');
  145. } while ($q_slide_points_max < $q_slide_points_min);
  146. }
  147. else {
  148. $q_slide_points_min = 0;
  149. $q_slide_points_max = 100;
  150. }
  151.  
  152. if (!empty($q_answers_a)) {
  153. $qs = explode(',', $q_answers_a);
  154. }
  155. else {
  156. $qs = [];
  157. }
  158.  
  159. $data = [
  160. 'license_key' => $license_key,
  161. 'username' => $login,
  162. 'password' => $password,
  163. 'proxy' => $proxy,
  164. 'speed_value' => $speed,
  165. 'targets' => $defined_targs,
  166. 'fresh_stories_range' => 5,
  167. 'is_poll_vote_active' => 0 === $q_vote ? false : true,
  168. 'is_slider_points_active' => 0 === $q_slide ? false : true,
  169. 'is_questions_answers_active' => 0 === $q_answers ? false : true,
  170. 'is_quiz_answers_active' => 0 === $q_quiz ? false : true,
  171. 'is_mass_story_vivew_active' => 0 === $q_stories ? false : true,
  172. 'questions_answers' => $qs,
  173. 'slider_points_range' => [$q_slide_points_min ? $q_slide_points_min : 0, $q_slide_points_max ? $q_slide_points_max : 100]
  174. ];
  175. $choicebaby = $climate->confirm('All values are set. Do you want to save this configuration?');
  176.  
  177. if ($choicebaby->confirmed()) {
  178. $filename = getVarFromUser('Please set a name for file');
  179.  
  180. if (file_exists(__DIR__ . '/config/config-' . $filename . '.json')) {
  181. $climate->errorBold('File ' . $filename . ' already exists. Set a different name');
  182. $filename = getVarFromUser('Please set a name for file');
  183. }
  184.  
  185. $fp = fopen(__DIR__ . '/config/config-' . $filename . '.json', 'w');
  186. fwrite($fp, json_encode($data));
  187. fclose($fp);
  188. $climate->infoBold('Config file ' . $filename . ' successfully saved. Hyperloop starting in 3 seconds...');
  189. sleep(3);
  190. run($ig, $climate, $filename, NULL);
  191. }
  192. else {
  193. $choice2 = $climate->confirm(' All your changes not saved. Are you sure? ');
  194.  
  195. if ($choice2->confirmed()) {
  196. $climate->info(' Allright. Hyperloop sequence starting with these info in 3 seconds... ');
  197. sleep(3);
  198. run($ig, $climate, NULL, json_encode($data));
  199. }
  200. else {
  201. $filename = getVarFromUser('Please set a name for file');
  202.  
  203. if (file_exists(__DIR__ . '/config/config-' . $filename . '.json')) {
  204. $climate->errorBold('File ' . $filename . ' already exists. Set a different name');
  205. $filename = getVarFromUser('Please set a name for file');
  206. }
  207.  
  208. $fp = fopen(__DIR__ . '/config/config-' . $filename . '.json', 'w');
  209. fwrite($fp, json_encode($data));
  210. fclose($fp);
  211. $climate->infoBold('Config file ' . $filename . ' successfully saved. Hyperloop starting in 3 seconds...');
  212. sleep(3);
  213. run($ig, $climate, $filename, NULL);
  214. }
  215. }
  216. }
  217.  
  218. function run($ig, $climate, $conf_name = NULL, $datajson = NULL)
  219. {
  220. ini_set('memory_limit', '-1');
  221. ini_set('max_execution_time', '-1');
  222.  
  223. try {
  224. if (NULL == $datajson) {
  225. if (NULL !== $conf_name) {
  226. $climate->out('Config file name provided by generator. Processing...');
  227. $config_name = $conf_name;
  228. }
  229. else {
  230. $climate->out('Please provide an username for config file...');
  231. .............................................................................
  232. ................................................
  233. ................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement