![]() |
|
|
|
#1
|
||||
|
||||
|
Quote:
Code:
def byteorder_ToLittleEndian(m):
return int(binascii.b2a_hex(struct.pack("
no matter how i mod it -------Serial--------- 9F2218371EE5C68E and that dont work! that dont work, maybe you can post the good code Code:
import string
import os
import struct
import binascii
#global variables
name = ""
#sub function
def create_name_table():
os.system('cls')
print u"input your name :"
global name
name = raw_input()
return (binascii.hexlify(name) + "02" + "65656565656565656565656565656565")[0:32]
def split_DWORD(s,x):
length = len(s)
return [s[i:i+8] for i in range(0, length, 8)][x]
def byteorder_ToLittleEndian(m):
return int(binascii.b2a_hex(struct.pack("b", (1*8))))
def xor(s,v):
return (int(s) ^ int(v)).upper()
#main function
mystr = create_name_table()
print mystr
print "-------Serial---------"
v1 = byteorder_ToLittleEndian(split_DWORD(mystr,0)) ^ 0x3617E419
v2 = byteorder_ToLittleEndian(split_DWORD(mystr,1)) ^ 0xA935FC2E
v3 = byteorder_ToLittleEndian(split_DWORD(mystr,2)) ^ 0x57D872B9
v4 = byteorder_ToLittleEndian(split_DWORD(mystr,3)) ^ 0x493DB437
v5 = v1 ^ v2
v6 = v3 ^ v4
print format(v5,'x').upper() + format(v6,'x').upper()
__________________
The devil whispered in my ear, "you're not strong enough to withstand the storm." Today I whispered in the devils ear, "I am the storm." Last edited by Storm Shadow; 11-02-2016 at 02:48. |
| The Following User Gave Reputation+1 to Storm Shadow For This Useful Post: | ||
yoza (05-16-2026) | ||
|
#2
|
|||
|
|||
|
@Storm Shadow
Thanks in your advice. this code is fixed. Code:
def byteorder_ToLittleEndian(m):
return int(binascii.b2a_hex(struct.pack("L" , int(m,16))),16)
|
| The Following 3 Users Say Thank You to g0em0n For This Useful Post: | ||
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |