Exetools  

Go Back   Exetools > General > Source Code

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 05-11-2026, 05:49
TeRcO TeRcO is offline
Friend
 
Join Date: Sep 2022
Posts: 18
Rept. Given: 0
Rept. Rcvd 13 Times in 7 Posts
Thanks Given: 8
Thanks Rcvd at 77 Times in 15 Posts
TeRcO Reputation: 13
Fixed

Quote:
Originally Posted by Storm Shadow View Post
Maybe it is just me , but looks like it only calculate v1 to v6 so no matter what input you get same results ?
Fixed one:

Quote:

# By: terco _ AT4RE

# provides conversion between Python values and C-style binary data
import struct

# read user input and convert it to bytes
s = input("Enter a string: ").encode()

# create a 256-byte buffer filled with 'e' (0x65)
buf = bytearray(b'e' * 256)

# copy the input string into the buffer
buf[:len(s)] = s

# add null terminator
buf[len(s)] = 0

# read first 16 bytes as 4 little-endian 32-bit integers (DWORDs)
d0, d1, d2, d3 = struct.unpack("<4I", buf[:16])

# apply XOR
r1 = (d0 ^ 0x3617E418) ^ (d1 ^ 0xA935FC2E)
r2 = (d2 ^ 0x57D872B9) ^ (d3 ^ 0x493DB437)

# print Serial
print(f"{r1:08X}{r2:08X}")
Reply With Quote
The Following 2 Users Say Thank You to TeRcO For This Useful Post:
MarcElBichon (05-11-2026), yoza (05-16-2026)
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IDA 8.3 and Python 3.12 TQN General Discussion 11 07-05-2024 01:47
x64dbg python Storm Shadow Developer Section 6 08-04-2017 15:29


All times are GMT +8. The time now is 01:36.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( Since 1998 )