aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2021-03-21 23:24:46 +0700
committerShulhan <ms@kilabit.info>2021-03-21 23:24:46 +0700
commit7fed1f75a32c161ba0d296dbb7b6dc14e831336e (patch)
treea2d4f65b11a20aefaad4738f3a02a0b908ccb1b8 /example
parent360bf84d2af244c7926c2aa7c1f23d0c280b8238 (diff)
downloadgorankusu-7fed1f75a32c161ba0d296dbb7b6dc14e831336e.tar.xz
all: implement interface and API to cancel running attack
On the top of the page, it will display currently running attack with target name and HTTP target name. User can cancel the attack by clicking "Cancel" button on the right.
Diffstat (limited to 'example')
-rw-r--r--example/example.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/example.go b/example/example.go
index 190b39a..9a91ebb 100644
--- a/example/example.go
+++ b/example/example.go
@@ -95,8 +95,8 @@ func (ex *Example) registerTargets() (err error) {
Name: "Example",
Opts: &trunks.AttackOptions{
BaseUrl: fmt.Sprintf("http://%s", ex.trunks.Env.ListenAddress),
- Duration: 5 * time.Second,
- RatePerSecond: 10,
+ Duration: 300 * time.Second,
+ RatePerSecond: 1,
},
Vars: map[string]string{
"A": "1",