Skip to content

How to convert pushdouble in hex?

4 posts

RE: How to convert pushdouble in hex?

Posted Oct 9, 2013 8:14 am

I didn't read it properly the first time and wasted time looking for your answer, by the way PUSHdouble pushes a double from the cpool costant so there is no direct conversion to hex. You can either do two things, the easy solution: looking in the swf for other pushdoubles and use one already known; the tricky solution: use a script to get all the data from the double cpool.
v1.1: For doubles, in AVM2 I think you will need to use the constant pool and the pushdouble (2f) instruction, and in AVM0, there's a more flexible "_push" (96) statement that allows to push IEEE 754 floating point numbers without using the constant pool
v1.2:you can use this link for converstions between decimal floating point and IEEE 754 representations: http://babbage.cs.qc.cuny.edu/IEEE-754/Decimal.html

 

RE: How to convert pushdouble in hex?

Posted Oct 9, 2013 10:42 am

Try reading through this thread, hopefully it'll clear some things up for you. http://konghack.com/view_topic.php?t=2652&page=1

For easy number conversions (and AoB extraction), you should download kolonelkadat's Raw Data AoB Extractor. Then go to Tools > CE 4 Byte Tool. Type a number into the "4 byte" text box and all of the conversions will be done for you.

New to Kong Hack and want to learn the basics? Check out the [Kong Hack 101] and the [Hacking 101].
Wanna learn how we make the hacks? Start with getting [the tools], then check these out: [AoB tutorial] | [.sol guide] | [Unity3d tutorial] | kadat's [video tutorials]
And if you don't already have it, check out the [Kong Hack Ultra Trainer]. You'll be glad you did!