diff options
| author | Shulhan <ms@kilabit.info> | 2021-03-21 23:24:46 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2021-03-21 23:24:46 +0700 |
| commit | 7fed1f75a32c161ba0d296dbb7b6dc14e831336e (patch) | |
| tree | a2d4f65b11a20aefaad4738f3a02a0b908ccb1b8 /example/example.go | |
| parent | 360bf84d2af244c7926c2aa7c1f23d0c280b8238 (diff) | |
| download | gorankusu-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/example.go')
| -rw-r--r-- | example/example.go | 4 |
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", |
