here is the function from the source code
Code:
function dosubmit() { if (getObj("Frm_Username").value == "") { getObj("errmsg").innerHTML = "Username cannot be empty."; getObj("myLayer").style.visibility = "visible" ; return; } else { getObj("LoginId").disabled = true; getObj("Frm_Logintoken").value = "3"; document.fLogin.submit(); } }
i want to get the value of getObj(“Frm_Logintoken”) as i can’t pull the value from #Frm_Logintoken
using
Code:
document.getElementById("#Frm_Logintoken")
this gives me null
because Frm_Logintoken only gets it’s value when i click submit .
Code:
<input type="hidden" name="Frm_Logintoken" id="Frm_Logintoken" value="">
full page code
i found this online
Code:
/getObj("Frm_Logintoken").value = "(.*)";/g
but when i run it … it gives me the same line again ! it’s full code
another regular expression i found but don’t even know how to use it
Quote:Example of a regular expression to search: before_egrep=‘N1:getObj(“Frm_Logintoken”).value = “(\w+)”’
Here, N1 is assigned the value of the back reference - the expression in parentheses. \w + denotes the main compound characters, this is a synonym for “[_[:alnum:]]”. Once again - pay attention to the brackets - this is the back link. At the same time, there are also parentheses in the source code fragment - they need to be escaped
i am trying to make an auto login script that works in the background like it
doesn’t show the user the login form page but the only the page after it
and i have found this code online too but don’t know what’s about it contains xhr .
the line that Attracted my attention is
Code:
/getObj\("Frm_Logintoken"\).value = "(.*)";/g
when i run it … it gives me the line again !
some notes :
i have tried
Code:
document.getElementById("Frm_Logintoken").value
but it gives me empty “”
because
Quote:Frm_Logintoken only gets it’s value when i click submit .
the page will not even accept the correct password if the Frm_Logintoken token value isn’t the same as one in the page.
the Frm_Logintoken is a token generated by the page and it basically increment by one on each successful login.