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

    Joined:
    May 1, 2009
    Messages:
    2
    Likes Received:
    0
    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

    Joined:
    May 26, 2009
    Messages:
    25
    Likes Received:
    35
    Something like this

    Code:
    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