Advertisement
estriole

&cypher_key.txt

Jul 7th, 2014
607
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 3.64 KB | None | 0 0
  1. ##################################################
  2. #                                                #
  3. #             CONFIGURATION                      #
  4. #                                                #
  5. ##################################################
  6.  
  7.  
  8. mykey = "7uLEgQijsUAk7rVb4umBPP8DER3Cpyd9PuSFulhf1PgiN3pW4uvC8bR4P2ujsNb"
  9.  
  10.  
  11. # how many times you want the script scramble your key.
  12.  
  13. scramble_times = 10
  14.  
  15.  
  16. # RECRYPT previously "written" files (assuming thief manage to write your
  17. # scripts to file successfully) #turn this on if you need extra security...
  18. auto_guard_write = false
  19.  
  20. # if you set auto_guard_write = true. make sure you place &cypher_key
  21. # ABOVE all other custom scripts that write to file (default scripts don't write so don't worry)
  22. # to make it sure... place script control and cypher_key below default scripts but
  23. # ABOVE all custom scripts... it's safer that way...
  24.  
  25. ##################################################
  26. #                                                #
  27. #         DO NOT TOUCH BELOW THIS                #
  28. #                                                #
  29. ##################################################
  30.  
  31. mykey = mykey.split(//) if mykey.is_a?(String)
  32. scramble_times.times do
  33. mykey = prepare_scramble_key(mykey)
  34. end
  35. recrypt_script(mykey)
  36. mykey = nil
  37.  
  38. tempscript = []
  39. for i in 0 ... $RGSS_SCRIPTS.size
  40. tempscript[i] = []
  41. tempscript[i][1] = $RGSS_SCRIPTS[i][1]
  42. tempscript[i][2] = $RGSS_SCRIPTS[i][2]
  43. tempscript[i][3] = $RGSS_SCRIPTS[i][3]
  44. $RGSS_SCRIPTS[i][1] = ""
  45. $RGSS_SCRIPTS[i][2] = ""
  46. $RGSS_SCRIPTS[i][3] = ""
  47. $RGSS_SCRIPTS[i] = []
  48. end
  49. $RGSS_SCRIPTS = tempscript
  50. tempscript = nil
  51.  
  52. module SceneManager
  53.   class << self
  54.     alias est_wipe_run_safety_net run
  55.   end
  56.   def self.run
  57.     $RGSS_SCRIPTS = []
  58.     begin
  59.     ESTRIOLE.send(:remove_const, :SCRIPT_CONTROL)
  60.     Object.send(:remove_const, :Cipher)
  61.     Object.send(:remove_method, :prepare_scramble_key)
  62.     Object.send(:remove_method, :add_entropy)
  63.     Object.send(:remove_method, :convert_scripts_to_rvdata)
  64.     Object.send(:remove_method, :decrypt_rvdata_to_scripts)
  65.     Object.send(:remove_method, :recrypt_script)
  66.     rescue
  67.     p 'Safenet Guarding...'
  68.     end
  69.     est_wipe_run_safety_net
  70.   end
  71. end
  72.  
  73. if auto_guard_write
  74.  
  75. ZCRYPTLEVEL = [
  76. "C'mon... use your brain it's still 6 security layer to go :P",
  77. "Nice... You got until this part... only a little more to go (5 layer)",
  78. "You know what... you're sure hardworker. only 4 Left",
  79. "Please stop from stealing my script will ya... 3 steps more and you've sinned...",
  80. "hope you never break my last 2 layer security here...",
  81. "arrghh.... only 1 more security left >.<. you're good.",
  82. "Can't believe you manage to open it... PM me please so i can improve this... press alt+F4 to retrieve your script",
  83. "Still not decrypted yet LOL... you failed... you're over more than 1 steps. think where you've gone wrong",
  84. ]
  85.  
  86. ZCRYPT_MODE = ["start","level 1","level 2","reverse","level 3","double","shuffle","Finalize"]
  87.  
  88. key = "this is the third protection to make sure you don't steal my scripts..."
  89. cipher = Cipher.new(key) if key
  90.  
  91. ObjectSpace.each_object(File).dup.each do |f|
  92. next if f.path == "Data/EST_CS2_SCRIPTS.rvdata2"
  93.   text = ""
  94.   ZCRYPT_MODE.each do |m|
  95.     case m;
  96.     when "reverse"; text += ZCRYPTLEVEL.reverse.join("\n")
  97.     when "shuffle"; text += ZCRYPTLEVEL.shuffle.join("\n")    
  98.     when "double"; ZCRYPTLEVEL+= ZCRYPTLEVEL; text += ZCRYPTLEVEL.shuffle.join("\n")    
  99.     else; text += ZCRYPTLEVEL.join(m)
  100.     end
  101.   end
  102.   text = cipher.encrypt text
  103.   destroy = File.new(f.path,"w") rescue nil
  104.   next unless destroy
  105.   destroy.write(text)
  106.   destroy.close
  107. end
  108.  
  109. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement