>
> - charger un *.swf , extraire le bytecode

fait :)

en testant avec le "Framework_TestRunner.swf" généré par une compil
flex de maashaack

ca donne ca:
----------------------------------------------------------------------------------------
$ ./src/ASTUce.exe -s -l:Framework_TestRunner.swf system.AllTests
args: ["-s","-l:Framework_TestRunner.swf","system.AllTests"]
symbol:s, value:
symbol:l, value::Framework_TestRunner.swf
----------------------------------------------------------------
ASTUce: ActionScript Test Unit compact edition AS3 v0.9.0.122
Copyright © 2006-2009 Zwetan Kjukov, All right reserved.
Made in the EU.
----------------------------------------------------------------
options passed
selftest: true
showUsage: false
load: true
file: Framework_TestRunner.swf
classname: system.AllTests
found zipped *.swf
decompressed swf 227293 -> 648713
size [Rect 0 0 10000 7500]
frame rate 24
frame count 1
FileAttributes 4b 0%
77 (invalid) 458b 0%
EnableDebugger2 31b 0%
DebugID 16b 0%
ScriptLimits 4b 0%
SetBackgroundColor 3b 0%
ProductInfo 26b 0%
FrameLabel 21b 0%
DoABC2 648080b 99%

abc name frame1
SymbolClass 25b 0%
ShowFrame 0b 0%
End 0b 0%
magic 2e0010
"./src/Framework_TestRunner.swf" loaded in memory ...
[All ASTUce tests] #0
......................................
.................................
Time: 0h:0mn:0s:37ms

OK (71 tests)
----------------------------------------------------------------
[system.AllTests] #1
.....................................F
................E..........EE.........
.F..................F.................
......................................
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
EEEEEEEEEEE...........................
......................................
......................................
......................................
......................................
......................................
......................................
......................................
......................................
......................................
......................................
......................................
......................................
......................................
......................................
......................................
......................................
............
Time: 0h:0mn:0s:826ms
There were 52 errors :
   0) testInheritFrom( ClassInfoTest )
      ReferenceError: Error #1065: Variable samples::Basic2BasicClass
is not defined.
   1) testHasInterface( ClassInfoTest )
      ReferenceError: Error #1065: Variable samples::IBasicInterface1
is not defined.
   2) testSuperClass2( ClassInfoTest )
      ReferenceError: Error #1065: Variable framework::TestCase is not
defined.
   3) testSetCaseInsensitive( ArrayFilterTest )
      VerifyError: Error #1053: Illegal override of toString in
system.data.arrays.ArrayFilter.
   4) testIsDescending( ArrayFilterTest )
      TypeError: Error #1009: Cannot access a property or method of a
null object reference.
   5) testIsReturnIndexedArray( ArrayFilterTest )
      TypeError: Error #1009: Cannot access a property or method of a
null object reference.
   6) testSetNumeric( ArrayFilterTest )
      TypeError: Error #1009: Cannot access a property or method of a
null object reference.
   7) testUNIQUESORT( ArrayFilterTest )
      TypeError: Error #1009: Cannot access a property or method of a
null object reference.
   8) testSetReturnIndexedArray( ArrayFilterTest )
      TypeError: Error #1009: Cannot access a property or method of a
null object reference.
   9) testDESCENDING( ArrayFilterTest )
      TypeError: Error #1009: Cannot access a property or method of a
null object reference.
  10) testFilter( ArrayFilterTest )
      TypeError: Error #1009: Cannot access a property or method of a
null object reference.
  11) testIsNone( ArrayFilterTest )
      TypeError: Error #1009: Cannot access a property or method of a
null object reference.
  12) testCASEINSENSITIVE( ArrayFilterTest )
      TypeError: Error #1009: Cannot access a property or method of a
null object reference.
  13) testContains( ArrayFilterTest )
      TypeError: Error #1009: Cannot access a property or method of a
null object reference.
  14) testIsUniqueSort( ArrayFilterTest )
      TypeError: Error #1009: Cannot access a property or method of a
null object reference.
  15) testConstructor( ArrayFilterTest )
      TypeError: Error #1009: Cannot access a property or method of a
null object reference.
  16) testUseEvent( ArrayFilterTest )
      TypeError: Error #1009: Cannot access a property or method of a
null object reference.
  17) testIsCaseInsensitive( ArrayFilterTest )
      TypeError: Error #1009: Cannot access a property or method of a
null object reference.
  18) testSetDescending( ArrayFilterTest )
      TypeError: Error #1009: Cannot access a property or method of a
null object reference.
  19) testRETURNINDEXEDARRAY( ArrayFilterTest )
      TypeError: Error #1009: Cannot access a property or method of a
null object reference.
  20) testToString( ArrayFilterTest )
      TypeError: Error #1009: Cannot access a property or method of a
null object reference.
  21) testNotifyChange( ArrayFilterTest )
      TypeError: Error #1009: Cannot access a property or method of a
null object reference.
  22) testSetNone( ArrayFilterTest )
      TypeError: Error #1009: Cannot access a property or method of a
null object reference.
  23) testIsNumeric( ArrayFilterTest )
      TypeError: Error #1009: Cannot access a property or method of a
null object reference.
  24) testNUMERIC( ArrayFilterTest )
      TypeError: Error #1009: Cannot access a property or method of a
null object reference.
  25) testNONE( ArrayFilterTest )
      TypeError: Error #1009: Cannot access a property or method of a
null object reference.
  26) testToSource( ArrayFilterTest )
      TypeError: Error #1009: Cannot access a property or method of a
null object reference.
  27) testSetUniqueSort( ArrayFilterTest )
      TypeError: Error #1009: Cannot access a property or method of a
null object reference.
  28) testToString( ProxyArrayTest )
      VerifyError: Error #1053: Illegal override of nextName in
system.data.arrays.ProxyArray.
  29) testClear( ProxyArrayTest )
      VerifyError: Error #1053: Illegal override of nextName in
system.data.arrays.ProxyArray.
  30) testToSource( ProxyArrayTest )
      VerifyError: Error #1053: Illegal override of nextName in
system.data.arrays.ProxyArray.
  31) testIterator( ProxyArrayTest )
      VerifyError: Error #1053: Illegal override of nextName in
system.data.arrays.ProxyArray.
  32) testIsEmpty( ProxyArrayTest )
      VerifyError: Error #1053: Illegal override of nextName in
system.data.arrays.ProxyArray.
  33) testToArray( ProxyArrayTest )
      VerifyError: Error #1053: Illegal override of nextName in
system.data.arrays.ProxyArray.
  34) testProxy( ProxyArrayTest )
      VerifyError: Error #1053: Illegal override of nextName in
system.data.arrays.ProxyArray.
  35) testConstructor( ProxyArrayTest )
      VerifyError: Error #1053: Illegal override of nextName in
system.data.arrays.ProxyArray.
  36) testPush( TypedArrayTest )
      VerifyError: Error #1053: Illegal override of nextName in
system.data.arrays.ProxyArray.
  37) testConstructorType( TypedArrayTest )
      VerifyError: Error #1053: Illegal override of nextName in
system.data.arrays.ProxyArray.
  38) testConstructorInvalidValues( TypedArrayTest )
      VerifyError: Error #1053: Illegal override of nextName in
system.data.arrays.ProxyArray.
  39) testInherit( TypedArrayTest )
      VerifyError: Error #1053: Illegal override of nextName in
system.data.arrays.ProxyArray.
  40) testConcat( TypedArrayTest )
      VerifyError: Error #1053: Illegal override of nextName in
system.data.arrays.ProxyArray.
  41) testUnshift( TypedArrayTest )
      VerifyError: Error #1053: Illegal override of nextName in
system.data.arrays.ProxyArray.
  42) testType( TypedArrayTest )
      VerifyError: Error #1053: Illegal override of nextName in
system.data.arrays.ProxyArray.
  43) testToString( TypedArrayTest )
      VerifyError: Error #1053: Illegal override of nextName in
system.data.arrays.ProxyArray.
  44) testValidate( TypedArrayTest )
      VerifyError: Error #1053: Illegal override of nextName in
system.data.arrays.ProxyArray.
  45) testToSource( TypedArrayTest )
      VerifyError: Error #1053: Illegal override of nextName in
system.data.arrays.ProxyArray.
  46) testSupports( TypedArrayTest )
      VerifyError: Error #1053: Illegal override of nextName in
system.data.arrays.ProxyArray.
  47) testInterface( TypedArrayTest )
      TypeError: Error #1009: Cannot access a property or method of a
null object reference.
  48) testConstructorBasic( TypedArrayTest )
      TypeError: Error #1009: Cannot access a property or method of a
null object reference.
  49) testToArray( TypedArrayTest )
      VerifyError: Error #1053: Illegal override of nextName in
system.data.arrays.ProxyArray.
  50) testClone( TypedArrayTest )
      VerifyError: Error #1053: Illegal override of nextName in
system.data.arrays.ProxyArray.
  51) testConstructorValues( TypedArrayTest )
      VerifyError: Error #1053: Illegal override of nextName in
system.data.arrays.ProxyArray.
There were 3 failures :
   0) testFindClass( ReflectionTest )
      AssertionFailedError:
   1) testFunctionCall( DeserializeTest )
      AssertionFailedError: expected:<{}> but was:<255>
   2) testGlobalKeywords( DeserializeTest )
      AssertionFailedError: expected:<
{verbose:false,copyObjectByValue:false,security:true,compress:true,strictMode:true,arrayIndexAsBracket:false,undefineable:undefined,autoAddScopePath:false,authorized:
["Array.*","Boolean","Date","Error","Math.*","Number.*","Object","String","Infinity"],allowFunctionCall:true}
> but was:<{system:{serializers:{eden:{config:{}}}}}>

FAILURES!!!
Tests run: 848,  Failures: 3,  Errors: 52
----------------------------------------------------------------

----------------------------------------------------------------------------------------

bon oui il y a des erreures, il faut que je check si une compile qui
force l'inclusion
de toutes les classes permet de fixer ces "Cannot access a property or
method of a null object reference."
cela vient principalement de l'utilisation du namespace flash_proxy et
de p-e de qlqs classes internal

mais voila hehe ca marche

maintenant à voir si je rajoute le parsing de SWC :p

zwetan



--~--~---------~--~----~------------~-------~--~----~
Vous avez reçu ce message, car vous êtes abonné au groupe Groupe "FCNG" de 
Google Groupes.
 Pour transmettre des messages à ce groupe, envoyez un e-mail à 
l'adresse [email protected]
 Pour résilier votre abonnement à ce groupe, envoyez un e-mail à 
l'adresse [email protected]
 Pour afficher d'autres options, visitez ce groupe à l'adresse 
http://groups.google.com/group/FCNG?hl=fr
-~----------~----~----~----~------~----~------~--~---

Répondre à