wdbomber 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -0
- data/exe/wdbomber +7 -1
- data/lib/wdbomber/version.rb +1 -1
- data/lib/wdbomber.rb +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29b467e9675d95efed66253bb560ce677bca5180b3151fa7c28ed2c1afea28b0
|
4
|
+
data.tar.gz: f3c40a8430201f6dc93e716e207f70e494178526d3e9c1190d1ae8ffb5afe94b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7acde9ceaad2dded9e953a6c018f2daae28a480bf955b809f7ab432b57af7f11cdc0d1d8139af89fca4a17097e63c9e4ba498403bddd139146e6a225a5ea8457
|
7
|
+
data.tar.gz: 32e97f1f5c1b268a06ad021608d59332a8457cc148a40f2776794b577657b8de2901cca57be950078ccedea7cf84f2ca1845a51a6b28624e7883f799420d06f3
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
data/exe/wdbomber
CHANGED
@@ -10,8 +10,14 @@ STDOUT.sync = true
|
|
10
10
|
|
11
11
|
require 'wdbomber'
|
12
12
|
|
13
|
+
unless ARGV[0]
|
14
|
+
puts "wdbomber URL iterations concurrency actions"
|
15
|
+
exit 1
|
16
|
+
end
|
17
|
+
|
13
18
|
endpoint = ARGV[0]
|
14
19
|
iterations = ARGV[1] ? Integer(ARGV[1]) : 0
|
15
20
|
concurrency = ARGV[2] ? Integer(ARGV[2]) : 1
|
21
|
+
actions = ARGV[3] ? Integer(ARGV[3]) : 1
|
16
22
|
|
17
|
-
Wdbomber.run! endpoint, iterations: iterations, concurrency: concurrency
|
23
|
+
Wdbomber.run! endpoint, iterations: iterations, concurrency: concurrency, actions: actions
|
data/lib/wdbomber/version.rb
CHANGED
data/lib/wdbomber.rb
CHANGED
@@ -12,7 +12,7 @@ Signal.trap("INT") {
|
|
12
12
|
}
|
13
13
|
|
14
14
|
module Wdbomber
|
15
|
-
def self.run!(endpoint, iterations:, concurrency:1, concurrency_delay:0)
|
15
|
+
def self.run!(endpoint, iterations:, concurrency:1, concurrency_delay:0, actions:1)
|
16
16
|
STDERR.puts "attacking #{endpoint} #{iterations} times with #{concurrency} bombers"
|
17
17
|
|
18
18
|
desired_capabilities = Selenium::WebDriver::Remote::Capabilities.chrome
|
@@ -43,7 +43,9 @@ module Wdbomber
|
|
43
43
|
desired_capabilities: desired_capabilities,
|
44
44
|
http_client: client,
|
45
45
|
}
|
46
|
-
|
46
|
+
actions.times do
|
47
|
+
driver.navigate.to "about:blank"
|
48
|
+
end
|
47
49
|
took = Time.now - started_at
|
48
50
|
|
49
51
|
puts "#{bomber}: took #{took.floor(1)}s (##{iteration}/#{iterations})"
|