0x50f13 / ddos Goto Github PK
View Code? Open in Web Editor NEWSimple dos attack utility
License: GNU General Public License v3.0
Simple dos attack utility
License: GNU General Public License v3.0
While dosing each thread make cyclic loop allocation.
After long time working getting abort trap
Need to make option that will disable logo printing in build.sh
Sleep between requests in each thread
Packets aren't send by program correctly.Also memcrashed module couldn't be complied on any systems except Mac OS X
Failed to build because of following errors:
-clang-5.0: option -march=native not supported
-ld: Undefined reference to pow (probably need to add -lm option)
$ ./build.sh
0
./build.sh: line 9: [: too many arguments
./build.sh: line 17: [: =: unary operator expected
./build.sh: line 32: [: =: unary operator expected
./build.sh: line 38: [: =: unary operator expected
./build.sh: line 44: [: =: unary operator expected
Unknown option:
Add check to builder whether git pull retuned zero status if not message that update must be done manually
Even if using UDP protocol host check is still running using TCP protocol
╔╦╗╔╦╗╔═╗╔═╗╔═╗╦═╗
║║ ║║║ ║╚═╗║╣ ╠╦╝
═╩╝═╩╝╚═╝╚═╝╚═╝╩╚═ v1.1 builder
Building release
socket.c: In function ‘_dos_udp_send’:
socket.c:128:70: warning: passing argument 6 of ‘recvfrom’ from incompatible pointer type [-Wincompatible-pointer-types]
if (recvfrom(sock, buf, 1024, MSG_PEEK, (struct sockaddr*)&addr, &slen) == -1) {
^~~~~
In file included from /usr/include/netinet/in.h:23,
from /usr/include/arpa/inet.h:22,
from socket.h:13,
from socket.c:9:
/usr/include/x86_64-linux-gnu/sys/socket.h:165:27: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘size_t *’ {aka ‘long unsign
ed int *’}
socklen_t __restrict __addr_len);
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
socket.c: In function ‘dos_udp_send’:
socket.c:151:86: warning: passing argument 6 of ‘recvfrom’ from incompatible pointer type [-Wincompatible-pointer-types]
if (socket_wait&&recvfrom(sock, buf, bufsize, MSG_PEEK, (struct sockaddr)&addr, &slen) == -1) {
^~~~~
In file included from /usr/include/netinet/in.h:23,
from /usr/include/arpa/inet.h:22,
from socket.h:13,
from socket.c:9:
/usr/include/x86_64-linux-gnu/sys/socket.h:165:27: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘size_t *’ {aka ‘long unsign
ed int ’}
socklen_t __restrict __addr_len);
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
ddos.c: In function ‘_ddos_tcp’:
ddos.c:73:37: warning: passing argument 1 of ‘getsockopt’ makes integer from pointer without a cast [-Wint-conversion]
int retval = getsockopt(socket, SOL_SOCKET, SO_ERROR, &_error, &len);
^~~~~~
In file included from /usr/include/netinet/in.h:23,
from /usr/include/arpa/inet.h:22,
from socket.h:13,
from ddos.h:13,
from ddos.c:9:
/usr/include/x86_64-linux-gnu/sys/socket.h:208:28: note: expected ‘int’ but argument is of type ‘int ()(int, int, int)’
extern int getsockopt (int __fd, int __level, int __optname,
~~~~^~~~
ddos.c: In function ‘ddos’:
ddos.c:164:37: warning: passing argument 3 of ‘pthread_create’ from incompatible pointer type [-Wincompatible-pointer-types]
pthread_create(&_ddos[0], NULL, _ddos_stat, NULL);
^~~~~~~~~~
In file included from ddos.h:17,
from ddos.c:9:
/usr/include/pthread.h:236:15: note: expected ‘void * ()(void )’ but argument is of type ‘void ()()’
void (__start_routine) (void ),
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
ddos.c:166:45: warning: passing argument 3 of ‘pthread_create’ from incompatible pointer type [-Wincompatible-pointer-types]
if (pthread_create(&_ddos[i], NULL, __ddos_wrapper, p)) {
^~~~~~~~~~~~~~
In file included from ddos.h:17,
from ddos.c:9:
/usr/include/pthread.h:236:15: note: expected ‘void * ()(void )’ but argument is of type ‘void ()(_dos_param )’ {aka ‘void ()(struct *)’}
void (__start_routine) (void *),
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
main.c: In function ‘main’:
main.c:107:27: warning: passing argument 1 of ‘readfile’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
packet = readfile(getlarg("--packetfile", argv, argc));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ddos.h:14,
from main.c:16:
util.h:25:7: note: expected ‘char ’ but argument is of type ‘const char ’
char readfile(char filename);
^~~~~~~~
Write ping for checking whether target is online/offline
If argument for key is not supplied leads to segmentation fault.
Example:
$ ./ddos example.com 80 -t
Looks like need to add sys/time.h into socket
Because of issue #9 need to make status optional (it'll help optimization too)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.