[Tool Request]AS Version Determiner Request
Can anyone make a quick tool to check the ActionScript version of a SWF. I read it was like the first four bytes:
flash - How can the actionscript version of a swf file be determined in C#? - Stack Overflow
Also, if you know how, perhaps a tool to check if the swf file is encrypted (more like obfuscated, rename variables and all that, etc), but it's not really necessary at the moment, just need a version checker without manually looking at the code.
-----------------------
Nevermind, the swf version is in hexadecimal in the 4th byte. The actionscript version is in the file attributes tag. Yes, we know, but I think he wants it written in VB.
C# is pretty much the same as VB.
Yeah, I realised involves decompression and crap to determine the final AS version. Not sure how to convert that to VB.NET since alot of it is pseudo code and I don't know any C#.
Oh and here is the modified version:
[php]Dim ASVersion() as Byte
ASVersion = IO.File.ReadAllBytes("C:\test.swf")
Dim final as String
For i as Integer = 0 to 2
final = final & CharW(ASVersion(i))
Next
final = final & CStr(ASVersion(3))
MsgBox(final) [/php]
Returns CWS or FWS followed by the SWF version. At least its some kind of a start.
Nevermind, it's pretty complicated.
Posted in VB because it'd be easier to make an app then C#. And VB is more popular.
Well if you still need it, I'll see what I can do.
yeah I know, I talked to him, I may need to use some java but I should be able to pull it off in PHP. Just have to figure it out, though proficient, PHP is not one of my languages, I may write it in VB or C# and convert it the best I can with JSC and figure out where it breaks and fix it, unless you want to do the conversion, just use JSC , it's pretty accurate.