الفريق العربي للهندسة العكسية
keygenning4newbies Crackme 1 coded by the analyst [UCF/ID] - نسخة قابلة للطباعة

+- الفريق العربي للهندسة العكسية (https://www.at4re.net/f)
+-- قسم : ENGLISH FORUM (https://www.at4re.net/f/forum-6.html)
+--- قسم : Tutorials (https://www.at4re.net/f/forum-14.html)
+--- الموضوع : keygenning4newbies Crackme 1 coded by the analyst [UCF/ID] (/thread-4624.html)

الصفحات: 1 2


RE: keygenning4newbies Crackme 1 coded by the analyst [UCF/ID] - Stingered - 05-07-2025

Well done! Now if you would like to provide the code, pls do.


RE: keygenning4newbies Crackme 1 coded by the analyst [UCF/ID] - TeRcO - 05-07-2025

Python Src:
 
def generate_serial(name: str) -> str:
    if len(name) < 4:
        return "Need more characters!"
    if len(name) > 50:
        return "So many characters!"

    ebx = 0
    ecx = 0

    for i, ch in enumerate(name):
        ecx += 1
        ebx += ord(ch) ^ ecx

    eax = ord(name[-1]) ^ ecx
    eax *= 6
    ebx <<= 7
    eax += ebx

    return format(eax, 'X')


# Usage
if __name__ == '__main__':
    user_input = input("Enter name: ")
    serial = generate_serial(user_input)
    print(f"Serial: {serial}")