Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $key='1234567812345678';
- function string_encrypt($string,$key){$block=mcrypt_get_block_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_ECB);$padding=$block - (strlen($string) % $block);$string.=str_repeat(chr($padding), $padding);$crypted_text=mcrypt_encrypt(MCRYPT_RIJNDAEL_128,$key,$string,MCRYPT_MODE_ECB);return base64_encode($crypted_text);}
- $v=$_POST['v'];
- if($v=='GroupsGet')
- {
- $wall = file_get_contents("https://api.vk.com/method/groups.getById?group_ids={$_POST['group']}&extended=1&fields=ban_info,can_post,members_count&access_token={$_POST['access_token']}&captcha_key={$_POST['key']}&captcha_sid={$_POST['sid']}");
- if(mb_strpos($wall, 'captcha_sid')!==false)
- {
- preg_match('/captcha_sid\"\:\"(\d+)\"/ius',$wall,$wall);
- $wall=$wall[0];
- }
- $wall= string_encrypt( $wall,$key);
- print_r($wall);
- }
- if($v=='UsersGet')
- {
- $wall = file_get_contents("https://api.vk.com/method/users.get?user_ids={$_POST['user']}&fields=domain,can_write_private_message,wall_comments,online,can_post,sex&access_token={$_POST['access_token']}&captcha_key={$_POST['key']}&captcha_sid={$_POST['sid']}");
- if(mb_strpos($wall, 'captcha_sid')!==false)
- {
- preg_match('/captcha_sid\"\:\"(\d+)\"/ius',$wall,$wall);
- $wall=$wall[0];
- }
- $wall= string_encrypt( $wall,$key);
- print_r($wall);
- }
- if($v=='GetInfo')
- {
- $wall = file_get_contents('https://api.vk.com/method/users.get.xml?user_ids='.$_POST['user'].'&fields=photo_50,has_mobile');
- $wall=$wall.'<city> city: 4964757 </city>';
- $wall= string_encrypt( $wall,$key);
- print_r($wall);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement