Skip to content

Instantly share code, notes, and snippets.


Aris Adamantiadis arisada

View GitHub Profile
#!/usr/bin/env python3
import sys
import os
Deletes all FIT files from a Siril sequence file (.seq)
def parse_seq(seq):
#!/usr/bin/env python3
import random
change_strategy, stay_strategy = 0, 0
for i in range(1000):
v = [True, False, False]
print("Solution:", v)
firstchoice = random.choice([0, 1, 2])
View findthebug.c
void compute_session_keys(uint8_t encryptkey[AES128_KEY_LEN],
uint8_t master_key[AES128_KEY_LEN],
uint8_t encryption_salt[8]){
uint8_t long_encryptkey[SHA256_DIGEST_LEN];
HMAC_SHA256_CTX ctx;
HMAC_SHA256_Init(&ctx, master_key, sizeof(master_key));
HMAC_SHA256_Update(&ctx,encryption_salt, 8);
HMAC_SHA256_Update(&ctx, "encryption", 10);
arisada /
Created Oct 17, 2018
NOCD patch for Constructor (1997)
#!/usr/bin/env python
# This script will let you play constructor without the CD
# in the drive. My retrogaming laptop has no CD drive.
f = open("GAME.EXE").read()
patches = [
arisada /
Last active Aug 28, 2017
#!/usr/bin/env python3
import struct
from libctf import *
atoi_got = 0x603110
#ubuntu 14.04
#!/usr/bin/env python3
from libctf import *
import subprocess
process=subprocess.Popen(["./secuprim", "3l6f2tUN3Ix7k9TY4v0dLv",
"e6c2f738459e25670d3d46785f2e4496"], stdout=subprocess.PIPE)

Keybase proof

I hereby claim:

  • I am arisada on github.
  • I am aris ( on keybase.
  • I have a public key ASBt7AuYECwQQNI2SRMk2FGvjjhwJS7cryM8OkrVpoZ2rQo

To claim this, I am signing this object:

#!/usr/bin/env python3
from collections import namedtuple
def maketuple(name, params, data):
tclass=namedtuple(name, params)
d = tclass._make(data[i] for i in params.split(' '))
return d
data = {
arisada /
Created Sep 27, 2015
Code for the poison ivy challenge, TMCTF2015
#!/usr/bin/env python
from libctf import *
import camellia
from struct import unpack
import lznt1
def crack():
View gist:4659578
/* When mallocing a huge amount of data, you will be put directly in mmap */
/* however, if you manage to alloc and desalloc blocks of data under 0x80000 */
/* you will be able to change the threshold and have bigger blocks of data */
/* alloced in the brk() heap. */
aris@ubuntu1204-32:$ cat mesures.c
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
int main(){