Smart people only

BHidiot

Registered Member
Joined
Apr 3, 2009
Messages
57
Reaction score
4
How can create a script that can auto login my users?

for example if they are in website and they click on a link Blackhat world, it will open blackhat world login as myself.

thanks in advance
 
I've read this 4 times and don't understand what you want to do :)

If you want a link or button on your website that causes the user to log into another website with particular credentials, it's pretty tricky because forms in a page on one domain will not post to a URL under another domain (for security reasons). Similarly, you can only make an AJAX request to the domain from which the page containing the javascript was downloaded.
 
lol, I had to read this twice to make sure what he was asking!

When the user clicks the link you have to put a current cookie on the users computer that matches, in theory anyway, haven't really tested it...
 
Do as follow:

1- Retrieve username and password (from DB or some other source you have)
2- Echo (output) a form which autosubmits on page load with following settings:
Form Action: $url to action page of login function in other website

HTML:
<html>
<body onLoad="document.forms['sendparams'].submit();" >
<form name="sendparams" method="POST" action="$url_to_action_page" enctype="application/x-www-form-urlencoded" >
<input type="hidden" name="username" value="$username">
<input type="hidden" name="password" value="$password">
</form>
</body>
</html>

This basically works for your purpose so user clicks just a link and he is auto logged in other website
 
you can pass php variables in URLs, but each URL would have to be unique for what your asking to work...

and cookies are your answer, but at some point they'll need to populate that cookie with information (fill out a form, or you have to identify them by some other means). Then pull the info on the cookie via your scripting language of choice and pass it to how ever your logging them in. andd done.
 
I think dracony and theone2003a - got the solution.. I will work on it. Cookies I don't think that's what I am looking for. But thanks anyways for that too. So welcome to the Smart people club.

the rest, your application to the club has been declined. hahahahaaaaaaaaa you know who you are Useless fockers. LOL.
thanks for the Script : theone2003a.
 
Last edited:
lol bhidiot comes in here asking for help then makes fun of people who would have been willing to help if he clearly worded the question. Nice work champ!
 
if payback is a bitch then so are you. hahahhahaahaaa

why does dracony, theone2003a, marketermac, marquist get it. and take the time to try to understand and offer help? because they are good people not stuck up like you.
to help people in need you have to have it in you. You don't question yourself whether you should help or not.
You on the other hand likes an argument instead. If you got nothing to offer then just STFU.

jmho.
 
Back
Top