npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@sergdudko/hulk

v1.1.3

Published

DoS Attack tools (only for testing yours service)

Downloads

3

Readme



Hulk v1.1.0

DoS Attack tools (for testing purposes only)

npm npm NpmLicense GitHub last commit GitHub release

EN

Quotation of the original file: "This tool is a dos tool that is meant to put heavy load on HTTP servers in order to bring them to their knees by exhausting the resource pool, its is meant for research purposes only and any malicious usage of this tool is prohibited." Originaly (python) author : Barry Shteiman - http://www.sectorix.com/2012/05/17/hulk-web-server-dos-tool/

Rewritten with python (concept) under nodejs, optimized by Siarhei Dudko

  • Dependencies

    • http
    • https
    • colors
    • url
    • fs
  • Install:

    	npm install @sergdudko/hulk --save
  • Module connection (examples of using):

    • hulk.core - basic function of the module
      	var hulkCore = require('@sergdudko/hulk').core;
      	//hulkCore(set_you_link, set_this_data, set_this_method, set_req_total, set_req_in_min, stdout);
      	hulkCore('http://link.com ', '', 'GET', 20, 100, log).then(result=>{/* result is object of {"total":(number), "speed":(number), "real":(number), "good":(number), "error":(number), "denial":(number)}  */}, err=>{ /* Error  */});
    • hulk.cli - function for working with the console (takes the arguments of the process for stdin and outputs stdout in console.log)
      	var hulkCli = require('@sergdudko/hulk').cli;
      	hulkCli();
      		
      	//node you_script.js http://link.com dsdsdsds POST 100 1000
    • hulk.file - function for working with the log file
      	var hulkFile = require('@sergdudko/hulk').file;
      	//hulkFile(set_you_link, set_this_data, set_this_method, set_req_total, set_req_in_min, path);
      	hulkFile('http://link.com', '', 'GET', 20, 100, __dirname + '/test.log');
    • hulk.func - function for working with callback function (return the output array of the console to callback)
      	var hulkFunc = require('@sergdudko/hulk').func;
      	//hulkFunc(set_you_link, set_this_data, set_this_method, set_req_total, set_req_in_min, stdout);
      	hulkFunc('http://link.com', '', 'GET', 20, 100, console.log);
  • Setting (function arguments for hulk.core, hulk.file, hulk.func)

    • set_you_link - link to you server, formated "https://test.com/"
    • set_this_data - data to request (not use for GET request)
    • set_this_method - type request (GET, POST and others)
    • set_req_total - number of requests for attack
    • set_req_in_min - limit download of requests per minute
    • stdout (for hulk.core, hulk.func) - output function (console.log, write to file, your output function with a single incoming argument as a string)
    • path (for hulk.file) - path to the file for report output
  • Setting (process arguments for hulk.cli)

    • Default values:
        - set_you_link - http://you_link.com/
        - set_this_data - ''
        - set_this_method - GET
        - set_req_total - 20k
        - set_req_in_min - 10k/min
    • With the argument set_this_data:
        node you_script.js set_you_link set_this_data set_this_method set_req_total set_req_in_min
        node you_script.js http://link.com dsdsdsds POST 100 1000
      
        - set_you_link - http://link.com
        - set_this_data - dsdsdsds
        - set_this_method - POST
        - set_req_total - 100
        - set_req_in_min - 1000 req/min
    • Without the argument set_this_data:
        node you_script.js set_you_link set_this_method set_req_total set_req_in_min
        node you_script.js http://link.com GET 1000 1000
      
        - set_you_link - http://link.com
        - set_this_data - ''
        - set_this_method - GET
        - set_req_total - 1000
        - set_req_in_min - 1000 req/min
    • Using the default settings:
        node you_script.js set_you_link set_this_method set_req_total
        node you_script.js http://link.com GET 2000
      
        - set_you_link - http://link.com
        - set_this_data - ''
        - set_this_method - GET
        - set_req_total - 2000
        - set_req_in_min - 10k req/min

RU

Софт для DoS атаки на сервер. Исключительно для тестирования собственных продуктов. Использование в противозаконных целях запрещено. Идея навеяна аналогичным скриптом на python(Barry Shteiman - http://www.sectorix.com/2012/05/17/hulk-web-server-dos-tool/). На основании её и реализовал в javascript(nodejs). Плюшки асинхронного языка в комплекте.

  • Зависимости

    • http
    • https
    • colors
    • url
    • fs
  • Установка:

    	npm install @sergdudko/hulk --save
  • Подключение модуля (примеры использования):

    • hulk.core - основная функция модуля
      	var hulkCore = require('@sergdudko/hulk').core;
      	//hulkCore(set_you_link, set_this_data, set_this_method, set_req_total, set_req_in_min, stdout);
      	hulkCore('http://link.com ', '', 'GET', 20, 100, log).then(result=>{/* result объект вида {"total":(number), "speed":(number), "real":(number), "good":(number), "error":(number), "denial":(number)}  */}, err=>{ /* Ошибка  */});;
    • hulk.cli - функция для работы с консолью (принимает аргументы процесса за stdin и выводит stdout в console.log)
      	var hulkCli = require('@sergdudko/hulk').cli;
      	hulkCli();
      		
      	//node you_script.js http://link.com dsdsdsds POST 100 1000
    • hulk.file - функция для работы с лог-файлом
      	var hulkFile = require('@sergdudko/hulk').file;
      	//hulkFile(set_you_link, set_this_data, set_this_method, set_req_total, set_req_in_min, path);
      	hulkFile('http://link.com', '', 'GET', 20, 100, __dirname + '/test.log');
    • hulk.func - функция для работы с каллбэк-функцией (вернет массив вывода консоли в каллбэк)
      	var hulkFunc = require('@sergdudko/hulk').func;
      	//hulkFunc(set_you_link, set_this_data, set_this_method, set_req_total, set_req_in_min, stdout);
      	hulkFunc('http://link.com', '', 'GET', 20, 100, console.log);
  • Настройка (аргументы функции hulk.core, hulk.file, hulk.func)

    • set_you_link - ссылка для атаки "https://test.com/"
    • set_this_data - данные REST запроса (могут быть пустыми)
    • set_this_method - вид запроса (GET, POST и др.)
    • set_req_total - общее число запросов к серверу
    • set_req_in_min - предел скорости запросов к серверу (запросов в минуту)
    • stdout (для hulk.core, hulk.func) - функция вывода (console.log, запись в файл, ваша функция вывода с единственным входящим аргументом в виде строки)
    • path (для hulk.file) - путь к файлу для вывода отчета
  • Настройка (аргументы процесса hulk.cli)

    • Значения по умолчанию:
        - set_you_link - http://you_link.com/
        - set_this_data - ''
        - set_this_method - GET
        - set_req_total - 20k
        - set_req_in_min - 10k/min
    • В случае передачи аргумента set_this_data:
        node you_script.js set_you_link set_this_data set_this_method set_req_total set_req_in_min
        node you_script.js http://link.com dsdsdsds POST 100 1000
      
        - set_you_link - http://link.com
        - set_this_data - dsdsdsds
        - set_this_method - POST
        - set_req_total - 100
        - set_req_in_min - 1000 req/min
    • Без передачи аргумента set_this_data:
        node you_script.js set_you_link set_this_method set_req_total set_req_in_min
        node you_script.js http://link.com GET 1000 1000
      
        - set_you_link - http://link.com
        - set_this_data - ''
        - set_this_method - GET
        - set_req_total - 1000
        - set_req_in_min - 1000 req/min
    • Используя параметры по умолчанию:
        node you_script.js set_you_link set_this_method set_req_total
        node you_script.js http://link.com GET 2000
      
        - set_you_link - http://link.com
        - set_this_data - ''
        - set_this_method - GET
        - set_req_total - 2000
        - set_req_in_min - 10k req/min

SCREENSHOTS

  • Внешний вид атаки/Appearance of attack

Screenshot_1

  • Вывод итоговой статистики/Output of summary statistics

Screenshot_2

  • Вот так это выглядит в CPanel атакуемого сервера (напомню, что убить сервер цели не было - потому атаки были не продолжительны)/This is how it looks in the CPanel of the attacked server (I recall that there was no goal to kill the server - therefore, the attacks were not long)

Screenshot_3

Screenshot_4

Screenshot_5

Screenshot_6