1. We are looking for crackers, If you are interested in contributing the community apply now . https://crackingfire.net/forums/applications-information.5/
  2. How to secure yourself and understand what do exitsts. Learn more... (Recomended to read)
  3. Now accepting bitcoin as payment --> Click here to buy VIP using Bitcoin
  4. If you are interested in contribution to our community even non technical post an application . Click here to Learn more
  5. Regular members need to contribute to forum by posting threads in order to view the threads.For every thread you will get Fires(credits).
Giga RDP!

[vb.net] Forum Login Using HttpWebRequest Another Way [Source Code]

Discussion in 'Visual Basic and .NET Framework' started by viruslover, Oct 6, 2012.

  1. Admin Post
    viruslover

    viruslover Well-Known Member Staff Member Owner

    8,928
    9,255
    113
    Jan 29, 2012
    Male
    CrackingFire
    Google
    I've Found An Another Way for Login Using HttpWebrequest It Should be Very Fast....

    By Using This You Need :-

    • Textboxs
      Textbox1 for UserName
      Textbox2 For Password (put the PasswordChar to systemDefault)
      Button for Login



    Our Imports :-

    PHP:
    Imports System.Net
    Imports System
    .Text
    Imports System
    .IO
    In the Public Class Form Add This Code :-

    PHP:
    Dim logincookie As CookieContainer
    Click the Button and Add this Code :-

    PHP:
     Private Sub Button1_Click(ByVal sender As System.ObjectByVal e As System.EventArgsHandles Button1.Click
    Dim postData 
    As String "http%3A%2F%2Feliteguys.org%2Fforum%2Fmember.php?action=login&username=" TextBox1.Text "&password=" TextBox2.Text "&submit=Login&action=do_login&url="
    Dim tempcookies As New CookieContainer
    Dim encoding 
    As New UTF8Encoding
    Dim byteData 
    As Byte() = encoding.GetBytes(postData)
    Dim postreq As HttpWebRequest DirectCast(HttpWebRequest.Create("http://eliteguys.org/member.php?&action=login"), HttpWebRequest)
    postreq.Method "POST"
    postreq.KeepAlive True
    postreq
    .CookieContainer tempcookies
    postreq
    .UserAgent "Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2.3) Gecko/20100401 Firefox/4.0 (.NET CLR 3.5.30729"
    postreq.ContentType "application/x-www-form-urlencoded"
    postreq.Referer "http://eliteguys.org/member.php?&action=login"
    postreq.ContentLength byteData.Length
    Dim postreqstream 
    As Stream postreq.GetRequestStream()
    postreqstream.Write(byteData0byteData.Length)
    postreqstream.Close()
    Dim postresponse As HttpWebResponse
    postresponse 
    DirectCast(postreq.GetResponseHttpWebResponse)
    tempcookies.Add(postresponse.Cookies)
    logincookie tempcookies
    Dim postreqreader 
    As New StreamReader(postresponse.GetResponseStream())
    Dim thepage As String postreqreader.ReadToEnd
    If thepage.Contains("You have entered an invalid username/password combination.") = True Then
    MsgBox
    ("Incorrect Username/password combination"0"Login error!")
    Else
    MsgBox("Logged in"0"Success!")
    End If
    End Sub
    End 
    Class
     
  2. bodaelnegm2020

    bodaelnegm2020 Very New Member Member

    29
    6
    3
    May 27, 2018
    Male
    good pro but what if site has a virable like csrf_token what should i do
     

Share This Page