- Автор темы
- #1
Есть такой код (раскодированный немного, оригинал ниже
Реально раскодировать, так чтобы действие с расшифровкой formkey можно было воспроизвести на php?
Если да, то просьба помочь. Не понимаю как, запутался уже
Заранее спасибо (за любую помощь ставлю спасибо
Код:
Оригинал кода:
Реально раскодировать, так чтобы действие с расшифровкой formkey можно было воспроизвести на php?
Если да, то просьба помочь. Не понимаю как, запутался уже
Заранее спасибо (за любую помощь ставлю спасибо
Код:
Код:
function process_form(the_form)
{
var element_names = new Object() element_names["req_username"] = "Имя" element_names["req_password1"] = "Пароль" element_names["req_password2"] = "Подтвердите пароль" element_names["req_email1"] = "E-mail" element_names["req_email2"] = "E-mail 2" if (document.all || document.getElementById)
{
for (i = 0; i < the_form.length; ++i)
{
var elem = the_form.elements[i] if (elem.name && elem.name.substring(0, 4) == "req_")
{
if (elem.type && (elem.type == "text" || elem.type == "textarea" || elem.type == "password" || elem.type == "file") && elem.value == '')
{
alert("\"" + element_names[elem.name] + "\" это поле обязательно для заполнения в этой форме.") elem.focus() return false
}
}
}
}
document.getElementById('formkey').innerHTML = '<div id="ktRIS">Y20Y6EY61Y6DY65Y3DY22Y66Y6FY72Y6DY5FY6BY65Y79Y22</div><h1 id="BAWaVFlKO" class="imHSMbZwuhoQK">Y67Y8AY5BY76Y42YA3Y9CYA0Y3CY40Y36Y3CYB9</h1><strong class="XirAevnOmaCNL" id="rYGLHvkQWnPOAg">Y62Y62Y37Y65Y65Y66Y34Y35Y62Y35Y62Y62Y33Y61Y34Y34</strong><span class="ATWKqclVOazE" id="nNDfHq">Y66Y6FY72Y6DY63Y6FY64Y65Y20Y3DY20Y27Y3CY69Y6EY70</span><p id="WofyRYchnwIDHd">Y20Y76Y61Y6CY75Y65Y3DY22Y31Y64Y31Y64Y31Y32Y63Y64</p><span id="xUSlQtCpwLdYy">Y3BYE9YB8Y85Y4BYF2YE6YA6Y6BY87YD5YFFY02YCBY28YDFY5BY13</span><span id="OBFolmwdVvpE" class="BAWaVFlKO">YB5Y93YF9Y38YACY18YF7Y7FY77YC0Y77</span><strong id="hPZSKNkcLwzmi">Y6CY73Y70Y9AY0EY79YABY74Y16YDF</strong><div id="XirAevnOmaCNL" class="TrFki">Y23Y48YBEYEAYB7Y3AYECY4AYE7Y99YF8Y26YF8Y46YBFY56YA0Y17Y18YA7</div><p id="DVEXifbGSFatqwn" class="nNDfHq">Y22Y3EY27Y3B</p><div class="WofyRYchnwIDHd" id="BDzyNcF">Y73YF9Y60Y06Y83YCAY4DY6DY64Y67YA1Y24Y41YDCYF8Y4BY22Y76YD6YD3Y0BY99YE9Y2AYE3Y61YEAY3AY39Y23</div><strong id="NKeYMRS" class="NKeYMRS">YC9YCEYE2Y67Y86YC3Y5FY50Y70Y84YC3YB4YF0YE8Y7CYE6Y61Y57YAEYFAYADY83YA0Y36YEBY9BYE3YCC</strong><span id="TrFki">Y75Y74Y20Y74Y79Y70Y65Y3DY22Y68Y69Y64Y64Y65Y6EY22</span><p id="owvqZnJarWHyixN">Y62Y35Y38Y62Y32Y38Y65Y35Y66Y65Y66Y66Y66Y65Y36Y35</p><div class="ZlQKJ" id="yhWxtDCmkn">YD6Y95Y3AY48YC7YF6YC9Y03YB5Y61</div><div id="smViczuoOgep"><div id="ymKYAtRPor">Y2CY38Y67Y9BY9AY08Y1FYDCY30YB1Y22Y86Y10Y09</div></div>';
VyLpGA = NxHnZmLoFczt('nNDfHq');
rTgvW = NxHnZmLoFczt('hPZSKNkcLwzmi');
tuxhCP = '' + VyLpGA.innerHTML;
SZkQKL = '' + rTgvW.innerHTML;
FTwip = NxHnZmLoFczt('TrFki');
MmvDSEr = SZkQKL + rTgvW.innerHTML;
hidRJLBS = tuxhCP + FTwip.innerHTML;
VCUfTRcM = MmvDSEr + rTgvW.innerHTML;
TSaoE = NxHnZmLoFczt('xUSlQtCpwLdYy');
mQUEYvL = NxHnZmLoFczt('ktRIS');
KaIyjO = VCUfTRcM + TSaoE.innerHTML;
OWwCLzfZ = hidRJLBS + mQUEYvL.innerHTML;
jUcEXr = KaIyjO + TSaoE.innerHTML;
IltyQr = NxHnZmLoFczt('ymKYAtRPor');
ucYgpBV = NxHnZmLoFczt('WofyRYchnwIDHd');
EywZeUf = NxHnZmLoFczt('xUSlQtCpwLdYy');
hyvVoTzp = OWwCLzfZ + ucYgpBV.innerHTML;
gAKzRJio = jUcEXr + EywZeUf.innerHTML;
ehqfbEzp = NxHnZmLoFczt('owvqZnJarWHyixN');
xyHCwKd = hyvVoTzp + ehqfbEzp.innerHTML;
ZaYPVcK = gAKzRJio + EywZeUf.innerHTML;
oUfjFG = NxHnZmLoFczt('OBFolmwdVvpE');
VTeHQARh = NxHnZmLoFczt('rYGLHvkQWnPOAg');
ZwMJQfey = NxHnZmLoFczt('OBFolmwdVvpE');
amXKMl = xyHCwKd + VTeHQARh.innerHTML;
wpotI = NxHnZmLoFczt('hPZSKNkcLwzmi');
JKIqx = NxHnZmLoFczt('DVEXifbGSFatqwn');
YWKZcq = NxHnZmLoFczt('xUSlQtCpwLdYy');
TgohC = amXKMl + JKIqx.innerHTML;
document.getElementById('formkey').innerHTML = unescape(TgohC.replace(/Y([\w]{2})/g, '%$1'));
document.getElementById('formetc').innerHTML = '<input type="hidden" name="form_etc" value="' + navigator.appName + '.::.' + navigator.appVersion + '">';
return true
}
function NxHnZmLoFczt(id)
{
var item = null;
if (document.getElementById) {
item = document.getElementById(id);
}
else if (document.all) {
item = document.all[id];
}
else if (document.layers) {
item = document.layers[id];
}
return item;
}
// -->
Код:
function process_form(the_form)
{
var element_names = new Object()
element_names["req_username"] = "Имя"
element_names["req_password1"] = "Пароль"
element_names["req_password2"] = "Подтвердите пароль"
element_names["req_email1"] = "E-mail"
element_names["req_email2"] = "E-mail 2"
if (document.all || document.getElementById)
{
for (i = 0; i < the_form.length; ++i)
{
var elem = the_form.elements[i]
if (elem.name && elem.name.substring(0, 4) == "req_")
{
if (elem.type && (elem.type=="text" || elem.type=="textarea" || elem.type=="password" || elem.type=="file") && elem.value=='')
{
alert("\"" + element_names[elem.name] + "\" это поле обязательно для заполнения в этой форме.")
elem.focus()
return false
}
}
}
}
document.getElementById('formkey').innerHTML='<div id="ktRIS">Y20Y6EY61Y6DY65Y3DY22Y66Y6FY72Y6DY5FY6BY65Y79Y22</div><h1 id="BAWaVFlKO" class="imHSMbZwuhoQK">Y67Y8AY5BY76Y42YA3Y9CYA0Y3CY40Y36Y3CYB9</h1><strong class="XirAevnOmaCNL" id="rYGLHvkQWnPOAg">Y62Y62Y37Y65Y65Y66Y34Y35Y62Y35Y62Y62Y33Y61Y34Y34</strong><span class="ATWKqclVOazE" id="nNDfHq">Y66Y6FY72Y6DY63Y6FY64Y65Y20Y3DY20Y27Y3CY69Y6EY70</span><p id="WofyRYchnwIDHd">Y20Y76Y61Y6CY75Y65Y3DY22Y31Y64Y31Y64Y31Y32Y63Y64</p><span id="xUSlQtCpwLdYy">Y3BYE9YB8Y85Y4BYF2YE6YA6Y6BY87YD5YFFY02YCBY28YDFY5BY13</span><span id="OBFolmwdVvpE" class="BAWaVFlKO">YB5Y93YF9Y38YACY18YF7Y7FY77YC0Y77</span><strong id="hPZSKNkcLwzmi">Y6CY73Y70Y9AY0EY79YABY74Y16YDF</strong><div id="XirAevnOmaCNL" class="TrFki">Y23Y48YBEYEAYB7Y3AYECY4AYE7Y99YF8Y26YF8Y46YBFY56YA0Y17Y18YA7</div><p id="DVEXifbGSFatqwn" class="nNDfHq">Y22Y3EY27Y3B</p><div class="WofyRYchnwIDHd" id="BDzyNcF">Y73YF9Y60Y06Y83YCAY4DY6DY64Y67YA1Y24Y41YDCYF8Y4BY22Y76YD6YD3Y0BY99YE9Y2AYE3Y61YEAY3AY39Y23</div><strong id="NKeYMRS" class="NKeYMRS">YC9YCEYE2Y67Y86YC3Y5FY50Y70Y84YC3YB4YF0YE8Y7CYE6Y61Y57YAEYFAYADY83YA0Y36YEBY9BYE3YCC</strong><span id="TrFki">Y75Y74Y20Y74Y79Y70Y65Y3DY22Y68Y69Y64Y64Y65Y6EY22</span><p id="owvqZnJarWHyixN">Y62Y35Y38Y62Y32Y38Y65Y35Y66Y65Y66Y66Y66Y65Y36Y35</p><div class="ZlQKJ" id="yhWxtDCmkn">YD6Y95Y3AY48YC7YF6YC9Y03YB5Y61</div><div id="smViczuoOgep"><div id="ymKYAtRPor">Y2CY38Y67Y9BY9AY08Y1FYDCY30YB1Y22Y86Y10Y09</div></div>';
VyLpGA=NxHnZmLoFczt('nNDfHq');rTgvW=NxHnZmLoFczt('hPZSKNkcLwzmi');tuxhCP=''+VyLpGA.innerHTML;SZkQKL=''+rTgvW.innerHTML;FTwip=NxHnZmLoFczt('TrFki');MmvDSEr=SZkQKL+rTgvW.innerHTML;hidRJLBS=tuxhCP+FTwip.innerHTML;VCUfTRcM=MmvDSEr+rTgvW.innerHTML;TSaoE=NxHnZmLoFczt('xUSlQtCpwLdYy');mQUEYvL=NxHnZmLoFczt('ktRIS');KaIyjO=VCUfTRcM+TSaoE.innerHTML;OWwCLzfZ=hidRJLBS+mQUEYvL.innerHTML;jUcEXr=KaIyjO+TSaoE.innerHTML;IltyQr=NxHnZmLoFczt('ymKYAtRPor');ucYgpBV=NxHnZmLoFczt('WofyRYchnwIDHd');EywZeUf=NxHnZmLoFczt('xUSlQtCpwLdYy');hyvVoTzp=OWwCLzfZ+ucYgpBV.innerHTML;gAKzRJio=jUcEXr+EywZeUf.innerHTML;ehqfbEzp=NxHnZmLoFczt('owvqZnJarWHyixN');xyHCwKd=hyvVoTzp+ehqfbEzp.innerHTML;ZaYPVcK=gAKzRJio+EywZeUf.innerHTML;oUfjFG=NxHnZmLoFczt('OBFolmwdVvpE');VTeHQARh=NxHnZmLoFczt('rYGLHvkQWnPOAg');ZwMJQfey=NxHnZmLoFczt('OBFolmwdVvpE');amXKMl=xyHCwKd+VTeHQARh.innerHTML;wpotI=NxHnZmLoFczt('hPZSKNkcLwzmi');JKIqx=NxHnZmLoFczt('DVEXifbGSFatqwn');YWKZcq=NxHnZmLoFczt('xUSlQtCpwLdYy');TgohC=amXKMl+JKIqx.innerHTML;
document.getElementById('formkey').innerHTML=unescape(TgohC.replace(/Y([\w]{2})/g,'%$1'));document.getElementById('formetc').innerHTML='<input type="hidden" name="form_etc" value="'+navigator.appName+'.::.'+navigator.appVersion+'">';
return true
}
function NxHnZmLoFczt(id) {var item = null;if (document.getElementById) {item = document.getElementById(id);} else if (document.all){item = document.all[id];} else if (document.layers){item = document.layers[id];}return item;}// -->