Harmless hack: trick the application into thinking the local file is actually coming from the server

I have a flash application (not written by me) that accesses a config file that is present on a http server. There are many settings in the config file that seem to affect its behavior.

I'm not interested in decompiling a SWF file or getting too deep into it.

Basically, I would like to try to change the behavior of the application by making it replace the modified version of the config file, not the one on the server. Is there a way to do this easily (maybe a firefox extension like firebug?).

Basically when the app asks for http://example.com/config.xml I want to get in the way of something and return ~ / myconfig.xml instead.

+2


source to share


3 answers


You can use a web filtering proxy like Proxomitron to do this for you. I haven't looked at it for a long time, but as I recall, it allows you to define the text-matching rules that it applied to http requests and responses. You should be able to use it to redirect that one request to a local file or to a file on the server you control.



+3


source


If it's just for debugging and detection purposes, I would change your host file so that the domain at the point of the HTTP request is on your own machine, and then you can put the changed configuration on your own system.



0


source


If you want http://server.com/path/to/config.xml load your own config.xml:

if you are running on Windows: Notepad c: \ windows \ system32 \ drivers \ etc \ hosts

in this file add: 127.0.0.1 server.com

This will make any program look for server.com on your computer. If the flash file is also on server.com, download it first and then change the hosts.

Install the webserver on your machine (apache) and put the config.xml in C: \ apache_install_dir \ HTDOCS \ path \ to \

0


source







All Articles