Skip to content

Phara0h/WaspsWithBazookas

Repository files navigation

https://www.npmjs.com/package/waspswithbazookas

Wasps With Bazookas

Its like bees with machine guns but way more power

Do not use this to DDOS for the lulz or any other purpose on servers you don't own, it is illegal . Don't say I did not tell you so.

Postman REST Docs Postman REST Docs You can also check out the docs/API.md file (but it might be out of date)

Node SDK can be found at WWB-SDK

Install

install wrk and have the bin in your path.

npm install -g waspswithbazookas

How to run

On your choice of platform for example AWS. You would have one instance running the hive and x amount of other instances running wasps.

wwb-cli

Start

starts hive and 2 wasp servers on the local machine.

wwb-cli spawn local start -w 2

Run load test

Runs a load test with the defaults hitting localhost:1234 (This test server can be found under test/test-http-server.js)

wwb-cli hive poke http://localhost:1234/

Get report

Gets report of the load test after it is finished.

wwb-cli hive report

Stop

Stops all locally made machines

wwb-cli spawn local stop

Manual

Start HIVE

Note: Must start HIVE first

wwb-hive 4269

First argument is port number (optional) Default: 4269 You can also set it by setting your env with WWB_HIVE_PORT

Start WASP

wwb-wasp http://hiveip:hiveport/ 4268

First argument is hive url (EX. http://localhost:4269/) You can also set it by setting your env with WWB_HIVE_URL

Second argument is port number (optional) Default: 4268 You can also set it by setting your env with WWB_WASP_PORT

Sample config file for remote control

{
  "instance": {
    "type": "remote",
    "hive": {
      "ip": "0.0.0.0",
      "port": "4269"
    }
  }
}