Advertisement
Guest User

Untitled

a guest
Nov 24th, 2019
661
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.48 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. $config_name = getVarFromUser('Username');
  232. }
  233.  
  234. if (empty($config_name)) {
  235. do {
  236. $config_name = getVarFromUser('Username');
  237. } while (empty($config_name));
  238. }
  239.  
  240. $climate->infoBold('Checking for config...');
  241. sleep(1);
  242.  
  243. if (file_exists(__DIR__ . '/config/config-' . $config_name . '.json')) {
  244. $climate->infoBold('Config file found. Processing...');
  245. sleep(1);
  246. $mafile = fopen(__DIR__ . '/config/config-' . $config_name . '.json', 'r');
  247. $file = fread($mafile, filesize(__DIR__ . '/config/config-' . $config_name . '.json'));
  248. $data = json_decode($file);
  249. fclose($mafile);
  250. $climate->infoBold('Checking & Validating License key...');
  251. sleep(1);
  252.  
  253. if ('' !== $data->license_key) {
  254. $license_status = activate_license($data->license_key, $ig, $climate);
  255. }
  256. else {
  257. $climate->out('Please provide a valid license key from your Dashboard on Hypervoter.com (https://hypervoter.com).');
  258. $climate->out('Example: j5tkjkl4f7e595e9008bb77acc599453');
  259. $license_key = getVarFromUser('License key');
  260.  
  261. if (empty($license_key)) {
  262. do {
  263. $license_key = getVarFromUser('License key');
  264. } while (empty($license_key));
  265. }
  266.  
  267. $license_key = str_replace(' ', '', $license_key);
  268. $license_status = activate_license($license_key, $ig, $climate);
  269.  
  270. if ('valid' === $license_status) {
  271. $climate->out('You license active and valid.');
  272. }
  273. else {
  274. $climate->out('You license key not valid.');
  275. run($ig, $climate);
  276. }
  277.  
  278. sleep(1);
  279. }
  280.  
  281. if ('valid' === $license_status) {
  282. $climate->backgroundBlueWhiteBold(' You license key is active and valid. Processing... ');
  283. sleep(1);
  284.  
  285. if ('' !== $data->username) {
  286. $climate->infoBold('Username Found');
  287. $login = $data->username;
  288. }
  289. else {
  290. $climate->backgroundRedWhiteBold('Username can not empty');
  291. sleep(1);
  292. exit();
  293. }
  294.  
  295. if ('' !== $data->password) {
  296. $climate->infoBold('Password Found');
  297. $password = $data->password;
  298. }
  299. else {
  300. $climate->backgroundRedWhiteBold('Password can not empty');
  301. sleep(1);
  302. exit();
  303. }
  304.  
  305. if ('3' === $data->proxy) {
  306. $climate->infoBold('Proxy Skipping Enabled. Processing ...');
  307. $proxy = '3';
  308. sleep(1);
  309. }
  310. else {
  311. $climate->infoBold('Proxy Option found. Validating...');
  312. sleep(1);
  313. $validate_proxy = isValidProxy($data->proxy, $climate);
  314. $climate->infoBold('Proxy Status : ' . $validate_proxy);
  315.  
  316. if (200 == $validate_proxy) {
  317. $climate->info('Proxy Connected. Processing ...');
  318. $proxy = $data->proxy;
  319. $ig->setProxy($data->proxy);
  320. }
  321. else {
  322. $proxy = '3';
  323. $climate->info('Proxy can not conntected. Skipping...');
  324. }
  325. }
  326.  
  327. if ($data->speed_value) {
  328. $climate->infoBold('Speed Value Found. Processing ... ');
  329. $speed = (int) $data->speed_value;
  330.  
  331. if (1500000 < $speed) {
  332. do {
  333. $climate->errorBold('Speed value is incorrect. Type integer value from 1 to 1 500 000 stories/day.');
  334. usleep(500000);
  335. $climate->errorBold('For Maxiumum speed please use "0"... Please set speed now (that will not change your config file)');
  336. $speed = (int) getVarFromUser('Speed');
  337. } while (1500000 < $speed);
  338. }
  339.  
  340. if (0 === $speed) {
  341. $climate->infoBold(' Maximum speed enabled. ');
  342. $delay = 46;
  343. }
  344. else {
  345. $climate->infoBold('Speed set to ' . $speed . ' stories/day.');
  346. $delay = round(17280000 / $speed);
  347. }
  348. }
  349.  
  350. if (0 < $data->fresh_stories_range) {
  351. $fresh_stories_range = 0;
  352. $climate->infoBold('Experimental Feature (Fresh Stories Range) value found. Validating ...');
  353. sleep(1);
  354.  
  355. if (23 < $fresh_stories_range) {
  356. do {
  357. $climage->errorBold('Fresh stories range value is incorrect. Type integer value from 1 to 23.');
  358. $climage->errorBold('Type 0 for skip this option.');
  359. $fresh_stories_range = 0;
  360. } while (23 < $fresh_stories_range);
  361. }
  362.  
  363. $climate->infoBold('Fresh Stories Range set to ' . $fresh_stories_range);
  364. sleep(1);
  365. }
  366. else {
  367. $fresh_stories_range = 0;
  368. $climate->infoBold('Experimental Feature (Fresh Stories Range) Skipping.');
  369. usleep(500000);
  370. }
  371.  
  372. $defined_targets = $data->targets;
  373.  
  374. if ($data->is_mass_story_vivew_active) {
  375. $climate->backgroundRedWhiteBold('Attention! Mass story View Feature is active. 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. ');
  376. }
  377. }
  378. else {
  379. $climate->backgroundRedWhiteBold(' You license key is not valid. Please obtain valid licence key from your Dashboard on Hypervoter.com (https://hypervoter.com) ');
  380. sleep(1);
  381. exit();
  382. }
  383. }
  384. else {
  385. $climate->backgroundRedWhiteBold(' Config file not found. Manual input starting... ');
  386. sleep(5);
  387. $defined_targets = NULL;
  388. $climate->out('Please provide a valid license key from your Dashboard on Hypervoter.com (https://hypervoter.com).');
  389. $climate->out('Example: j5tkjkl4f7e595e9008bb77acc599453');
  390. $license_key = getVarFromUser('License key');
  391.  
  392. if (empty($license_key)) {
  393. do {
  394. $license_key = getVarFromUser('License key');
  395. } while (empty($license_key));
  396. }
  397.  
  398. $license_key = str_replace(' ', '', $license_key);
  399. $license_status = activate_license($license_key, $ig, $climate);
  400.  
  401. if ('valid' === $license_status) {
  402. $climate->out('You license active and valid.');
  403. }
  404. else {
  405. $climate->out('You license key not valid.');
  406. run($ig, $climate);
  407. }
  408.  
  409. $climate->out('Please provide login data of your Instagram Account.');
  410. $login = getVarFromUser('Login');
  411.  
  412. if (empty($login)) {
  413. do {
  414. $login = getVarFromUser('Login');
  415. } while (empty($login));
  416. }
  417.  
  418. $password = getVarFromUser('Password');
  419.  
  420. if (empty($password)) {
  421. do {
  422. $password = getVarFromUser('Password');
  423. } while (empty($password));
  424. }
  425.  
  426. $first_loop = true;
  427.  
  428. do {
  429. if ($first_loop) {
  430. $climate->out('(Optional) Set proxy, if needed. It\'s better to use a proxy from the same country where you running this script.');
  431. $climate->out('Proxy should match following pattern:');
  432. $climate->out('http://ip:port or http://username:password@ip:port');
  433. $climate->out('Don\'t use in pattern https://.');
  434. $climate->out('Type 3 to skip and don\'t use proxy.');
  435. $first_loop = false;
  436. }
  437. else {
  438. $climate->out('Proxy - [NOT VALID]');
  439. $climate->out('Please check the proxy syntax and try again.');
  440. }
  441.  
  442. $proxy = getVarFromUser('Proxy');
  443.  
  444. if (empty($proxy)) {
  445. do {
  446. $proxy = getVarFromUser('Proxy');
  447. } while (empty($proxy));
  448. }
  449.  
  450. if ('3' === $proxy) {
  451. $proxy = '3';
  452. break;
  453. }
  454. } while (!isValidProxy($proxy, $climate));
  455.  
  456. $proxy_check = isValidProxy($proxy, $climate);
  457. .........................................................................
  458. ..............................................
  459. ................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement