Automatic forum login

Status
Not open for further replies.

Teensweb

New Member
Messages
352
Reaction score
1
Points
0
Can any one give me a script (php or js) that will automatically log me in to the x10hotsing forums, so that I can paste it in my admin page and it will enable me to log in without re entering my password and user name here
 

marshian

New Member
Messages
526
Reaction score
9
Points
0
If you stip all unimportant things off the loginform, you get this:
HTML:
<form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 0)">
<input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="User Name" onfocus="if (this.value == 'User Name') this.value = '';" />
<input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />
<input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" />
<input type="hidden" name="s" value="" />
<input type="hidden" name="securitytoken" value="1216653219-44a63b52d859dc5082b98b63f5288a7120565544" />
<input type="hidden" name="do" value="login" />		
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>

As you can see there is an input called "securitytoken" which has a random value. I'm guessing this will prevent you from automaticly loggin on...
You could try to fill in your username and password in the form and invoke submit() on it, but I'm guessing it won't be possible.
 

Teensweb

New Member
Messages
352
Reaction score
1
Points
0
I think you misunderstood me. I want an html code for a page, which when visited, automatically logs you in to this forum
 

marshian

New Member
Messages
526
Reaction score
9
Points
0
No I did understand you, but I'm saying you need a unique securitytoken to login...
 

TechAsh

Retired
Messages
5,853
Reaction score
7
Points
38
I've found this which may be half of what you are looking for:
http://www.vbulletin.org/forum/showthread.php?threadid=174073

Unfortunately you need to have a VB license to download it so you may need some help in getting it, and if it requires code modifications then it's no use. But it's worth a try, although I can't see the problem with visiting the Forums yourself.

If you do manage to get it and it works then you will need to edit it to work automatically.
 

Teensweb

New Member
Messages
352
Reaction score
1
Points
0
No need. I found it out. It works with this code but it's a bit risky so i am not using it
HTML:
<body onLoad="document.form1.submit();">
<form id="form1" action="http://forums.x10hosting.com/login.php?do=login" method="post" onLoad="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 0)" name="form1">
<input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="yourUsersname" onfocus="if (this.value == 'User Name') this.value = '';" />
<input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />
<input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" value=yourpass />
<input type="hidden" name="s" value="" />
<input type="hidden" name="securitytoken" value="1216653219-44a63b52d859dc5082b98b63f5288a7120565544" />
<input type="hidden" name="do" value="login" />        
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
<form method="POST" action="http://forums.x10hosting.com/login.php?do=login">
    <p><input type="submit" value="Submit" name="B1"></p>
</form>
 
Last edited:
Status
Not open for further replies.
Top