Public Class Form2
Dim Http As New HttpClass("https://link.com")
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
If (user.Text = "" Or pass.Text.ToString() = "" Or TextBox1.Text = "").ToString() Then
MessageBox.Show("Fields can not be blank!", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1)
Else
id = user.Text
pas = pass.Text.ToString()
post = "form_sent=1&referer=&next=&username=" + id + "&password=" + pas + "&passwordfake=Password"
Me.ToolStripStatusLabel1.Text = label + "Signing In ...."
Http.Request("GET", "http://link.com/login", Nothing)
Http.Request("POST", "http://link.com//login", post)
Me.ToolStripStatusLabel1.Text = label + "Logged In ...."
Me.ToolStripStatusLabel1.ForeColor = Color.IndianRed
source = Http.Request("GET", http://link.com/" + TextBox1.Text, Nothing)
Me.ToolStripStatusLabel1.Text = label + "Following -> " + TextBox1.Text
Try
Dim r As New System.Text.RegularExpressions.Regex("<input type=""hidden"" name=""example"" value="".*"" />")
Dim rr As New System.Text.RegularExpressions.Regex("<input type=""hidden"" name=""example1"" value="".*"" />")
Dim matches As MatchCollection = r.Matches(source)
Dim matches1 As MatchCollection = rr.Matches(source)
For Each f As Match In matches
re = f.Value.Split("""").GetValue(5)
For Each ff As Match In matches1
re1 = ff.Value.Split("""").GetValue(5)
Next
Next
Catch ex As Exception
Console.WriteLine(ex)
End Try
Dim fol = "friend=" + re + "&validate=" + re1
unfollow = fol.ToString()
Http.Request("POST", "http://link.com/", fol)
MsgBox("Done!")
Me.ToolStripStatusLabel1.Text = label + "DONE !"
Console.WriteLine(fol.ToString())
End If
End Sub