Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 12:27

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Visual Basic] Hitfaker Frage

Discussion on [Visual Basic] Hitfaker Frage within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
Rylisma's Avatar
 
elite*gold: 0
Join Date: Jun 2011
Posts: 1,434
Received Thanks: 283
[Visual Basic] Hitfaker Frage

Hey ich hab nen Hitfaker erstellet , jedoch wird jede Proxy als Offline nicht funktionieren angezeigt .
Ist es ein Fehler im Code oder in der Proxy ?

Code :
Code:
Imports System.Net
Imports System.Threading

Public Class Form1
    Dim HitfakeThread As Thread
    Dim ProxyListe() As String
    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Dim Open As New OpenFileDialog
        If Open.ShowDialog = Windows.Forms.DialogResult.OK Then
            TextBox2.Text = Open.FileName
            ProxyListe = Split(My.Computer.FileSystem.ReadAllText(TextBox2.Text), vbNewLine)
        End If

    End Sub
    Private Sub Hitfake()
        Dim Offline As Integer = 0
        Dim Online As Integer = 0
        Dim Abspeichern As String = Nothing
        Control.CheckForIllegalCrossThreadCalls = False
        For Each proxy As String In ProxyListe
            Try
                Dim IP_Adresse As String
                Dim Port As Integer
                IP_Adresse = Split(proxy, ":")(0)
                Port = CType(Split(proxy, ":")(1), Integer)
                Dim WProxy As New WebProxy(IP_Adresse, Port)
                Dim WClient As New WebClient
                WClient.Proxy = WProxy
                WClient.DownloadString(New Uri(TextBox1.Text))
                Online += 1
                Abspeichern &= proxy & vbNewLine
                Offline += 1
            Catch ex As Exception
                ProgressBar1.Value += 1
                Label9.Text = ProgressBar1.Value.ToString & "/" & ProxyListe.Count.ToString
                Label8.Text = Online.ToString
                Label7.Text = Offline.ToString
            End Try
        Next
        If CheckBox1.Checked Then
            My.Computer.FileSystem.WriteAllText(TextBox3.Text, Abspeichern, True)
        End If
        MsgBox("Fertig!", MsgBoxStyle.Information)
        ProgressBar1.Value = 0
        Label9.Text = "0/0"
        Label8.Text = "0"
        Label7.Text = "0"
        Button3.Enabled = True
        Button4.Enabled = False

    End Sub
    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
        Try
            If TextBox1.Text = "" Then
                MsgBox("Bitte geben sie einen Link ein !", MsgBoxStyle.Critical)
                Exit Sub
            End If
            If TextBox2.Text = "" Then
                MsgBox("Bitte wählen sie eine Poxyliste aus!", MsgBoxStyle.Critical)
                Exit Sub
            End If
            Button3.Enabled = False
            Button4.Enabled = True
            ProgressBar1.Maximum = ProxyListe.Count
            ProgressBar1.Value = 0
            HitfakeThread = New Thread(AddressOf Hitfake)
            HitfakeThread.IsBackground = True
            HitfakeThread.Start()
        Catch ex As Exception
            MsgBox("Fehler:" & vbNewLine & "Die Proxyliste ist leer!")
        End Try
    End Sub
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Me.Close()
    End Sub
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    End Sub

    Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
        Button4.Enabled = False
        Button3.Enabled = True
        HitfakeThread.Abort()
        ProgressBar1.Value = 0
    End Sub

    Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


    End Sub

    Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)


    End Sub

    Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged
        If CheckBox1.Checked Then
            If SaveFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
                TextBox3.Text = SaveFileDialog1.FileName
            Else
                CheckBox1.Checked = False
                TextBox3.Clear()
            End If
        Else
            TextBox3.Clear()
        End If

    End Sub
End Class
Rylisma is offline  
Reply


Similar Threads Similar Threads
Visual basic Frage
03/19/2011 - .NET Languages - 0 Replies
Hey, ich wollte mal ein Tool erstellen das wenn man Start drückt alle 5 Sekunden "w" Gedrückt wird. Aber ich habe keine ahnung wie es gehen soll. Also es soll ein Tool werden das einen beim Spiel vor den Rausschmiss schutz. Also nix illegales. Hat sich geklärt Hab ein SendKeys.Send ("{W}") benutzt.
Visual Basic Frage
01/08/2011 - .NET Languages - 8 Replies
CLOSE
Visual Basic Frage
07/29/2010 - WarRock - 21 Replies
Hi also ich habe ein Warrock tool erstellt aber denn beim ausprobieren ist mir aufgefallen das, wenn ich auf einen button klicke nix passiert also die links öffnen sich nicht ich hab die links bei TAB gespeichert war Falsch Also meine Frage : Wo muss ich den link einfügen damit er nachher auch funkt. ?
Visual Basic frage !!!
07/20/2010 - .NET Languages - 2 Replies
Hey ich hab nen Problem ich habe ein file writer und file open gemacht man kann die datei umbennen also muss ich auch die funktion um schreiben das er auch in die neue file schreiben kann .. Nur wenn ich jetzt in die file schreiben will schreibt der wieder in das alte .. Dim fileReader As String Dim Var As String Var = My.Settings.save1 If System.IO.File.Exists("C:\Users\Tobi\Desktop\ test.txt") Then
Frage zu Visual Basic
04/04/2010 - Main - 1 Replies
Hallo liebe Community, ich hätte eine Frage zu Microsoft Visual Basic 2008 Express Edition. Kann ich meine Dateien bzw. meine Programme wieder bearbeiten? Die Form1.vb und Entwurf?



All times are GMT +2. The time now is 12:27.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.