1. This website uses cookies to improve service and provide a tailored user experience. By using this site, you agree to this use. See our Cookie Policy.
    Dismiss Notice

Log into web page with random username and password.

Discussion in 'Visual Basic .NET' started by jondouglas, May 25, 2009.

  1. jondouglas

    jondouglas BANNED BANNED

    May 1, 2009
    Likes Received:
    I was wondering if it would be possible to login to a webpage using a random username and password from a txt file.

    For example the txt file would be like this

    username password
    username password
    username password
    username password
    username password

    Does anybody know how I would do something like that?

    Appreciate any help :) Thanks!
  2. OhaiBBQ

    OhaiBBQ Newbie

    May 26, 2009
    Likes Received:
    Something like this

    Textbox1.Text = UserList
    Dim Rnd as new Random()
    Dim RandomUser as integer = Rnd.next(Textbox1.Lines.Count)'Make sure textbox1 is multiline!
    Dim User as string = RandomUser.remove(RandomUser.indexof(" ") - 1, RandomUser.Length)
    Dim Password as string = RandomUser.Remove(0, RandomUser.indexof(" ") + 1)
    Then you would just use User and Password as the User Credentials

    Note: I wrote this off the top of my head you might need to change it a bit, but I doubt you will have to.
    • Thanks Thanks x 1