swf's
where are they?!
swf's Posted on: 03/27/2013 7:13pm
Quote Post
The Laziest Man on KongHack
alright, so ive been trying to figure out how i can load a local swf (file:///C:/folder/name.swf) instead of a kongregate swf so that i can play the local file on the page. theres a few reasons i think this would be cool.

firstly, say i like a game and will play it frequently for a long period of time. but i feel like playing it with aob's everytime and that can be a hassle. i could change the code, dump the swf (with the changed code) and then load that swf instead of the original and wouldnt have to touch CE ever again for that game.

or say i want to keep myself from playing a game, so everytime it tries to load that game, it loads something completely unrelated like rickroll.swf

my question is how do i go about doing this, since firefox stores cache in the most retarded way and ive never touched javascript in my life. i found this which would be great for it, if i knew how to change it to load file:///swf



RE: swf's Posted on: 03/27/2013 8:53pm
Quote Post
I think you need a local web server, says at 127.0.0.1, then replace the orginal swf url with something like http://127.0.0.1/hacked.swf, by using greasemonkey user script. user script can manipilate html content after it load but before display. A local web server is need because web page cannot directly access your local drive normally (except, like, you are uploading a file etc.)

EDIT:
Read the user script you post. If it work, you can modify this script, download the script, change @include to target kong page, and change src to you local web server hacked swf. Then load this user script to your broswer. May have a try :)
May not work if the swf is site locked, kong api may not work too.



No +karma or thanks post please,
we shall exchange appreciation via telepathy ;)
 

RE: swf's Posted on: 03/27/2013 9:02pm
Quote Post
lol theres this crazy program. its called "charles web debugging proxy" you can use the shit out of that.

im not sure the max filter length on wpe, probably 1300 something bytes. but if you can filter 20megabytes, you could use a wpe filter.
RE: swf's Posted on: 03/27/2013 9:14pm
Quote Post
A proxy keep the swf url the same, should be the perfect solution :)
I once thought about by using a proxy to replace a debuged version swf with a normal swf. There is some debuging software that allow you to add a debuger api onto a swf (not directly, need decompile, add imports and initializer api into the source code, then recompile to a debuged version) ... cannot remembered the software name... :)



No +karma or thanks post please,
we shall exchange appreciation via telepathy ;)
 

RE: swf's Posted on: 03/28/2013 2:48am
Quote Post
The Laziest Man on KongHack
haenawolf Posted on: 03/27/2013 15:14
A proxy keep the swf url the same, should be the perfect solution :)
I once thought about by using a proxy to replace a debuged version swf with a normal swf. There is some debuging software that allow you to add a debuger api onto a swf

or alternatively, i could just tell it to load my swf instead of the one that kong originally loads. no extra bullshit with packets or debugging processes. just a simple redirect is all thats needed.

i was going to try and modify the script i provided, but since i literally know nothing about JS it failed miserably.




RE: swf's Posted on: 03/28/2013 8:01am
Quote Post
lol hey look! Some asshole made a video to hold your hand throught the process of clicking like 2 buttons to get a "semi-permanent" solution. http://youtu.be/If8SVt10g7s

watch and be in awe.
RE: swf's Posted on: 03/28/2013 6:03pm
Quote Post
The Laziest Man on KongHack
fpx1 Posted on: 03/28/2013 02:01
Some asshole made a video to hold your hand throught the process of clicking like 2 buttons to get a "semi-permanent" solution.

awesome, thanks for the vid kadat. didnt know about the map local since i never heard of it until a week or two ago. works amazing.

also, i just love being talked to like i dont have a brain. /sarcasm. but i guess you have a right to since you ARE helping me >_>

anywho, it works great for most games and ill definitely be using this, but some developers hate me.
the game i really want to switch is grinns tale (i absolutely loathe this game, but i just cant help but play its awfulness) and its embedded into a div or iframe or some shit so you cant find the swf path. it lists the game id and thats about it.




RE: swf's Posted on: 03/28/2013 6:45pm
Quote Post
ok, I stop talking to avoid offending anyone here.



No +karma or thanks post please,
we shall exchange appreciation via telepathy ;)
 

RE: swf's Posted on: 03/28/2013 11:11pm
Quote Post
thenewcomer Posted on: 03/28/2013 12:03
fpx1 Posted on: 03/28/2013 02:01
Some asshole made a video to hold your hand throught the process of clicking like 2 buttons to get a "semi-permanent" solution.

awesome, thanks for the vid kadat. didnt know about the map local since i never heard of it until a week or two ago. works amazing.

also, i just love being talked to like i dont have a brain. /sarcasm. but i guess you have a right to since you ARE helping me >_>

anywho, it works great for most games and ill definitely be using this, but some developers hate me.
the game i really want to switch is grinns tale (i absolutely loathe this game, but i just cant help but play its awfulness) and its embedded into a div or iframe or some shit so you cant find the swf path. it lists the game id and thats about it.

Dont cry, its unbecoming. People only learn if its emotionally piquant.

Do I have to make another video to show you how to find the SWF file inside the iframe?
RE: swf's Posted on: 03/29/2013 2:52am
Quote Post
The Laziest Man on KongHack
fpx1 Posted on: 03/28/2013 17:11
Dont cry, its unbecoming. People only learn if its emotionally piquant.

Do I have to make another video to show you how to find the SWF file inside the iframe?
I dont have emotions on the internet, silly kadat =P. I just dont like being grouped with the rest of my mentally handicapped state.
And you dont have to make a video, but you could type it out. That'd be really cool. I mean, if you want to make a video, I won't stop you.



RE: swf's Posted on: 03/29/2013 11:51am
Quote Post
this is as far as i go. https://d1p9o0xehfuzdn.cloudfront.net/data/Static/swf/KongPreloader.swf
if you want to know how i got this url, rewatch that video i posted earlier. I mention briefly other methods. heres a clue. it starts with "ad" and ends with "block"

im under no illusions that this is the swf that you want to attack. but as the doorman, im sure he can show you the way.
RE: swf's Posted on: 04/02/2013 9:56pm
Quote Post
The Laziest Man on KongHack
ok so i figured it out. i cleared my cache while on a page (like google) and then started charles so it grabs everything. i then loaded the game i wanted and after it was loaded i stopped charles from grabbing more unneccesary crap. then i hit ctrl+f to search for anything that ends in ".swf" to see that it was loading a preloader and a main game swf. i then made a rewrite that changed the main swf being loaded to an swf that i wanted and it worked fine.

although during this i found some things out. for some games, what is dumped and what the browser loads can be completely different and you cant replace them with a normal swf. i followed a nexon game's main swf in my browser and saved the page as an swf. that swf was about 2or3 mb. when i dumped the EXACT SAME SWF that i saved earlier, the dump was about 4mb. so since the game is so picky, when i tried to load any swf, it would go derpmode. same thing with the dumped swf. but with the "save as" swf it loaded perfectly fine (the swf had to be hosted like haena suggested. i uploaded to megaswf) . so i thought it was encryption or something until kadat gave me a "your a complete dumbass" look and told me it was compressed. after that all i had to do was edit the game normally, use the swfdumper, compress the swf, upload it, rewrite charles so it directs the main swf to the edited and compressed version, and BOOM it loads the swf with the edited code.

unfortunately for the rewrite, you have to make it load the swf from another host. which means you upload it to a site, or use yourcomputer as a host somehow