This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| ini_set('mbstring.language', 'Russian'); | |
| function db(){ | |
| static $db = null; | |
| if(!$db){ | |
| $db = new SQLite3(__DIR__.'/contacts2.db'); | |
| $db->busyTimeout(60*60*1000); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function getXmlHttp(){ | |
| var xmlhttp; | |
| try { | |
| xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); | |
| } catch (e) { | |
| try { | |
| xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); | |
| } catch (E) { | |
| xmlhttp = false; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // url deobfuscation function '129' from audioplayer.js | |
| (function(t, i) { | |
| "use strict"; | |
| function e(t) { | |
| if (~t.indexOf("audio_api_unavailable")) { | |
| var i = t.split("?extra=")[1].split("#"), | |
| e = o(i[1]); | |
| if (i = o(i[0]), !e || !i) return t; | |
| e = e.split(String.fromCharCode(9)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fileext_from_url(url, default_ext = "mp3") | |
| { | |
| url_wo_query := RegExReplace(url, "(\?.*)?(#.*)?$", "") | |
| SplitPath, url_wo_query, , , , fn | |
| return, % fn "." ext_from_url(url, default_ext) | |
| } | |
| ext_from_url(url, default = "mp3") | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| run in console at https://vk.com/audio | |
| to download from wall, go to https://vk.com/wall[ID]?own=1&offset=[OFFSET] | |
| wait for m3u file | |
| use this autohotkey script https://gist.github.com/1d10t/6f8b151e50905449c63abc851dceb167 | |
| to download mp3 files | |
| */ | |
| (function(){ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| HTMLAudioElement.prototype.balance = function(leftValue, rightValue){ | |
| if(!this.leftGain || !this.rightGain){ | |
| var audioCtx = new AudioContext(); | |
| if(audioCtx.destination.channelCount != 2){ | |
| console.log('Destination channel count is not two:', audioCtx.destination.channelCount); | |
| return; | |
| } | |
| var audioSrc = audioCtx.createMediaElementSource(this); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class slowAES_aes | |
| { | |
| static $keySize = array( | |
| 'SIZE_128' => 16, | |
| 'SIZE_192' => 24, | |
| 'SIZE_256' => 32 | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/php | |
| <?php | |
| error_reporting(E_ALL); | |
| function scr_ls(){ | |
| ob_start(); | |
| passthru('screen -ls'); | |
| $ss = explode("\n", ob_get_clean()); | |
| $scrs = array(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 0) | |
| offset: 65545 0x10009 | |
| end: 65546 0x1000a | |
| size: 2 | |
| 1) | |
| offset: 65549 0x1000d | |
| end: 65549 0x1000d | |
| size: 1 | |
| 2) | |
| offset: 65552 0x10010 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/php | |
| <?php | |
| error_reporting(E_ALL); | |
| ini_set('display_errors', 1); | |
| ini_set('memory_limit','1G'); | |
| set_time_limit(0); | |
| $opt = getopt('', array( | |
| 'host:', | |
| 'dir:', |