Log in

View Full Version : keyfile generation in RaidenFTPD v2.2 build 688?


pReJkEr
February 8th, 2002, 18:38
fetch the prog at: raidenftpd.com/en/

here is what i've found out:
1. the prog needs raidenftpd.key (32 bytes) and raidenftpd.sig (256 bytes)
2. it creates a md5 hash from raidenftpd.key and compares it with
a build-in hash table - here it knows if the keyfile has expired or if
it's valid
3. if it's not valid the prog jumps to the next keyfile check
4. if valid then it decrypts raidenftpd.key with raidenftpd.sig witch is a sha-256 hash i think
- here it gets name, email from keyfile and checks if it's a one computer keyfile (if so it compares
the computer network name with retrieved name from keyfile and if they are not equal - msgbox & quit)
5. set window caption to registered
6. jump to next keyfile check
7. when the prog is starting it checks the keyfile 4 times (i guess so - don't remember)

here are some interesting RVA's: 476E6B, 4666AC, 4637C0, 4638A6, 4757CC - few instructions bellow is a call, this is the first keyfile check,
477ED3, 468387, 4685B1, 46868A, 462AB2, 476256,
477656 here it checks crc - 472D9D, i don't need it because i've made a loader

i've patched those RVA's but 2 hours later it checks something again and it switches to unregistered mode again.. i can't find this check

i dont have a clue on cryptography so i'm asking here for help...
if someone could help me out here with this last check or with generating a valid keyfile it would be great :-)

sorry for my bad english