Skip to content

Instantly share code, notes, and snippets.

View eur0pa's full-sized avatar

europa eur0pa

View GitHub Profile
@eur0pa
eur0pa / eur0pa-dks_deathtoll.py
Last active October 7, 2022 14:00
Dark Souls Deaths Counter
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import struct
def main():
with open('DRAKS0005.sl2', 'rb') as fo:
fo.seek(0x2c0, 0)
for slot in range(0, 10):
fo.seek(0x100, 1)
@eur0pa
eur0pa / IsaacRandom.c
Last active August 29, 2015 14:19
C for IsaacRandom.asm
unsigned int __fastcall IsaacRandom(int a1, int a2)
{
int v2; // eax@1
signed int v3; // ecx@4
int v4; // eax@5
int v5; // eax@5
signed int v6; // ecx@7
int v7; // eax@8
unsigned int v8; // ecx@10
unsigned int v9; // ecx@10
@eur0pa
eur0pa / EdenRandom.asm
Last active August 29, 2015 14:19
Randomize Eden in place of The Lost in The Binding of Isaac: Rebirth
{ Game : isaac-ng.exe
Version:
Date : 2015-04-14
Author : europa
This randomizes Eden in place of The Lost
}
[ENABLE]
@eur0pa
eur0pa / IsaacRandomCharCount.asm
Created April 14, 2015 10:55
Count random character rolls
{ Game : isaac-ng.exe
Version:
Date : 2015-04-14
Author : europa
This script does blah blah blah
}
define(address,"isaac-ng.exe"+12B185)
define(bytes,F7 F6 DB 83 40 11 00 00)
@eur0pa
eur0pa / IsaacRandom.asm
Created May 7, 2015 08:07
ASM for IsaacRandom.c
isaac-ng.exe+AA940 - A1 B8834A00 - mov eax,[isaac-ng.exe+1F83B8]
isaac-ng.exe+AA945 - 3D 70020000 - cmp eax,00000270
isaac-ng.exe+AA94A - 0F8C D0000000 - jl isaac-ng.exe+AAA20
isaac-ng.exe+AA950 - 3D 71020000 - cmp eax,00000271
isaac-ng.exe+AA955 - 75 0A - jne isaac-ng.exe+AA961
isaac-ng.exe+AA957 - B8 71150000 - mov eax,00001571
isaac-ng.exe+AA95C - E8 9FFFFFFF - call isaac-ng.exe+AA900
isaac-ng.exe+AA961 - 33 C9 - xor ecx,ecx
isaac-ng.exe+AA963 - EB 0B - jmp isaac-ng.exe+AA970
isaac-ng.exe+AA965 - 8D A4 24 00000000 - lea esp,[esp+00000000]
@eur0pa
eur0pa / NTResize.ps1
Created July 9, 2015 15:28
Resize NT window
Add-Type @"
using System;
using System.Runtime.InteropServices;
public class Win32 {
[DllImport("user32.dll")]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool GetWindowRect(IntPtr hWnd, out RECT lpRect);
[DllImport("user32.dll")]
@eur0pa
eur0pa / CTF.php
Last active August 29, 2015 14:25
for ctf challenge from http://redd.it/3du30g
<?php
ini_set('display_errors',1);
ini_set('display_startup_errors',1);
error_reporting(-1);
$file = $_GET['x'].uniqid().uniqid();
echo "$file = ";
var_dump(file_exists($file));
if(preg_match('/php|http|\?/', $_GET['x']))
#!/usr/bin/python2
# -*- coding: utf-8 -*-
import sys
import re
import hashlib
import hmac
from base64 import b64encode
@eur0pa
eur0pa / mgsv_tpp_nuclear_disarmament_dump.lua
Created October 8, 2015 12:01
MGSV:TPP nuclear disarmament LUA scripts
-- -------------------------------------------------------------------------- --
-- in: TppDefine.lua
-- -------------------------------------------------------------------------- --
-- list of cutscenes available upon returning to mother base
-- ordered by priority
_.MB_FREEPLAY_DEMO_PRIORITY_LIST={
"GoToMotherBaseAfterQuietBattle", -- quiet's heli fight
"ArrivedMotherBaseAfterQuietBattle", -- quiet's arrival
@eur0pa
eur0pa / score.php
Created November 15, 2015 16:13
score.php
// insert detailed score rundown from cdata details
// same for everybody
$details = array();
$details_str = $score['details'];
// old versions still have 10 scores
// new patch goes up to 15
// first versions have none, so we have to pre-populate
// the array or the insert statement will fail
for ($i = 0; $i < 16; $i++) {