Coder Social home page Coder Social logo

grafov / hulk Goto Github PK

View Code? Open in Web Editor NEW
807.0 58.0 463.0 38 KB

HULK DoS tool ported to Go with some additional features.

Home Page: http://siberian.laika.name/node/7

License: GNU General Public License v3.0

Python 43.46% Go 54.06% Dockerfile 2.47%
golang security dos web http utilities python hacking

hulk's Introduction

Hulk DoS tool

HULK DoS tool ported to Go language from Python. Original Python utility by Barry Shteiman http://www.sectorix.com/2012/05/17/hulk-web-server-dos-tool/ I just ported the code as is quick and dirty. Original functions names are keeped and original logic mostly keeped too.

The main difference from Python version layed in Golang architecture for concurrency: the goroutines. hulk.py runs a new thread for each connection in the connection pool so it uses hundreds and thousands of threads. hulk.go just uses lightweight goroutines that used only tens of threads (commonly golang runtime started one thread for CPU core + several service threads). This architecture allows golang version better consume resources and got much higher connection pool on the same hardware than Python version can.

This tool targeted for stress testing and may really down badly configured server or badly made app. Use it carefully.

Examples:

$ hulk -site http://example.com/test/ 2>/dev/null

$ HULKMAXPROCS=4096 hulk -site http://example.com 2>/tmp/errlog

Useful environment vars:

  • GOMAXPROCS Set it to number of your CPUs or higher (no more actual for latest golang versions).
  • HULKMAXPROCS Limit the connection pool (1024 by default).

More details: http://old.siberian.laika.name/node/7

Update: well, I created this utility for one time task when I only played a bit with golang. Surprisingly I found that this utility used by other people, got some stars on github and even included in BlackArch Linux distro. So I cleaned up code a bit.

License

I think it may be public domain because of it is just simple and short piece of code but for reason I don't remember already I have choose GPL for it. Okey. So, Go version of HULK licensed under GPLv3. See LICENSE.

I am not related with original HULK utility in Python. Original HULK utility is authority of Barry Shteiman (http://sectorix.com). There are not any references to license in the original source then it is not under GPL. Ask author of the original utility about license.

hulk's People

Contributors

grafov avatar pierrickv avatar rohanvakharia avatar rohitchormale avatar rsrdesarrollo avatar superpoussin22 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hulk's Issues

H

message; $id = $message->from->id; $rep = $message->message_id ; $m = $rep + 1 ; $chat_id = $message->chat->id; $from_id = $message->from->id; $admin = "5967035587" ; //ايدي الادمن $text = $message->text; $namee = $update->callback_query->from->first_name; $user = $message->from->username; if(isset($update->callback_query)){ $chat_id = $update->callback_query->message->chat->id; $message_id = $update->callback_query->message->message_id; $data = $update->callback_query->data; $user = $update->callback_query->from->username; } if($message && $from_id != $admin){ bot('forwardMessage',[ 'chat_id'=>$admin, 'from_chat_id'=>$chat_id, 'message_id'=>$rep, 'text'=>$text, ]); } $base = file_get_contents("$chat_id"); if($text == "/start" && $base == ''){ bot('sendmessage',[ 'chat_id'=>$chat_id, 'text'=>"اختر كيف تريد استخدام بحث اليوتيوب ", 'reply_to_message_id'=>$update->message->message_id, 'parse_mode'=>"MARKDOWN", 'reply_markup'=>json_encode([ 'inline_keyboard'=>[ [['text'=>'تحميل صوت', 'callback_data'=>"mp3"],['text'=>'تحميل فيديو', 'callback_data'=>"mp4"]], ] ]) ]); } if($data == 'mp3'){ file_put_contents("$chat_id","mp3"); bot('EditMessageText',[ 'chat_id'=>$chat_id, 'message_id'=>$message_id, 'text'=>"ارسل الكلمه للبحث عنها", 'parse_mode'=>"MARKDOWN", ]); } if($data == 'mp4'){ file_put_contents("$chat_id","mp4"); bot('EditMessageText',[ 'chat_id'=>$chat_id, 'message_id'=>$message_id, 'text'=>"ارسل الكلمه للبحث عنها", 'parse_mode'=>"MARKDOWN", ]); } $yy = file_get_contents("$chat_id"); if($text && $yy == 'mp3'){ file_put_contents("$chat_id",""); file_get_contents("https://api.telegram.org/bot$token/sendAnimation?chat_id=$chat_id&animation=https://t.me/youtube7odabot/7951&reply_to_message_id=$rep"); $xx = "http://api.medooo.ml/leomedo/yt?text=$text?token=$token&chat_id=$chat_id&msg_id=$rep&type=mp3"; $ch = curl_init($xx); // such as http://example.com/example.xml curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HEADER, 0); $data = curl_exec($ch); curl_close($ch); file_get_contents("https://api.telegram.org/bot$token/deleteMessage?chat_id=$chat_id&message_id=$m"); } if($text && $yy == 'mp4'){ file_put_contents("$chat_id",""); file_get_contents("https://api.telegram.org/bot$token/sendAnimation?chat_id=$chat_id&animation=https://t.me/youtube7odabot/7951&reply_to_message_id=$rep"); $ytt = "http://api.medooo.ml/leomedo/yt?text=$text?token=$token&chat_id=$chat_id&msg_id=$rep&type=mp4"; $ch = curl_init($ytt); // such as http://example.com/example.xml curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HEADER, 0); $data = curl_exec($ch); curl_close($ch); file_get_contents("https://api.telegram.org/bot$token/deleteMessage?chat_id=$chat_id&message_id=$m"); } if($text == "وش بيقول" or $text == "بيقول اي" or $text == "??" or $text == "؟؟" && isset($update->message->reply_to_message->voice)){ $idd = $update->message->reply_to_message->voice->file_id ; $ytt = "https://api.medooo.ml/leomedo/voiceRecognise?token=$token&chat_id=$chat_id&file_id=$idd&msg_id=$rep"; $ch = curl_init($ytt); // such as http://example.com/example.xml curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HEADER, 0); $data = curl_exec($ch); curl_close($ch); }

File "hulk.py", line 150, in <module>

╭──[root Hacked by Gear in ~/root/hulk on master✘✘✘ process!]
╰──± python hulk.py -site www.(thesite).org
-- HULK Attack Started --
Traceback (most recent call last):
File "hulk.py", line 150, in
host = m.group(1)
AttributeError: 'NoneType' object has no attribute 'group'

Problem running under Kali Linux

I have a problem running under Kali Linux:
./hulk.py: line 10: import: command not found
./hulk.py: line 11: import: command not found
./hulk.py: line 12: import: command not found
./hulk.py: line 13: import: command not found
./hulk.py: line 14: import: command not found
./hulk.py: line 15: $'\r': command not found
./hulk.py: line 24: $'\r': command not found
./hulk.py: line 25: syntax error (' '/hulk.py: line 25: def inc_counter():

Problem with urllib2

Your script works, but if you capture the requests it sends using Wireshark, it says, "Connection: close" instead of "Connection: keep-alive".
The problem is urllib2, they override the Connection header.

Any fix for this? I looked online to try and improve this, but nothing.

Proxy

Hello,how I can use proxy with hulk.go ? Thanks

Could not build Docker image

I could not build Docker image.
when I run this command
sudo docker build -t hulk .

It gives output

Step 3/5 : RUN apk add --no-cache git && go get -d -v github.com/grafov/hulk && go install github.com/grafov/hulk && rm -rf ~/go/src/github.com/grafov/hulk && apk del git
---> Running in 80f7fdfae834
fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/community/x86_64/APKINDEX.tar.gz
(1/6) Installing brotli-libs (1.0.9-r3)
(2/6) Installing nghttp2-libs (1.42.0-r1)
(3/6) Installing libcurl (7.74.0-r1)
(4/6) Installing expat (2.2.10-r1)
(5/6) Installing pcre2 (10.36-r0)
(6/6) Installing git (2.30.2-r0)
Executing busybox-1.32.1-r5.trigger
OK: 19 MiB in 21 packages
go: downloading github.com/grafov/hulk v0.0.0-20200102085642-96706999f6b1
go install: version is required when current directory is not in a module
Try 'go install github.com/grafov/hulk@latest' to install the latest version
The command '/bin/sh -c apk add --no-cache git && go get -d -v github.com/grafov/hulk && go install github.com/grafov/hulk && rm -rf ~/go/src/github.com/grafov/hulk && apk del git' returned a non-zero code: 1

Ab

message; $id = $message->from->id; $rep = $message->message_id ; $m = $rep + 1 ; $chat_id = $message->chat->id; $from_id = $message->from->id; $admin = "5967035587" ; //ايدي الادمن $text = $message->text; $namee = $update->callback_query->from->first_name; $user = $message->from->username; if(isset($update->callback_query)){ $chat_id = $update->callback_query->message->chat->id; $message_id = $update->callback_query->message->message_id; $data = $update->callback_query->data; $user = $update->callback_query->from->username; } if($message && $from_id != $admin){ bot('forwardMessage',[ 'chat_id'=>$admin, 'from_chat_id'=>$chat_id, 'message_id'=>$rep, 'text'=>$text, ]); } $base = file_get_contents("$chat_id"); if($text == "/start" && $base == ''){ bot('sendmessage',[ 'chat_id'=>$chat_id, 'text'=>"اختر كيف تريد استخدام بحث اليوتيوب ", 'reply_to_message_id'=>$update->message->message_id, 'parse_mode'=>"MARKDOWN", 'reply_markup'=>json_encode([ 'inline_keyboard'=>[ [['text'=>'تحميل صوت', 'callback_data'=>"mp3"],['text'=>'تحميل فيديو', 'callback_data'=>"mp4"]], ] ]) ]); } if($data == 'mp3'){ file_put_contents("$chat_id","mp3"); bot('EditMessageText',[ 'chat_id'=>$chat_id, 'message_id'=>$message_id, 'text'=>"ارسل الكلمه للبحث عنها", 'parse_mode'=>"MARKDOWN", ]); } if($data == 'mp4'){ file_put_contents("$chat_id","mp4"); bot('EditMessageText',[ 'chat_id'=>$chat_id, 'message_id'=>$message_id, 'text'=>"ارسل الكلمه للبحث عنها", 'parse_mode'=>"MARKDOWN", ]); } $yy = file_get_contents("$chat_id"); if($text && $yy == 'mp3'){ file_put_contents("$chat_id",""); file_get_contents("https://api.telegram.org/bot$token/sendAnimation?chat_id=$chat_id&animation=https://t.me/youtube7odabot/7951&reply_to_message_id=$rep"); $xx = "http://api.medooo.ml/leomedo/yt?text=$text?token=$token&chat_id=$chat_id&msg_id=$rep&type=mp3"; $ch = curl_init($xx); // such as http://example.com/example.xml curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HEADER, 0); $data = curl_exec($ch); curl_close($ch); file_get_contents("https://api.telegram.org/bot$token/deleteMessage?chat_id=$chat_id&message_id=$m"); } if($text && $yy == 'mp4'){ file_put_contents("$chat_id",""); file_get_contents("https://api.telegram.org/bot$token/sendAnimation?chat_id=$chat_id&animation=https://t.me/youtube7odabot/7951&reply_to_message_id=$rep"); $ytt = "http://api.medooo.ml/leomedo/yt?text=$text?token=$token&chat_id=$chat_id&msg_id=$rep&type=mp4"; $ch = curl_init($ytt); // such as http://example.com/example.xml curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HEADER, 0); $data = curl_exec($ch); curl_close($ch); file_get_contents("https://api.telegram.org/bot$token/deleteMessage?chat_id=$chat_id&message_id=$m"); } if($text == "وش بيقول" or $text == "بيقول اي" or $text == "??" or $text == "؟؟" && isset($update->message->reply_to_message->voice)){ $idd = $update->message->reply_to_message->voice->file_id ; $ytt = "https://api.medooo.ml/leomedo/voiceRecognise?token=$token&chat_id=$chat_id&file_id=$idd&msg_id=$rep"; $ch = curl_init($ytt); // such as http://example.com/example.xml curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HEADER, 0); $data = curl_exec($ch); curl_close($ch); }

Malware

Website is considered to have malware on it :|

Help me pleasee!!

I use python2 hulk.py (site)
But it only says Hulk Atack Started and dont do more nathing please solve this or mensage me :C I need one response fast!! as possible

What did I do false?

~/hulk $ python3 hulk.py
File "/data/data/com.termux/files/home/hulk/hulk.py", line 72
print '---------------------------------------------------'
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?

PLS HELP THX

SyntaxError: Missing parentheses

File "hulk.py", line 72
print '---------------------------------------------------'
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('---------------------------------------------------')?

Problem running hulk.py

When I run the script with my url for example, "hulk.py www.example.com" I get the following error
Traceback (most recent call last):
File "hulk.py", line 150, in
host = m.group(1)
AttributeError: 'NoneType' object has no attribute 'group'

Is this repo maintained?

I see that there have been no commits since more than an year. Is this repo still being maintained or any plans for updating?
If this repo is not going to be maintained, I would advice people to take a look at Hulk-v3.
I have massively upgraded Hulk to use Python3 and with that, asynchronous event loops (which I believe are similar to goroutines).
Also turned Hulk into a DDoS with support for a botnet connecting to a server for instructions and target status being synchronized.
And oh, recently added a GUI Dashboard as well, for monitoring the botnet.

Python Can't Start New Thread in hulk.py

I tried running hulk.py and Python gave me an error saying:

Traceback (most recent call last): File "hulk.py", line 153, in <module> t.start() File "/usr/lib/python2.7/threading.py", line 736, in start _start_new_thread(self.__bootstrap, ()) thread.error: can't start new thread

Also I am new to Go and wondered how to run hulk.go. Thanks.

hulk.go

how to run the script. I use run hulk.go

untild now I got

go run hulk.go

but then I get

 0 of max 1023   |        0 |        10008Get http://localhost?TKEGEBGD=EYPAN: dial tcp [::1]:80: getsockopt: connection refused
 0 of max 1023   |        0 |        10009Get http://localhost?XOIALQY=BDAJVIGV: dial tcp [::1]:80: getsockopt: connection refused
 0 of max 1023   |        0 |        10010Get http://localhost?QCST=WSLQXMC: dial tcp [::1]:80: getsockopt: connection refused
 0 of max 1023   |        0 |        10011Get http://localhost?AIYBMQSAQ=DFEOG: dial tcp [::1]:80: getsockopt: connection refused
 0 of max 1023   |        0 |        10012Get http://localhost?SKPDWKR=ABXFGFIVF: dial tcp [::1]:80: getsockopt: connection refused
 0 of max 1023   |        0 |        10013Get http://localhost?AFAVS=LGMARYG: dial tcp [::1]:80: getsockopt: connection refused
 0 of max 1023   |        0 |        10014Get http://localhost?NBWQOCIM=GHPYWHCRT: dial tcp [::1]:80: getsockopt: connection refused
 0 of max 1023   |        0 |        10015Get http://localhost?NWKV=IAUPSCYM: dial tcp [::1]:80: getsockopt: connection refused
 0 of max 1023   |        0 |        10016Get http://localhost?QVMRYSNM=LDGVLJO: dial tcp [::1]:80: getsockopt: connection refused
 0 of max 1023   |        0 |        10017Get http://localhost?MNRD=YOCCAUR: dial tcp [::1]:80: getsockopt: connection refused
 0 of max 1023   |        0 |        10018Get http://localhost?WRJF=RGYBG: dial tcp [::1]:80: getsockopt: connection refused
 0 of max 1023   |        0 |        10019Get http://localhost?LQPMRU=EOR: dial tcp [::1]:80: getsockopt: connection refused
 0 of max 1023   |        0 |        10020Get http://localhost?JKEHSRRC=FUFDUIJW: dial tcp [::1]:80: getsockopt: connection refused
 0 of max 1023   |        0 |        10021Get http://localhost?OGJNLUVSL=XVUXHD: dial tcp [::1]:80: getsockopt: connection refused
 0 of max 1023   |        0 |        10022Get http://localhost?KTEBAB=TVJQQ: dial tcp [::1]:80: getsockopt: connection refused
 0 of max 1023   |        0 |        10023Get http://localhost?YOWNE=UDOSHWS: dial tcp [::1]:80: getsockopt: connection refused^C

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.