Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.0.9.0
- * @ Author : DeZender
- * @ Release on : 08.08.2019
- * @ Official site : http://DeZender.Net
- *
- */
- function generator($ig, $climate)
- {
- $climate->backgroundBlueWhite('Hypervote Config Generator is Starting... ');
- $climate->out('');
- sleep(2);
- $climate->out('Please provide a valid license key from your Dashboard on Hypervoter.com (https://hypervoter.com).');
- sleep(1);
- $climate->out('Example: j5tkjkl4f7e595e9008bb77acc599453');
- $license_key = getVarFromUser('License key');
- if (empty($license_key)) {
- do {
- $license_key = getVarFromUser('License key');
- } while (empty($license_key));
- }
- $license_key = str_replace(' ', '', $license_key);
- $license_status = activate_license($license_key, $ig, $climate);
- if ('valid' === $license_status) {
- $climate->out('You license active and valid. Processing...');
- }
- else {
- $climate->out('You license key not valid.');
- }
- sleep(1);
- $climate->out('Please provide login data of your Instagram Account.');
- $login = getVarFromUser('Login');
- if (empty($login)) {
- do {
- $login = getVarFromUser('Login');
- } while (empty($login));
- }
- sleep(1);
- $password = getVarFromUser('Password');
- if (empty($password)) {
- do {
- $password = getVarFromUser('Password');
- } while (empty($password));
- }
- $first_loop = true;
- do {
- if ($first_loop) {
- $climate->out('(Optional) Set proxy, if needed. It\'s better to use a proxy from the same country where you running this script.');
- $climate->out('Proxy should match following pattern:');
- $climate->out('http://ip:port or http://username:password@ip:port');
- $climate->out('Don\'t use in pattern https://.');
- $climate->out('Type 3 to skip and don\'t use proxy.');
- $first_loop = false;
- }
- else {
- $climate->out('Proxy - [NOT VALID]');
- $climate->out('Please check the proxy syntax and try again.');
- }
- $proxy = getVarFromUser('Proxy');
- if (empty($proxy)) {
- do {
- $proxy = getVarFromUser('Proxy');
- } while (empty($proxy));
- }
- if ('3' === $proxy) {
- $proxy = '3';
- break;
- }
- } while (!isValidProxy($proxy, $climate));
- $climate->out('Please choose the Hypervote estimated speed.');
- $climate->out('Type integer value without spaces from 1 to 1 500 000 stories/day or 0 for maximum possible speed.');
- $climate->out('We recommend you set 400000 stories/day. This speed works well for a long time without exceeding the limits.');
- $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.');
- $climate->out('If you are using another type of automation, we recommend to you reducing Hypervote speed and find your own golden ratio.');
- $speed = (int) getVarFromUser('Speed');
- if (1500000 < $speed) {
- do {
- $climate->out('Speed value is incorrect. Type integer value from 1 to 1 500 000 stories/day.');
- $climate->out('Type 0 for maximum speed.');
- $speed = (int) getVarFromUser('Delay');
- } while (1500000 < $speed);
- }
- if (0 == $speed) {
- $climate->out('Maximum speed enabled.');
- }
- else {
- $climate->out('Speed set to ' . $speed . ' stories/day.');
- }
- $climate->out('Experimental features:');
- $climate->out('Voting only fresh stories, which posted no more than X hours ago.');
- $climate->out('X - is integer value from 1 to 23.');
- $climate->out('Type 0 to skip this option.');
- $climate->out('This option will reduce speed, but can increase results of Hypervote.');
- $fresh_stories_range = 0;
- if (23 < $fresh_stories_range) {
- do {
- $climate->out('Fresh stories range value is incorrect. Type integer value from 1 to 23.');
- $climate->out('Type 0 for skip this option.');
- $fresh_stories_range = 0;
- } while (23 < $fresh_stories_range);
- }
- $defined_targs = getVarFromUser('Please define your targets. Use only usernames without "@" sign');
- $q_answers = (int) getVarFromUser('Is Question Answers active? (0/1)');
- $q_vote = (int) getVarFromUser('Is Poll Vote active? (0/1)');
- $q_slide = (int) getVarFromUser('Is Slide Points active? (0/1)');
- $q_quiz = (int) getVarFromUser('Is Quiz Answers active? (0/1)');
- $q_stories = (int) getVarFromUser('Is Story Masslooking Active? (0/1)');
- $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.');
- if (0 !== $q_answers) {
- $q_answers_a = getVarFromUser('Please provide your answers (comma seperated. For Ex: hello,hi there,oh dear)');
- }
- if (0 !== $q_slide) {
- $q_slide_points_min = (int) getVarFromUser('Please Provide Min. Slide Points (0/100)');
- $q_slide_points_max = (int) getVarFromUser('Please Provide Max. Slide Points (0/100)');
- do {
- $climate->errorBold('Max value can not set lower than min value. Max value must set ' . ($q_slide_points_min + 1) . ' or bigger!');
- $q_slide_points_max = (int) getVarFromUser('Please Provide Max. Slide Points (0/100)');
- } while ($q_slide_points_max < $q_slide_points_min);
- }
- else {
- $q_slide_points_min = 0;
- $q_slide_points_max = 100;
- }
- if (!empty($q_answers_a)) {
- $qs = explode(',', $q_answers_a);
- }
- else {
- $qs = [];
- }
- $data = [
- 'license_key' => $license_key,
- 'username' => $login,
- 'password' => $password,
- 'proxy' => $proxy,
- 'speed_value' => $speed,
- 'targets' => $defined_targs,
- 'fresh_stories_range' => 5,
- 'is_poll_vote_active' => 0 === $q_vote ? false : true,
- 'is_slider_points_active' => 0 === $q_slide ? false : true,
- 'is_questions_answers_active' => 0 === $q_answers ? false : true,
- 'is_quiz_answers_active' => 0 === $q_quiz ? false : true,
- 'is_mass_story_vivew_active' => 0 === $q_stories ? false : true,
- 'questions_answers' => $qs,
- 'slider_points_range' => [$q_slide_points_min ? $q_slide_points_min : 0, $q_slide_points_max ? $q_slide_points_max : 100]
- ];
- $choicebaby = $climate->confirm('All values are set. Do you want to save this configuration?');
- if ($choicebaby->confirmed()) {
- $filename = getVarFromUser('Please set a name for file');
- if (file_exists(__DIR__ . '/config/config-' . $filename . '.json')) {
- $climate->errorBold('File ' . $filename . ' already exists. Set a different name');
- $filename = getVarFromUser('Please set a name for file');
- }
- $fp = fopen(__DIR__ . '/config/config-' . $filename . '.json', 'w');
- fwrite($fp, json_encode($data));
- fclose($fp);
- $climate->infoBold('Config file ' . $filename . ' successfully saved. Hyperloop starting in 3 seconds...');
- sleep(3);
- run($ig, $climate, $filename, NULL);
- }
- else {
- $choice2 = $climate->confirm(' All your changes not saved. Are you sure? ');
- if ($choice2->confirmed()) {
- $climate->info(' Allright. Hyperloop sequence starting with these info in 3 seconds... ');
- sleep(3);
- run($ig, $climate, NULL, json_encode($data));
- }
- else {
- $filename = getVarFromUser('Please set a name for file');
- if (file_exists(__DIR__ . '/config/config-' . $filename . '.json')) {
- $climate->errorBold('File ' . $filename . ' already exists. Set a different name');
- $filename = getVarFromUser('Please set a name for file');
- }
- $fp = fopen(__DIR__ . '/config/config-' . $filename . '.json', 'w');
- fwrite($fp, json_encode($data));
- fclose($fp);
- $climate->infoBold('Config file ' . $filename . ' successfully saved. Hyperloop starting in 3 seconds...');
- sleep(3);
- run($ig, $climate, $filename, NULL);
- }
- }
- }
- function run($ig, $climate, $conf_name = NULL, $datajson = NULL)
- {
- ini_set('memory_limit', '-1');
- ini_set('max_execution_time', '-1');
- try {
- if (NULL == $datajson) {
- if (NULL !== $conf_name) {
- $climate->out('Config file name provided by generator. Processing...');
- $config_name = $conf_name;
- }
- else {
- $climate->out('Please provide an username for config file...');
- .............................................................................
- ................................................
- ................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement