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
import Crypto.Random | |
from Crypto.Cipher import DES | |
import hashlib | |
import struct | |
password = "passwordfile"; | |
salt = "\x0c\x9d\x4a\xe4\x1e\x83\x15\xfc"; | |
iteration_count = 5; | |
def decrypt(ciphertext): |
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
#include <cstdio> | |
#include <cstdlib> | |
#include <cstring> | |
#include <exception> | |
#define LOOP_STACK_SIZE 64 | |
#define DATA_BUFFER_SIZE 1024 | |
class BrainFUUU { | |
public: |
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 | |
function encode($data) { | |
global $format; | |
array_unshift($data, $format); | |
$raw = call_user_func_array("pack", $data); | |
$encoded = bin2hex($raw); | |
return $encoded; | |
} | |
function decode($encoded) { |
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
import re | |
class BadMessageInput(Exception): | |
pass; | |
class Message: | |
buffer = ""; | |
prefix = ""; |
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
curl http://infected-mushroom.com/music/ | sed 's/.*href\=\"([a-zA-Z0-9/=]+)\" title="([a-zA-Z0-9 ]+)".*/wget $(echo "\1"|base64 -d) -O "\2.mp3"/pg' -rn | bash |
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 | |
# Where to store passwords | |
DATAFILE="./pwmgr_data.gpg" | |
# Your GPG key | |
RECIPIENT="xa@xomg.net" | |
# Command used to generate passwords | |
# (pwgen is nice) |
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
#include <X11/Xlib.h> | |
#include <X11/keysym.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
const char* text = "le avoir savoir nuit leur ton je avant qui pays te se homme chez entrer tout leur encore heure regard " | |
"jour elle ne au savoir entrer appeler ton revenir fille pied enfant contre ame chambre " | |
"toujours ce parler coup ne rendre noir pied donc quelque sans peu ciel vie ici mille tres " |
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/env python | |
# OpenVPN plugin for Nagios | |
from optparse import OptionParser | |
import socket | |
from datetime import datetime | |
def main(): | |
senddata= "\x38\x01\x00\x00\x00\x00\x00\x00\x00" |
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
enum Opcodes { | |
OP_PING = 0x1337 | |
} | |
class Packet { | |
public: | |
Packet(int32_t opcode); | |
virtual bool encode(std::string& buffer) = 0; | |
virtual bool decode(const std::string& buffer) = 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
#ifndef COMMON_SINGLETON_H | |
#define COMMON_SINGLETON_H | |
#include <cstdlib> | |
template<typename T> | |
class Singleton { | |
public: | |
Singleton() { | |
m_Instance = static_cast<T*>(this); |
OlderNewer