Skip to content

Commit

Permalink
Merge pull request #15 from zaddach/jonas/dataref_little_endian
Browse files Browse the repository at this point in the history
Changed data ref in GetFuncInputSurrogate to return true little endian data
  • Loading branch information
steven-hh-ding authored Mar 31, 2017
2 parents 816d2ce + 1f6fff9 commit 2cdfe51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Kam1n0WinSetupProject/bin_release/plugins/Kam1n0/IDAutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
import idautils
import os
import inspect
import binascii
import struct

ICON_SEARCH = "search"
ICON_SEARCHMULTI = "searchs"
Expand Down Expand Up @@ -177,7 +179,7 @@ def GetFuncInputSurrogate(func):
refdata = list(idautils.DataRefsFrom(head))
if(len(refdata)>0):
for ref in refdata:
dat[head] = format(idc.Qword(ref), 'x')[::-1]
dat[head] = binascii.hexlify(struct.pack("<Q", idc.Qword(ref)))

sblock['src'] = tlines

Expand Down

0 comments on commit 2cdfe51

Please sign in to comment.