hdarwin

decode

Aug 3rd, 2014
347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.68 KB | None | 0 0
  1. <html>
  2. <head>
  3. <script language="JavaScript" type="text/javascript">
  4. function ConvertShellCode(strdata)
  5. {
  6. var s = new String(strdata);
  7. s = s.replace(/[\s\\x]/g, '');
  8. var strcode = '';
  9.  
  10. for(var idx=0; idx<s.length; idx+=4)
  11. strcode += "%u" + s.substr(idx+2,2) + s.substr(idx+0,2);
  12.  
  13. document.forms.ShellToJavascript.decode.value = strcode;
  14. }
  15. </script>
  16. </head>
  17. <body>
  18. <form name="ShellToJavascript" method="post">
  19. <textarea rows="10" cols="100" name="encode"></textarea><br />
  20. <textarea rows="10" cols="100" name="decode"></textarea><br />
  21. <input type="button" value="Encode" onclick="return ConvertShellCode(document.ShellToJavascript.encode.value)" />
  22. </form>
  23. </body>
  24. </html>
Advertisement
Add Comment
Please, Sign In to add comment