Guest User

simple hack waterlollies.swf

a guest
Apr 20th, 2015
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.36 KB | None | 0 0
  1. >>19474
  2. First off you need two programs.
  3.  
  4. A decompiler to see whats on the inside of a flash like the shapes, sounds, and importantly the code. I use a cracked sothink SWF decompiler. The trial version should give you enough to at least look inside the flash.
  5.  
  6. And a program to edit them. Flashbulb is nice as it lets you actually find where things are defined and created in the flash and you can just delete or replace them and it should leave everything else untouched. Flashbulb seems to have a somewhat limited ability to edit the code though. Honestly if you have a program that can compile .fla files into SWF, you could just stick with a decompiler and remake the flash how you want it, but you risk messing up certain things like positions and such (this is why most zone flash edits are pretty shitty. Decompiling and recompiling a flash may have adverse effects on stuff).
  7.  
  8. How I managed to crack this flash
  9. 1. Use swf decompiler to open up the flash. In the export window on the right side, you can expand the flash and see the different things inside it like shapes and sounds. What you want is in the action tab.
  10. 2. open the action tab. There is a bunch of files in here with different kinds of coding. What we want is the main timeline file that should contain what the flash will initially start using. Open the next folder 'waterlollies_NG_fla'.
  11. 3. click on 'MainTimeLine'. You should see a bunch of code in the center of the screen.
  12. 4. Look for a URL address. Since this flash is set to only play on newgrounds, the flash is somehow checking where it is being played. In the case of this flash, go towards the bottom..
  13. 5. Examine the code here:
  14.  
  15.  
  16. function frame302()
  17. {
  18. stop();
  19.  
  20. if (loaderInfo.url.indexOf("http://uploads.ungrounded.net") < 0)
  21.  
  22. gotoAndStop(4);
  23. }
  24. else
  25. {
  26. play();
  27. }
  28. return;
  29. }
  30.  
  31. here I will try to break down what is happening.
  32.  
  33.  
  34. //this first line defines the function. Its name suggests this is checked on frame 302
  35. function frame302()
  36. {
  37. stop();//This stops the flash animation from playing
  38.  
  39. //This is an if statement. If statements check a statement to see if it is true or not. In this case, It is checking the URL of the flash to see if it loaded from this website.
  40. if (loaderInfo.url.indexOf("http://uploads.ungrounded.net") < 0)
  41. {//If the ifstatement is true in that it isn't being played on the site, then go 4 frames back and stop.
  42. gotoAndStop(4);
  43. }
  44. else
  45. {//if the flash is being played on that webpage, continue playing the animation.
  46. play();
  47. }
  48. return;
  49. }// end function
  50.  
  51. I should note that not all flash will use this sort of technique to stop people from playing their flash. They could have multiple checks or hide flash assets inside another flash.
  52.  
  53. 6. Alright so we found out how this flash is stopping the user from illegally viewing this flash on another website. Now we need to somehow edit this code to bypass it. One could decompile the flash and recompile it without that line of code, or you could try replacing that URL with a different one.
  54.  
  55. 7. Now open flashbulb and open the flash in that. . It might take a moment to load up, what with being a pretty large flash file and all.
  56. 8. Now It was kinda luck how I found this. In the first few lines you should see something called "DoABC" left click that.
  57. 9. To the right of that, there should be a few buttons, a green triangle pointing to the right. being one of them. Hovering over the buttion it should say "edit tag". Click this button.
  58. 10. You should see a bunch of random words. Scroll towards the bottom and lo and behold the URL to the flashwebsite we saw earlier is here.
  59. 11. Replace that URL with something else like file:// would make it so it only plays locally on a computer and not from a website. I chose .swf since that means as long as that is in the URL it should play regardless.
  60. 12. Under the edit tag button, there should be a green triangle pointing to the left. It should say "overwrite tag". Click this. A popup might appear saying something about editing this file could cause problems. Just hit ok or whatever.
  61. 13. go to file and save or save as..
  62. 14. Now test the flash. It should just play normally now.
Advertisement
Add Comment
Please, Sign In to add comment