whitequark / furnace-swf

A rudimentary SWF reader for furnace-avm2.
MIT License
6 stars 2 forks source link

invalid signature (ArgumentError) - I'm new to Ruby. #3

Closed SamPCL closed 12 years ago

SamPCL commented 12 years ago

Hello,

I use a Mac Running 10.7.4 with Ruby 1.9.2. Upon executing a simple "furnace-swf -i test.swf abclist" as stated in the tutorial, I get the following errors:

/Users/sam/.rvm/gems/ruby-1.9.2-p320/gems/furnace-swf-0.0.2/lib/furnace-swf/swf/file.rb:23:in do_read': invalid signature (ArgumentError) from /Users/sam/.rvm/gems/ruby-1.9.2-p320/gems/bindata-1.4.4/lib/bindata/base.rb:163:inread' from /Users/sam/.rvm/gems/ruby-1.9.2-p320/gems/furnace-swf-0.0.2/bin/furnace-swf:63:in block in <top (required)>' from /Users/sam/.rvm/gems/ruby-1.9.2-p320/gems/furnace-swf-0.0.2/bin/furnace-swf:55:inopen' from /Users/sam/.rvm/gems/ruby-1.9.2-p320/gems/furnace-swf-0.0.2/bin/furnace-swf:55:in <top (required)>' from /Users/sam/.rvm/gems/ruby-1.9.2-p320/bin/furnace-swf:19:inload' from /Users/sam/.rvm/gems/ruby-1.9.2-p320/bin/furnace-swf:19:in <main>' from /Users/sam/.rvm/gems/ruby-1.9.2-p320/bin/ruby_noexec_wrapper:14:ineval' from /Users/sam/.rvm/gems/ruby-1.9.2-p320/bin/ruby_noexec_wrapper:14:in `

'

I feel as if I'm missing a Ruby dependency somewhere. Does anyone have a suggestion on what I can install to make this properly function?

SamPCL commented 12 years ago

Tried this on a fresh install of Ubuntu 11.04, same problem.

whitequark commented 12 years ago

It seems that your SWF file is, well, not an SWF file. Can you post some of the first bytes? It should begin with either "CWS" or "FWS".

SamPCL commented 12 years ago

This is a heavily encrypted SWF file and I was curious to see if it could be decrypted. Here are the first few lines:

CWS €Åx⁄å=\ï◊€Ô ÓsÈDQP0QJEiQP¶“%“ÿ≥≈Õ¿Óø]≥ù]≥f¢3ß≥svÃÑÔ=Á<opQflˆ€˜

SamPCL commented 12 years ago

It looks like it didn't copy. But I can assure you this is a SWF file.

whitequark commented 12 years ago

Yes, this seems to be a bug in Furnace-SWF. I'm investigating it.

SamPCL commented 12 years ago

Alright thank you. Please keep us updated!

whitequark commented 12 years ago

Fixed in beeb086869 and version 0.0.3.