Daniel Lerch's Home Page last update: 2010-03-02

My name is Daniel Lerch and I am member and founder of the OpenDomo Project, witch aims to produce a free and secure home automation system. Please, visit the website.

Here you can find some code samples which I usually write in my free time and may be useful for UNIX programmers and enthusiasts. All, in public domain.


Me, MrX, Jordi, Oriol and Isidro. 2009-12-20, La Canela (Barcelona).
The Opendomo Core Team. OpenDomo Meeting II.
Ohloh profile for dlerch

 Publications
- Blog.
- Ataque de factorización a RSA, hakin9 (n19).
- Criptografía de curva Elíptica, Ataque Rho de Pollard, hakin9.
- El proyecto OpenDomo (Sector Seguridad n60, año V, Julio-Agosto 2007)

 Cryptography:
Brute force attack: MD5
cracker_md5.c
Basic alpha-channel steganography
steg.c
Brute force attack: SHA1
cracker_sha1.c
Given p, q, exp and key modulus, gets a RSA private key.
get_priv_key.c
Brute force attack: Linux passwords.
cracker_linux.c

 Maths:
Distributed Factorization of Large Integeres: Uses the self-initializing quadratic sieve (SIQS) with single or double large prime support through the Jason Papadopoulos msieve library. In future versions, dfact will suport the General Number Field Sieve (GNFS).
dfact-hakin9.tar.gz
Kraitchik Factorization Method: Uses the GMP Library.
kraitchik.cpp
Fermat Factorization Method: Uses the GMP Library.
fermat.cpp
olve GF2 Matrix: Solve Matrices over GF2, a common task in factorization. Uses the NTL Library.
matrix_solve_GF2.cpp

 Networking:
Man-In-The-Middle attack using ARP poisoning (PoC).
arp-mitm.c
ICMP Server Shell
icmp-shell-server.c
ICMP Client Shell
icmp-shell-client.c

 RootKit:
Setuid() function hijacking. It gets root privileges calling setuid() with a predefined pid. Only works with 2.4 kernels.
hijacking_setuid.c
/proc filesystem backdoor. Only works with 2.6 Kernel.
backdoor_procfs.c

 System:
Serial port access (pin by pin).
serial.tar.gz