Skip to content

Instantly share code, notes, and snippets.

Aris Adamantiadis arisada

Block or report user

Report or block arisada

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@arisada
arisada / constructor-nocd.py
Created Oct 17, 2018
NOCD patch for Constructor (1997)
View constructor-nocd.py
#!/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 = [
(272174,"\x74","\xeb"),
(642050,"\x83\x3d\x88\x3b\x04\x00\x00","\x90\x90\x90\x90\x90\x90\x90"),
(750753,"\x75","\xeb"),
(750850,"\xfa\xff\xff\xff","\x00\x00\x00\x00"),
(750887,"\x74","\xeb"),
@arisada
arisada / rhme3_quals_xp.py
Last active Aug 28, 2017
rhme3_quals_xp.py
View rhme3_quals_xp.py
#!/usr/bin/env python3
import struct
from libctf import *
port=1337
atoi_got = 0x603110
#ubuntu 14.04
View secuprim.py
#!/usr/bin/env python3
from libctf import *
import subprocess
process=subprocess.Popen(["./secuprim", "3l6f2tUN3Ix7k9TY4v0dLv",
"e6c2f738459e25670d3d46785f2e4496"], stdout=subprocess.PIPE)
print(process.stdout.read()[:4])
process.kill()
View keybase.md

Keybase proof

I hereby claim:

  • I am arisada on github.
  • I am aris (https://keybase.io/aris) on keybase.
  • I have a public key ASBt7AuYECwQQNI2SRMk2FGvjjhwJS7cryM8OkrVpoZ2rQo

To claim this, I am signing this object:

View maketuple.py
#!/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
arisada / poisonivy.py
Created Sep 27, 2015
Code for the poison ivy challenge, TMCTF2015
View poisonivy.py
#!/usr/bin/env python
#https://github.com/aris_ada/libctf
from libctf import *
import camellia
from struct import unpack
#https://github.com/MITRECND/chopshop/blob/master/ext_libs/lznt1.py
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(){
You can’t perform that action at this time.