An under development cli swf verification program based on github.com/flash-computer/libswftag
- Download the libswftag source code or clone the repository from the repo
git clone https://github.com/flash-computer/libswftag-
Make sure you have a version of make and a C compiler adhering to atleast c99 installed. The code is tested primarily with the GNU compiler collection (gcc) and GNU make, but other should work too
-
cd into the directory and run make and wait for the ALL DONE! message
cd libswftag
make-
Copy the
includeandlib(You can ignore thelib/optionalandlib/intermediatefolders, they are not important. folders inside to the include and lib directories of your machine. For linux, it's usually/usr/include/and/var/lib/. Further, we'll alias these as $INCLUDE and $LIB. -
Download or clone the swfcheck repo
git clone https://github.com/flash-computer/swfcheck- cd into the directory and compile with:
make- This will create an executable named
swfcheck(followed by an extension like .exe if your OS mandates that for executables) in the current directory. You can copy this somewhere onto your path and use it.
swfcheck -h- Follow all the steps upto 5, just replace the command in step 6 with:
cc swfcheck.c error.c /PATH/TO/LIBSWFTAG/src/*.c -Wall -std=c99 -pedantic -g -o swfcheckReplacing /PATH/TO/LIBSWFTAG/ with the actual path to the libswftag source directory.
- Use a debugger like the GNU debugger to debug the executable.
gdb --args ./swfcheck /PATH/TO/SWFCurrently the program only accepts one file as argument, that being the last file argument provided.