Results 1 to 4 of 4

Thread: Extracting user&pass from richtextbox1

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2012
    Posts
    3

    Extracting user&pass from richtextbox1

    Hello im new to this forum

    I posted this request twice into some forums and sadly no luck
    so im trying this time and hope will be fine.

    i need help doing so

    I had a richtextbox1 contains the following text:

    Code:
    <REPLY username =chicco1502
    status = OK
    user_id =3377436
    >
    <user_register.php: 2011-02-19 10:00:06
    POST
    username=edwardzhao
    [email protected]
    email_confirm=
    password=640716
    password_confirm=640716
    country=CN
    msisdn=
    isyp=0
    isPremiumChat=
    dob=1964-07-16
    sub1=1
    sub2=1
    is3g=
    >
    <REPLY username =edwardzhao
    status = OK
    user_id =3377437
    >
    <user_register.php: 2011-02-19 10:00:31
    POST
    username=aragorn
    email=gabriele.*[email protected]
    email_confirm=
    password=010585
    password_confirm=010585
    country=IT
    msisdn=
    isyp=0
    isPremiumChat=
    dob=1982-01-06
    sub1=1
    sub2=1
    is3g=
    >
    and so on..

    So once i click button1 it should extract only Email plus Password into

    Email:Password

    edwardzh*[email protected]:640716
    gabriele.sc*[email protected]:010585

    so the email sympol is email= <email that should be extracted here>
    and so the password sympol password= <password that should be extracted here>

    if you didn't exactly understood what i meant you could download the source code about little clear example about what i needed here

    http://www.mediafire.com/?u82ygakw2ffv58p

    Thanks in advance!

  2. #2
    Frenzied Member
    Join Date
    Feb 2008
    Location
    Texas
    Posts
    1,288

    Re: Extracting user&pass from richtextbox1

    Use string.indexOf() to first find '<user_register.php'
    Once you have that index, then you can search for 'email='
    Once you have the index for the string 'email=' then you can get the substring from the index of '=' + 1 to then end of the line (vbnewline or controlchars.LF).
    Do the same thing for password.

    You would just keep doing this until the index of <user_register.php returned an index of -1.

    Justin
    You down with OOP? Yeah you know me!
    MCAD and MCMICKEYMOUSE (vb.net)

    ----

    If it even kinda helps... rate it : )

    Edit a Multi-page .tif file and save.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2012
    Posts
    3

    Re: Extracting user&pass from richtextbox1

    Quote Originally Posted by MonkOFox View Post
    Use string.indexOf() to first find '<user_register.php'
    Once you have that index, then you can search for 'email='
    Once you have the index for the string 'email=' then you can get the substring from the index of '=' + 1 to then end of the line (vbnewline or controlchars.LF).
    Do the same thing for password.

    You would just keep doing this until the index of <user_register.php returned an index of -1.

    Justin
    thanks for your reply

    could u please post the button code,

    Because i dont find this clear to me :/

  4. #4

    Thread Starter
    New Member
    Join Date
    Jun 2012
    Posts
    3

    Re: Extracting user&pass from richtextbox1

    bumppppppppp

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width