Last active
January 27, 2016 23:21
-
-
Save JavaScript-Packer/f81563afc2df1f54a340 to your computer and use it in GitHub Desktop.
Creates JS file on server side, encodes it as different file and then decodes it afterwards as separate file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% | |
dim pathz | |
pathz = replace(Server.MapPath(Request.ServerVariables("PATH_INFO")), "encrypt-decrypt-JS-JSE.asp", "") | |
dim faith, holy | |
set faith=Server.CreateObject("Scripting.FileSystemObject") | |
on error resume next | |
set holy=faith.CreateTextFile(pathz & "tester.js") | |
on error resume next | |
holy.WriteLine("window.location.href='http://www.holybiblesearch.net';") | |
on error resume next | |
holy.close | |
on error resume next | |
set holy=nothing | |
set faith=nothing | |
set wshells = CreateObject("WScript.Shell") | |
wshells.run pathz & "\screnc.exe "&pathz&"\tester.js "&pathz&"\testers.jse" | |
set wshells = nothing | |
set wshells = CreateObject("WScript.Shell") | |
wshells.run pathz & "\decode.vbs "&pathz&"\testers.jse" | |
set wshells = nothing | |
%> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
decode.vbs