Skip to content

Commit

Permalink
Add 'halt' button
Browse files Browse the repository at this point in the history
  • Loading branch information
albinowax committed Feb 1, 2019
1 parent edd08c9 commit 477d154
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/fast-http.kt
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,17 @@ class TurboIntruderFrame(inputRequest: IHttpRequestResponse, val selectionBounds

button.addActionListener {
thread {
if (button.text == "Configure") {
if (button.text == "Halt") {
handler.abort()
button.text = "Configure"
}
else if (button.text == "Configure") {
handler = AttackHandler()
pane.bottomComponent = textEditor.component
button.text = "Attack"
}
else {
button.text = "Configure"
button.text = "Halt"
val requestTable = RequestTable(req.httpService, handler)
pane.bottomComponent = requestTable
val script = String(textEditor.text)
Expand Down

0 comments on commit 477d154

Please sign in to comment.