回复 7# 867258173
还原这样 再转其他编码 那就改代码- @if (0)==(0) echo off
- cscript -nologo -e:jscript %0
- pause&goto :EOF
- @end
- WScript.echo('请输入:')
- var str = WScript.StdIn.ReadLine()
- var stringToHex = {
- on : function (str) {
- var a = [], i = 0;
- for (; i < str.length ;) a[i] = '0x'+("00" + str.charCodeAt(i ++).toString(16)).slice(-4);
- return "" + a.join(" ");
- },
-
- un : function (str) {
- return unescape(str.replace(/\s?0x/g, "%u"));
- }
-
- };
-
- var s = stringToHex.on(str)
- WScript.echo('Hex: ' + s + '\r\n'+ '还原: ' + stringToHex.un(s))
- WScript.echo()
复制代码
|