 |
|
|  |
|
 |
13³â Àü |
<html>
<head>
<title>xtx.kr</title>
<script>
msg = false;
dum = 1;
//-- dum Àº 1 ¿¡¼ 5 ±îÁö ÃëÇâ¿¡ ¸Â°Ô ¼±ÅÃÇϼ¼¿ä
//-- ÀÌ ¼ýÀÚ°¡ 0 ÀÌ¸é ¾ÏȣȰ¡ µÇÁö ¾Ê½À´Ï´Ù.
//-- 1¿¡¼ 5Á¤µµ°¡ Àû´çÇÕ´Ï´Ù..
function encode() {
myObj = document.myform.aaa;
str = escape(myObj.value);
end_num = str.length - 1;
encode_str = '';
befstr = '<html><head><title></title><sc'
+ 'ript>str2 = "'
aftstr = '";eh = "";for(k=0;k<str2.length;k++)'
+ '{eh+=String.fromCharCode(str2.charCodeAt(k) - ' + dum + ');}'
+ 'document.write(unescape(eh));</scr'
+ 'ipt><body></body></html>'
for(i=0;i<=end_num;i++) {
//if(str.charCodeAt(i)==9) i++;
key = 1*str.charCodeAt(i) + dum;
encode_str += String.fromCharCode(key);
}
document.myform.aaa.value = befstr + encode_str + aftstr;
}
function getstr(value) {
var cs = document.myform.aaa.value;
var str_num = cs.indexOf(value);
return str_num;
}
function decode() {
myObj = document.myform.aaa;
str = myObj.value;
//dum = 40000;
//-- À§¿¡ ´ýÀ̶û °°Àº ¼ýÀÚ·Î...^..^
decode_str = '';
str_start = getstr('str2 = "') + 'str2 = "'.length;
str_end = getstr('";eh');
for(i=str_start;i<str_end;i++) {
key = 1*str.charCodeAt(i) - dum;
decode_str += String.fromCharCode(key);
}
document.myform.aaa.value = unescape(decode_str);
}
function view_source() {
abab = prompt('ÆäÀÌÁöÀÇ ÁÖ¼Ò¸¦ ½á ³ÖÀ¸¼¼¿ä','http://');
window.location = 'view-source:' + abab;
}
</script>
</head>
<body bgcolor=#aaaaaa>
<form name=myform>
<table border=1>
<tr><td>
<textarea name=aaa ROWS=15 COLS=50></textarea>
</td>
</tr>
<tr>
<td align=center>
<input type=button name=ccc value='ÀÎÄÚµù' onclick='encode();'>
<input type=button value='µðÄÚµù' onclick='decode();'>
<input type=reset name=ddd value='´Ù½Ã'>
<input type=button value='¼Ò½ººÒ·¯¿À±â' onclick='view_source();'>
</td></tr>
</table>
</form>
</body>
</html>
|
|
̵̧ : 551 |
̵̧
¸ñ·Ï
|
|
|  |
|