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
| worker_processes 1; | |
| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| include /home/t/nginx/conf/mime.types; | |
| default_type application/octet-stream; |
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 | |
| /* | |
| Updated version, 2016-12-02: fixed shellcode so it *actually* works on QEMU | |
| usermode emulation (seems I pushed an old version), and removed debug output. | |
| ------------------------- | |
| NB: THIS PoC ONLY WORKS IN QEMU USERMODE EMULATION! | |
| If anyone wants to fix this, go ahead (no pun intended). | |
| However, I don't have a vulnerable product and am unwilling to acquire one. |
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
| console.save = function(data, filename){ | |
| if(!data) return console.error('console.save: no data'); | |
| filename = filename || 'console.json'; | |
| if(typeof data === "object"){ | |
| data = JSON.stringify(data, undefined, 4) | |
| } | |
| var blob = new Blob([data], {type: 'text/json'}); |
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
| var crypto = require('crypto'); | |
| // larger numbers mean better security, less | |
| var config = { | |
| // size of the generated hash | |
| hashBytes: 32, | |
| // larger salt means hashed passwords are more resistant to rainbow table, but | |
| // you get diminishing returns pretty fast | |
| saltBytes: 16, | |
| // more iterations means an attacker has to take longer to brute force an |
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
| { | |
| "au": "Австралия", | |
| "at": "Австрия", | |
| "az": "Азербайджан", | |
| "ax": "Аландские о-ва", | |
| "al": "Албания", | |
| "dz": "Алжир", | |
| "as": "Американское Самоа", | |
| "ai": "Ангилья", | |
| "ao": "Ангола", |
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
| { | |
| "ЦАО": { | |
| title: "Центральный", | |
| items: [ | |
| "Арбат", | |
| "Басманный", | |
| "Замоскворечье", | |
| "Красносельский", | |
| "Мещанский", | |
| "Пресненский", |
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
| var hex = 'ffaadd'; | |
| var rgb = parseInt(hex, 16); // value is 1675421 | |
| var red = (rgb >> 16) & 0xFF; // returns 255 | |
| var green = (rgb >> 8) & 0xFF; // 170 | |
| var blue = rgb & 0xFF; // 221 |
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
| var util = require('util') | |
| , Transform = require('stream').Transform | |
| , StreamCombiner = require('./streamcombiner'); | |
| var chunks1 = []; | |
| var stream1 = new Transform(); | |
| var soFar = ''; | |
| stream1._transform = function(chunk, encoding, done) { | |
| chunks1.push(chunk.toString()); | |
| var pieces = (soFar + chunk).split('\n'); |
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
| ## How to install mcrypt in php7.2 | |
| ## | |
| ## https://lukasmestan.com/install-mcrypt-extension-in-php7-2/ | |
| ## | |
| # | |
| # Check version php and pecl | |
| # | |
| php -v # if default php is not 7.2 then use /usr/bin/php7.2 instead php |
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
| var touchstartX = 0; | |
| var touchstartY = 0; | |
| var touchendX = 0; | |
| var touchendY = 0; | |
| var gesuredZone = document.getElementById('gesuredZone'); | |
| gesuredZone.addEventListener('touchstart', function(event) { | |
| touchstartX = event.screenX; | |
| touchstartY = event.screenY; |
OlderNewer