How to protect swf from hackers!!!

Hi, I have made many games is it any way that I can protect my swf from flash developers who want hack my game???..
First I was tried way load game swf's into preloader swf and call it by Iframe most flash developers just get only my preloader.swf unable to get game..
but now few did this... now i am searching way that to protect swf from flash dicompilors???

Flash runs on the 'client side', which makes it vulnerable. There are several ways to hack a Flash game - intercepting and modifying/faking communications with the server (ie, sending fake values to your 'highscores.php' or whatever, say using an app like Fiddler2), decompiling the .swf to see how it communicates with the server (and any encryption or obfuscation it might be using to try and protect communications), or even directly editing the memory being used by the game (ie, using CheatEngine to change your score directly, the speed of the game, etc). It's pretty hard to protect against all these, and usually takes more time and effort than the game is worth.
So the best rule is, expect your game to be hacked. Don't use it as a basis for giving away an expensive prize, for example (or at least, don't let it be obvious that the winner hacked the game or other players will get pissed off), unless all the logic happens on the server side.
But if you still want to try...
Let's say your game consists of three types of processes - Input (from the user), Logic (the app deciding what to do with the input), and Output (the result of the logic). Input and Output have to happen on the client side, or the user won't be able to interact with the game or see the results of their interactions - so these parts can never be fully secured, only validated as acceptable or not. However, the Logic (all or part) could be done on the server, where the user can't see it or modify it. The Flash game takes the user's input (maybe makes sure it's valid), and sends it to the server. The server checks that the input is valid, and if so performs the game logic, and sends the output back to the Flash game. If the input is NOT valid, perhaps silently keep that user (account ID or their IP address, for awhile) from adding to the high score list, or interacting with other players. Or boot them for 5 minutes, or something.
The main problem with this is (depending upon the type of game) lag in communicating with the server, and server load. If every little input/output has to go to the server, be processed, and then be sent back to the user, the game could run very slowly for the player; or if many people are playing at once, the server could crash. So you probably have to find ways to optimise this, and decide what should happen on the server, and what can safely happen on the client side (and be fairly well validated), etc.
Gambling-type and turn-based games are fairly easy to secure this way, though, since lag won't affect gameplay too much and there's not a lot of information going back and forth with the server. Say in a card game, the server tells the flash what cards to display for the user. The user can only choose which card to play - this choice is sent back to the server. The server calculates the results of the play, and the other players' moves, and then tells the flash what new cards/scores to display.
A real-time shooter, on the other hand? Even a game of Pong can be tricky. In those types of games, you could potentially send some data (user's x and y position, current health, ammo, score, framerate, etc) every now and then (maybe obfuscated, checksummed, compressed, via socket, etc) and the server can see if they should be 'possible' and decide whether to keep accepting input from the user, but that gets pretty tricky really quickly, and you'll probably get far more false-positives than catch actual hackers.

Similar Messages

  • Protect database from Hackers

    Hi,
    Can anyone tell me how can I protect my database from hackers.
    I have an application using oracle databse version 10g and above....till the latest version.
    One of my business competitor is hacking data from my clients.
    He dont have sys user password. I have restricted the database by not giving access for normal users to view tables.
    How he will be viewing the data? I am sure that he dont know the sys password.
    Can he export the dumb file and create a database from that so that he can view the data?
    How to restrict this? by implementing any kind of encryption?
    Someone please help
    Joe
    Edited by: 897600 on Nov 16, 2011 9:14 AM

    Joe, how do you know a competitor is obtaining database data? Do you know what kind of data the competitor has been obtaining? Do you know if the competitor has been getting the data directly from the database or via a client tool or from a customer of yours who is a cleint?
    What kind of client is in use? Is the application passwod embedded in a desktop client where it can be stolen?
    How tight is the object level security? That is, does every client log on as the object owner or using a username with application role controlled object privileges.
    Any possibility of using built-in auditing to help track the issue?
    Encryption will do you little good if the competitor has access to a username/password that has access to some of your applications since the application will have to decrypt the data for it to be used.
    Heck, a competitor can be a valid customer and/or supplier so you have to make sure the application itself only allows users access to their data and data of valid interest. Most security leaks are in the application and the way in which privileges are granted and the username/password used for access.
    The principal of least privilege is rarely applied consistently and across the board.
    Has the application been checked for SQL injection resistance?
    HTH -- Mark D Powell --
    chg ln 1 via to or via
    Edited by: Mark D Powell on Nov 16, 2011 9:27 AM

  • How to unload swf from anather swf

    I am calling 3 different swf in to test.swf.
    now i want to unload only 1 swf from test.swf
    can any 1 tell me how it is possible i am trying
    with removeMoviClip() and unloadMovie()
    but its of no use.
    regards
    Justbipin

    Maybe that's not really what you're doing?
    I would guess you rather have
    loadMovieNum("myFiLe.swf",99);
    This would be unloaded with
    unloadMovieNum(99);
    Good luck
    Wolf
    PS Or do you have a container movieClip called "99" to fool
    us all? :-)
    PPS watch your capitalization. If you call a file "myFiLe"
    (and mis-spell it somewhere) it might work on Windows, but not on
    Unix-derivatives. A potential source of "Why did it work when I
    tested it but not when I uploaded it?"

  • Need a way to protect SWF from decompilers (as they can extract the SWF from Android's APK)

    I'm working on an Android app that will be used in competitions, so protection from cheating is very important. I've noticed that Flash places the SWF file inside the APK file, which can be extracted as APK is just a ZIP file.
    Is there any way to protect the SWF from decompilers?

    What you mean under 'cheating'? Increase game money or scores? Or stole game?
    You can't protect if above is yes because if you can protect from decompilers - you can't protect from dissassemblers. I wokring on security in flash and I can hack any flash and I know that I'm saying.
    Let me know from what you want protect exactly?

  • Protect swf from cash

    I want to protect my swf from cash , means when we embed swf
    in web page it should not load in cash. because no one should copy
    it from Temporary Internet Files.

    > if its serevr side scripting , pls tell me that also.
    pls its very argent.
    sorry, cant help you with this one.
    I made one solution 3 years ago and it was working pretty
    well tho most of the
    users here did find ways to avoid it and in fact it seem like
    a challenge.
    After all, if you hiding, there must be something special in
    it. Only motivate people
    to prove your security is worth next to nothing.
    Secondly, different browser, security settings, all that
    crap, was just hard to
    keep that compatible and up to date all the time so I did
    bother to even try.
    Maybe someone else will be able to help you.
    sorry tay shk
    Regards
    Urami
    Happy New Year guys - all the best there is in the 2006 :)
    <urami>
    http://www.Flashfugitive.com
    </urami>
    <web junk free>
    http://www.firefox.com
    </web junk free>

  • How to compile swf from fla files and folders?

    Hey,
    I have decompiled a swf file and got a fla file and also all kind of folders including action scripts.
    How do I run this? I mean if I make some changes how do I convert it back to a swf file?
    I created a swf file from one fla file but I got a file that was like 20x less in size then the original. I think it was not using the files in the folders.
    Thanks!

    open the fla and publish.  if that doesn't work, you have errors in your decompile.

  • How to protect application from being run by 2 browser with same session ?

    Hi all,
    As we know, in Firefox, if we open two browser windows or tabs it will share same session. In IE, it does the same thing if we open two tabs in same window.
    The impact is user can open the application twice (or more) yet share the same session. This will result in unwanted behaviour in our application.
    (ADF Faces 10.1.3.3 + BC)
    Is there aniway for us to disable user from opening the same application in the second Tab (IE) or second Browser window (Firefox),
    eg :
    - to invalidate the session at all
    - or any other way ?
    Thank you for any help,
    xtanto

    Taken from the release notes:
    Ctrl+N support The application user may experience incorrect behavior if they use Ctrl+N to open a new window from their application, press the refresh button on their browser toolbar (i.e. F5), copy and paste a URL for an
    ADF Faces app fromone window to another, or use the ADF Faces dialog framework to open new browser windows. If these usecases are critical to you, please set the following context parameter in your web.xml file.
    We expect to support the Ctrl+N use cases by default in a future release.
    <context-param>
    <param-name>oracle.adf.view.rich.newWindowDetect.OPTIONS</param-name>
    <param-value>on</param-value>
    </context-param>Anyone knows how this works and what happens when the user actually presses CTRL-N while the detection is on?
    Sascha

  • How to protect SWF against decompiler?

    hi all, i'm new here..
    i want to ask question about swf protector against swf decompiler.
    i saw so many protector using obfuscator,encryption like that..
    i want to use FMS (flash media server) that will invoke callback function..
    i'm afraid using encryption,will not detect the name of the function
    my question is :
    is there any other solution except using obfuscator to handle decompiler?
    thanks before..

    The only foolproof means to protect your swf files is to not make them available to the public.

  • How to protect elements from line break in smartforms ??

    in a smartform we pass variables that contain spaces which we don't want to break in a line
    for instance
    hello my birthday is 27 april 2010
    27 april 2010 we absolutely don't want to break like
    hello my birthday is 27
    april 2010
    when I just add it in a text element I can use <31> to prevent breaking only when I pass the value
    27<31>april<31>2010 to a variable smartforms doesn't interpretet this correctly
    in sapscript you can define elements which can be set to protect so it keeps it together only in smartforms that is also not possible.
    is there a neat solution for this in smartforms ??
    kind regards
    arthur

    I have also looked at the parameters that can be passed but there is no parameter which keeps the variable together
    http://help.sap.com//saphelp_erp2005/helpdata/EN/1c/f40c64ddf311d3b574006094192fe3/frameset.htm
    with ZC it wil also break down half way the variable.
    If I click on the variable in the smartform I can't see where I can see the attributes ??
    and page protection is for an entire block and not for an individual variable in a sentence.
    like a text we have
         The Examination Board of the &GS_STUDY_EN-PROGTYPE& in
         &GS_STUDY_EN-NAME&, which is accredited on &GV_CONFER_ACCRED_DATE_EN&
         declares that
    so if the name off the study is to long the date has to be printed entirely on the next line but if the study name is short it has to be printed right after accredited on.
    kind regards
    Arthur
    Edited by: A. de Smidt on May 4, 2011 3:55 PM

  • How to stop swf from looping?

    I'm trying to construct an animated slide where five text
    captions appear in sequence, and I want to use an arrow animation
    between each one, so that Caption 1 appears, then an animated
    arrow, then Caption 2, and so on. However, I can't get the arrow
    animations to play just once - they keep looping, which makes the
    finished diagram look ridiculous. What am I missing?

    Hi Julie:
    Thanks for the "thanks". To put names on all of the Captivate
    "AdobeCommunityExperts", they are ... in no real order:
    Paul DewHurst > The bloke from Liverpool, England >
    think chimney sweeps and "chim chim cheri"
    . . . Paul is the most creative of us in my opinion. He
    speaks softly and seldom, so listen when he does. I'm proud to say
    that Paul and I are mates. We've never met but I doubt most of you
    have a friend as true.
    Steve Shipe > Reston, VA, USA > think politicians,
    payoffs, and pork-barrels
    . . . Steve is none of the above. He's a great guy, but he
    does happen to live in the shadow of the U.S. Capitol. Steve is the
    "peacemaker" of the bunch, and can often be found keeping me out of
    digital jail.
    Rick Stone > Kansas City, Mo., USA > think lonely and
    verbose
    . . .Ever been to the Midwest? Nobody lives there, so Rick
    is lonely and uses the forums to talk - all the time. Constantly.
    He won't shut up! He also won't quit until he finds the solution to
    your problem. You want Rick on your team - or at least I do! Rick
    is actually a RoboHelp expert, but he switched allegiances to
    Captivate when it appeared RoboHelp was heading to extinction.
    Captivate users - rejoice ... he's that good!
    Larry Walther > DeWitt, IA, USA > think old, ornery,
    and impatient with pretenders (who make me look highly intelligent
    by their ignorance).
    . . . I am easily swayed to the side of
    1) those who really do know, and share it instead of
    bragging about it, and
    2) those who don't know ... admit they don't know - and
    appreciate help when they get it.
    Note that these are just the names of those who hold an
    "official" designation from Adobe . . . there are others who know
    who they are. I won't name names because I'd miss someone, but I
    can tell you that Australia, Great Britain, and New Zealand hold a
    special place in my list of very helpful blokes, as well.

  • How safe is Tiger from hackers ?

    This may be pure coincidence but just two weeks after updating to Tiger, my wife has discovered that her bank account has been emptied. This was done using the three digit security code and card number. She has not lost her card, it is still in her purse and it has not been out of her possession -she uses it very little-no cash machine use. But last week she bought books via the internet from a well known bookseller and had to key in the card details to pay. Something could be amiss at the other end of this payment chain but is it possible that our computer has been compromised ? Can you tell if you have been hacked ?
    Thanks
    Brian

    You might like to do a firewall stealth check to put your mind at rest. Have a look at this site https://www.grc.com/x/ne.dll?bh0bkyd2

  • Protecting a swf from decompilation ?

    The problem is the following i have an application that needs
    to login to a server but in order to do that it has the admin
    username and password in its actionscript.There is no way of
    removing the password from the AS so i need a way to protect my
    file from decompilation. Most important of all i have seen it is
    possible , if you do not believe me try to decompile that ...
    http://www.gotoandlearn.com

    It's impossible to protect swf from decompilation, you can
    only try to
    obfuscate them with program like swfEncrypt.
    But you even need this to achieve what you want, I'm quite
    sure that
    you should have a asp or php script on the server that really
    do the
    login put username and password only into them, they are
    executed on
    the server and user do not download them.
    bye

  • How to protect your IP from skype resolvers!

    This is a guide on how to stop your Skype username resolved and your IP found.
    NOTE: This is for PC machines not for other devices (Unless you can locate to this area on your device, then do so and see if it works then great!), a side note if you have 2 devices logged into skype (I recommend only having one.) if you have to have 2 or you cannot change these settings for both devices then unfortunately they will be able to get the IP from the device that is not protected unless you sign out of the device that you cannot change the connection settings on.
    Follow these steps carefully.
    STEP 1- Tools > Options > Advanced > Connection
    On the top of the Skype application there should be headers, Skype, Contacts, Conversation, ect. Navigate to "Tools" and press, then go to "Options" after that locate to the "Advanced" header and find "Connection", press this and you will have settings ready to be changed.
    Images showing step 1.
    STEP 2- Read carefully.
    Follow these steps from the top of the settings to the bottom and you should do fine.
    1. "Use port [32535] for incoming connections." 
    2. Check "Use port 80 and 443 for additional incoming connections."
    3. Select "HTTPS" from the dropdown menu.
    4. Put the Host as [127.0.0.1] and the Port as [40031].
    5. Uncheck "Enable Proxy Authentication" if it is checked.
    6. Uncheck "Enable uPnP" if it is checked.
    7. Check "Allow direct connections to your contacts only."
    8. Then press "Save" in the bottom right corner.
    Images showing step 2. Check if yours looks the same.
    STEP 3- Finishing up step 1-3. Changing IP.
    Now that you have saved the editing of connection settings you should now sign out of your skype account, quit Skype and end any Skype.exe's running in the backround using Task Manager. If you do not have any knowledge on it, I recommend just restarting your PC machine for safer measures.
    When that is done this people most likley will still be able to get the IP address you have after changing them settings but if you change your IP address they will still have the old IP, not your new one. Now you are probably thinking "How do I change my IP then?", well Step 4.
    STEP 4- Changing your IP address.
    To change your IP there is two things you can do to my knowledge. To start CLICK HERE this will give you your IP address write or type that down somewhere so you can tell if your IP has changed later. First way to change your IP: Allot of ISP's (Internet Service Providers) these days will allow you to turn off your Networking Modem/Router (In Australia atleast.), for an extended duration of time (5-10+ minutes.) which would then change your IP this is called Dynamic. After doing this check back on the website or refresh the page and see if your IP has changed, if it has then you are done. You are safe from having your skype username resolved if your IP hasn't changed. follow the, Second way to change your IP: Simply call up support and ask them a way to change your IP address or look on online support, they will surely help guide you through and help you change it. Just tell them that people are DDOS'ing or are doing things with your IP online (explain what it is) or are going to and you want to protect yourself from it, that is if they ask why. If they do not allow you to change your IP then there is nothing I can do, unless you want to research another way on how to do it. One way or another most of the time there should be a way somewhere out there on how to change your IP just research on it. After your IP being changed you should be scott free if you have followed these steps correctly. To test use some Skyper resolving websites and use your own Skype username, if my guide has worked it shouldnt give a IP
    I really suck at English, sorry about how messy this is. I found out how to stop people from resolving my IP and I wanted other people to know about this really badly. If you find this guide not understandable please tell me, I can always make a youtube video and post it on this guide or edit it.
    You could also use a proxy to stop being resolved but it lowers your connection speeds for a gamer like myself this really affects me, that is why I posted this.
    Mod Edit: Edited post to comply with the Skype Community Guidelines and Skype Etiquette

    I apologies for the late reply, but if you read the whole thing your problem should be solved. If the person that is retrieving your I.P has gotten it before my steps, he then has your I.P, no matter if you stop anyone else from retrieving it, you need to change your I.P. I personally have a dynamic I.P so I can turn my router off to 5+ minutes and my I.P will change. This way when they then try to resolve my Skype, and try to retrieve my new I.P they are left blocked. There are also other ways to get your I.P, via streaming Skype calls he can get your I.P directly. You can always ring up your ISP (Internet Service Provider) and ask them for help on how to change your I.P address. You can also look around on the internet on how to set up a proxy, proxies pretty much defeat all the DDOS'ers that are wannabe hackers.

  • How to call one .SWF from another?

    How do I call one .SWF from another. I built a very beefy
    base .SWF, and want to add music overlay, and an intro slide show
    to the exsting Flash animation, but put it in a second .FLA/.SWF
    file. How do I call one from the other?
    This will be embedded in an HTML file but I assume this is
    superfluous to my question.
    F.Z.

    I think you should open that Another SWF (FLA),
    and add some actionscript..
    For example, you could create a movie clip, and write
    actionscript in the
    first keyframe:
    loadMovie("
    http://www.somewebpage.com/movie.swf",
    this);
    "FredZimmerman" <[email protected]> wrote in
    message
    news:ftnjas$mj5$[email protected]..
    > How do I call one .SWF from another. I built a very
    beefy base .SWF, and
    > want
    > to add music overlay, and an intro slide show to the
    exsting Flash
    > animation,
    > but put it in a second .FLA/.SWF file. How do I call one
    from the other?
    >
    > This will be embedded in an HTML file but I assume this
    is superfluous to
    > my
    > question.
    >
    > F.Z.
    >

  • Is there a way to place an encrypted document on the iPhone, a document that contains passwords and private information, really well protected from hackers?

    Is there a way to place an encrypted document on the iPhone, a document that contains passwords and private information, really well protected from hackers?
    Can such a document be exempted from the cloud feature, a feature that I use for the rest of my stuff?
    If so, how can I do this?

    Yeah, but 1Password charges for both the iPhone client AND the Mac/Windows client, and it ain't cheap! Plus, it only syncs via Dropbox, and where I work Dropbox is banned due to security concerns.
    Sure, there is Secure Notes, a free form entry part of 1Password, but a bug in the program will not let you view all the text you can put in the field!! You have to EDIT the text to see the whole list! What if you accidentally delete or change an entry while scrolling through your entries??
    Plus NONE of the programs I have tried, and I have tried a lot, can find text IN the file - do a search and it will tell you what file/folder the text is in, but YOU have to scroll down through 400 entries one at a time looking for the entry.
    I use a program called Secure Text - I have many admin passwords, and DO not need a field based program. Secure Text is totally freeform entry. However, it suffers from the same search issue.
    If someone knows of a secure text program that uses a file/folder type of layout, free form entry, AND can actually tell you where in the file/folder the text you searched for is, PLEASE let me know! Plus sycing via some method other than Dropbox would be a plus.
    Before I got my iPhone, I used a program called Tombo for my WinCE based system AND my Windows workstation, and the synced up fine without iTunes, internet, DropBox type functionality or any of that horsecoller stuff Apple likes to throw on your neck.

Maybe you are looking for