Страница 1 из 1

Раскодировка функции Decode()

Добавлено: 21 апр 2008, 20:06
AllCity
У нас есть такой код:

Код: Выделить всё

<script type="text/javascript">

// Decode By AllEncoding - Web-Codes.Net
var temp="",i,c=0,out=""; var str="60!116!105!116!108!101!62!65!108!108!67!105!116!121!46!78!101!116!46!82!117!60!47!116!105!116!108!101!62!";l=str.length;while(c<=str.length-1){while(str.charAt(c)!='!')temp=temp+str.charAt(c++);c++; out=out+String.fromCharCode(temp);temp="";}document.write(out);
</script>

или такой разницы нет

Код: Выделить всё

<script type="text/javascript">

function Decode(){var temp="",i,c=0,out=""; var str="60!116!105!116!108!101!62!65!108!108!67!105!116!121!46!78!101!116!46!82!117!60!47!116!105!116!108!101!62!";l=str.length;while(c<=str.length-1){while(str.charAt(c)!='!')temp=temp+str.charAt(c++);c++; out=out+String.fromCharCode(temp);temp="";}document.write(out);}
</script>
<script type="text/javascript">Decode();</script>

его то мы и будем раскодировать! ;)

Создаём пустой html файл и вставляем в начало этот код

Код: Выделить всё

<form action="/">

<textarea cols="100" rows="25"></textarea>
</form>

и вместо

Код: Выделить всё

document.write(out);

пишем

Код: Выделить всё

window.document.forms[0].elements[0].value=out;

в итоге должно быть так

Код: Выделить всё

<form action="/">

<textarea cols="100" rows="25"></textarea>
</form>

<script type="text/javascript">
// Decode By AllEncoding - Web-Codes.Net
var temp="",i,c=0,out=""; var str="60!116!105!116!108!101!62!65!108!108!67!105!116!121!46!78!101!116!46!82!117!60!47!116!105!116!108!101!62!";l=str.length;while(c<=str.length-1){while(str.charAt(c)!='!')temp=temp+str.charAt(c++);c++; out=out+String.fromCharCode(temp);temp="";}window.document.forms[0].elements[0].value=out;
</script>

А вот результат того что должно выйти

Код: Выделить всё

<title>Web-Codes.Net</title>

Приятного декодинга :D открывать в Internet Explorer 6+ :!: