1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Smart people only

Discussion in 'BlackHat Lounge' started by BHidiot, Sep 24, 2010.

  1. BHidiot

    BHidiot Registered Member

    Joined:
    Apr 3, 2009
    Messages:
    57
    Likes Received:
    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
     
  2. marquist

    marquist Newbie

    Joined:
    May 13, 2010
    Messages:
    15
    Likes Received:
    3
    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.
     
    • Thanks Thanks x 1
  3. servantus

    servantus Newbie

    Joined:
    Sep 19, 2010
    Messages:
    1
    Likes Received:
    0
    hi
    i am happy to join
     
  4. servantus

    servantus Newbie

    Joined:
    Sep 19, 2010
    Messages:
    1
    Likes Received:
    0
    add me as a member in this wing of forum
     
  5. thedorf

    thedorf Senior Member

    Joined:
    Oct 1, 2008
    Messages:
    1,193
    Likes Received:
    700
    Occupation:
    what? I gotta have a job?
    Location:
    BHW - Where else?
    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...
     
    • Thanks Thanks x 1
  6. shin610

    shin610 Regular Member

    Joined:
    Jun 23, 2010
    Messages:
    224
    Likes Received:
    89
    I'm dumb :V
    Posted via Mobile Device
     
  7. theone2003a

    theone2003a Registered Member

    Joined:
    Nov 22, 2008
    Messages:
    59
    Likes Received:
    12
    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
     
    • Thanks Thanks x 1
  8. MarketerMac

    MarketerMac Regular Member

    Joined:
    Oct 26, 2009
    Messages:
    247
    Likes Received:
    101
    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.
     
    • Thanks Thanks x 1
  9. dracony2

    dracony2 Regular Member

    Joined:
    Mar 5, 2010
    Messages:
    350
    Likes Received:
    321
    Location:
    Jupiter
    just make a hidden form, and usubmit it via link clicking (JS)
     
    • Thanks Thanks x 1
  10. BHidiot

    BHidiot Registered Member

    Joined:
    Apr 3, 2009
    Messages:
    57
    Likes Received:
    4
    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: Sep 24, 2010
  11. waterman262

    waterman262 Registered Member

    Joined:
    Jan 29, 2008
    Messages:
    97
    Likes Received:
    15
    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!
     
  12. BHidiot

    BHidiot Registered Member

    Joined:
    Apr 3, 2009
    Messages:
    57
    Likes Received:
    4
    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.