SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Addict
    Join Date
    Sep 2004
    Location
    Denver
    Posts
    385
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How easy is it to de-obfuscate?

    Greetings, I'm wondering if I obfuscate my javascript code with this javascript compressor/obfuscater http://dean.edwards.name/packer/ (or other similar tools) How easy is it for someone to de-obfuscate it? Thanks.

  2. #2
    SitePoint Evangelist gollux's Avatar
    Join Date
    Feb 2005
    Location
    Oregon, USA
    Posts
    414
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Goes pretty quickly, if they want it, they'll have it.
    Released under the Fiasco Labs Digital Damnation Copywright,
    it's yours to make whatever the 7734 you want with it.

    (c) 2005 Fiasco Labs All Wrongs Reserved

  3. #3
    SitePoint Addict
    Join Date
    Sep 2004
    Location
    Denver
    Posts
    385
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm sure they can, but my question is how hard or savvy do they need to be to find it? I mean.. are there simple tools that they can just use to do this in 2 seconds?

  4. #4
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,789
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    http://javascript.about.com/library/blformat.htm will add whitespace to nicely format the code and also colour codes the keywords etc. It doesn't change the variable names back to more meaningful values though.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  5. #5
    SitePoint Zealot the DtTvB's Avatar
    Join Date
    Jul 2006
    Location
    Thailand
    Posts
    162
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Easy. You can unpack a code on Firefox 2 with a one-line code.

    An example of a code unpacker.

  6. #6
    SitePoint Addict
    Join Date
    Sep 2004
    Location
    Denver
    Posts
    385
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the DtTvB, I was hopeing it would be a little bit harder than this
    I give my clients a link to a JS file that they can run on their web pages when they load and that JS code does some work to submit content to my web application. I hate to see my competitors just take my JS file and change the url of where the content gets submitted and start using it. do you have any suggestions for me to protect myself? How about if hash the information I collect from my customer's web page and unhash it on my serverside?

  7. #7
    SitePoint Zealot the DtTvB's Avatar
    Join Date
    Jul 2006
    Location
    Thailand
    Posts
    162
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The best way (I can think of) to do is license your work! Maybe here. I saw the packer is also in CC license.

    Another way is to use the server-side code.
    First, a client script sends an AJAX request (yeah, AJAX can't be done cross-site!) to a PHP/ASP script, which returns a key and set a cookie, then it creates a request to another script which checks the key and cookie. And returns the whole script. I used it on on of my sites.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •