amfPHP/AS3 - Read database of object

298 views Asked by At

As title said, i've a database in .txt that i want to read. I don't know how it's made and what is read inside, i just want to read it and print it with a readable text. The db is read by a flash android application (I've decomipled the .SWF file and the DB is read through the 'readObject' method).

So i've downloaded the amfPHP library and i've looked for a solution.

I've tried with this:

require_once( 'amfphp/core/amf/app/Gateway.php');
require_once( AMFPHP_BASE . 'amf/io/AMFSerializer.php');
require_once( AMFPHP_BASE . 'amf/io/AMFDeserializer.php');

$amf = new AMFObject(file_get_contents('DB.txt'));
$deserializer = new AMFDeserializer($amf->rawData);
$deserializer->deserialize($amf);    

echo $deserializer->outBuffer;

But i get this "warning":

Notice: Malformed AMF message, connection may have dropped in /home/mydir/public_html/amfphp/core/amf/io/AMFBaseDeserializer.php on line 210

Is this the right way to proceed? Or how can i read this database?

Thank you all in advance

0

There are 0 answers