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
public function descifra_ip(cookie:String, claveCifrado:String) : String { | |
var t:ByteArray = Base64.decodeToByteArray(cookie); | |
var k:ByteArray = Base64.decodeToByteArray(claveCifrado); | |
var v:ByteArray = new ByteArray(); | |
var v2:ByteArray = new ByteArray(); | |
var v3:ByteArray = new ByteArray(); | |
var r:ByteArray = new ByteArray(); | |
k.position = 24; | |
k.writeBytes(t,0,8); | |
v.writeBytes(t,8,16); |
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
from base64 import b64decode | |
from Crypto.Cipher import AES | |
def descifra_ip(cookie, claveCifrado): | |
t = bytearray(b64decode(cookie)) | |
k = bytearray(b64decode(claveCifrado)) | |
v = b'' | |
v2 = bytearray('\0' * 16) | |
v3 = b'' | |
r = b'' |
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
use strict; | |
use MIME::Base64; | |
use Crypt::OpenSSL::AES; | |
sub descifra_ip { | |
my ($loc_3, $loc_4) = @_; | |
my ($loc_5, $loc_6, $loc_7, $loc_8, $loc_9, $loc_10); | |
$loc_3 = decode_base64($loc_3); | |
$loc_4 = decode_base64($loc_4); |
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
package | |
{ | |
import com.hurlant.util.Base64; | |
import com.hurlant.crypto.symmetric.AESKey; | |
import flash.utils.*; | |
public class Tester { | |
public function descifra_ip(cookie:String, claveCifrado:String) : String { | |
var t:ByteArray = Base64.decodeToByteArray(cookie); |
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
use Irssi; | |
use strict; | |
use vars qw($VERSION %IRSSI); | |
$VERSION = "1.0"; | |
%IRSSI = ( | |
authors => "", | |
contact => "", | |
name => "", | |
description => "", | |
license => "", |
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
# -*- coding: utf-8 -*- | |
import sqlite3 | |
import MySQLdb | |
import os | |
import sys | |
import mimetypes | |
admin_nick = "wodim" | |
admin_email = "lalala@lalala.com" |
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 seconds_to_hhmmss = function(seconds) { | |
if (seconds < 0 || isNaN(seconds)) { | |
return "--:--"; | |
} | |
var hh = (seconds / 3600); | |
hh = Math.floor(hh); | |
hh = hh < 10 ? "0" + hh : hh; | |
var mm = (seconds / 60) % 60; | |
mm = Math.floor(mm); |
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
# This file describes the network interfaces available on your system | |
# and how to activate them. For more information, see interfaces(5). | |
# The loopback network interface | |
auto lo | |
iface lo inet loopback | |
auto eth1 | |
iface eth1 inet static | |
address 192.168.4.103 |
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
public function descifra(ping:String, claveCifrado:String) : String | |
{ | |
var t:ByteArray = Base64.decodeToByteArray(ping); | |
var k:ByteArray = Base64.decodeToByteArray(claveCifrado); | |
var v:ByteArray = new ByteArray(); | |
k.position = 24; | |
k.writeBytes(t,0,8); | |
v.writeBytes(t,8,16); | |
k.position = 0; | |
v.position = 0; |
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
sub event_ping { | |
my ($server, $ping) = @_; | |
if ($ping =~ m/^:?[a-zA-Z0-9\[\]]{32}$/) { | |
Irssi::print "Recibido PING cifrado, enviando PONG acorde :-)"; | |
my $pong = "PONG :".descifrar($ping, $private_key); | |
$server->send_raw($pong); | |
Irssi::signal_stop(); | |
} | |
} |
OlderNewer