Hide javascript from client? i think i've done it!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nelson Campos
    New Member
    • May 2011
    • 4

    Hide javascript from client? i think i've done it!

    Hello all,

    I belive i found a way to hide javascript from the client.. i use php.. page referral and sessions to restrict access, run the code and then run a fake code to clean the script file.

    I've already done some tests and didn't found a way to view the javascript code.

    if anyone want's to give it a try, i made a testpage just for that purpose: http://prtg.eu/lockedscript/testpage/

    on the scriptfile i have a line that says:
    Code:
    // Here is the code you need to proof you where here --> ######
    if you can view the script, tell me that code and how did you found your way around the protection to view the script.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    that one?
    Code:
    /// ACCESS Granted http://prtg.eu/l// JavaScript Document
    // ########################################
    // # #################################### #
    // # # lockedscript 1.0 # #
    // # ######################################
    // # # Programer: Nelson Campos # #
    // # # Mail: thessnake@gmail.com # #
    // # # Website: www.prtg.eu # #
    // # ######################################
    // ########################################
    // Now if you can see this than you found a way around this lock..
    document.write('<br />');
    document.write('Can you find my script? i\'m around here somewhere!');
    document.write('<br />');
    // Here is the code you need to proof you where here --> 085609
    FireBug > Script > lockedscript.ph p

    Comment

    • Nelson Campos
      New Member
      • May 2011
      • 4

      #3
      any particular configuration on firebug? i have firebug too and it doesn't show the script..

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        probably a combination of previously inactivated Javascript, empty cache, first visit and luck.
        Last edited by Dormilich; May 26 '11, 02:01 PM.

        Comment

        • Nelson Campos
          New Member
          • May 2011
          • 4

          #5
          i found some problems in the session vars wich are not working has supposed.. for the moment any tests made on the website might not work.. when i correct that ill post here again ather implement better security

          Comment

          • Nelson Campos
            New Member
            • May 2011
            • 4

            #6
            new security setting have been implemented, including a bug that has been solved on IE..

            Dormilich: would you like to try and mimic that last shoot?

            everyone else can try access the javascript file and tell how and give the new proof code

            Comment

            • tomvertommen
              New Member
              • Jun 2011
              • 2

              #7
              Code:
              /// ACCESS Granted http://prtg.eu/l// JavaScript Document
              // ########################################
              // # #################################### #
              // # # lockedscript 1.0 # #
              // # ######################################
              // # # Programer: Nelson Campos # #
              // # # Mail: thessnake@gmail.com # #
              // # # Website: www.prtg.eu # #
              // # ######################################
              // ########################################
              // Now if you can see this than you found a way around this lock..
              document.write('<br />');
              document.write('Can you find my script? i\'m around here somewhere!');
              document.write('<br />');
              // Here is the code you need to proof you where here --> 0632609/2

              Comment

              Working...