Skip to content

Instantly share code, notes, and snippets.

@Ludo6431
Ludo6431 / sub_203A0A4.c
Created July 1, 2011 15:37
REing an arm asm function...
#if 0
sub_203A0A4:
LDR R3, [R1,#4]
CMP R3, #0
LDRNE R2, [R1]
STRNE R2, [R3]
LDR R2, [R1]
CMP R2, #0
LDREQ R0, [R1,#4]
LDRNE R1, [R1,#4]
@Ludo6431
Ludo6431 / main.c
Created June 23, 2011 00:20
What makes including inline functions in headers impossible ?
#include <stdlib.h>
#include <stdio.h>
#include "test.h"
int main(int argc, char *argv[]) {
printf("inl_fun:%d\n", inl_fun(4));
printf("ninl_fun:%d\n", ninl_fun(4));
return 0;
@Ludo6431
Ludo6431 / main.c
Created June 4, 2011 13:07
exemple de définition de structure
#include <stdlib.h>
#include <stdio.h>
#include "pion.h"
int main(int argc, char *argv[]) {
Pion p;
pion_init(&p);
@Ludo6431
Ludo6431 / arm9.c
Created April 30, 2011 18:44
assert(0) shutdown DS
/*---------------------------------------------------------------------------------
Basic template code for starting a DS app
---------------------------------------------------------------------------------*/
#include <nds.h>
#include <stdio.h>
#include <assert.h>
//---------------------------------------------------------------------------------
@Ludo6431
Ludo6431 / dsisavpatch.diff
Created April 10, 2011 21:28
dsisavpatch little fix
diff --git a/exploits/dsisavpatch_py/dsisavpatch.py b/exploits/dsisavpatch_py/dsisavpatch.py
index 4ab6304..1a01bb9 100644
--- a/exploits/dsisavpatch_py/dsisavpatch.py
+++ b/exploits/dsisavpatch_py/dsisavpatch.py
@@ -108,13 +108,13 @@ if location[0:5] != 'http:':
end_of_redirect_host = location.find('/', 7)
redirect_host = location[7:end_of_redirect_host]
redirect_query = location[end_of_redirect_host:]
end_of_path = redirect_query.find('?')
redirect_path = redirect_query[0:end_of_path]