Giter Site home page Giter Site logo

0x50f13 / ddos Goto Github PK

View Code? Open in Web Editor NEW
45.0 5.0 18.0 398 KB

Simple dos attack utility

License: GNU General Public License v3.0

C 92.76% Shell 4.77% Python 2.47%
ddos ddos-attacks udp tcp http socket socket-io multithreading pthread denial-of-service

ddos's People

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

Watchers

 avatar  avatar  avatar  avatar  avatar

ddos's Issues

Building on Android/Termux/clang fails

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 crashes if no arguments supplied

$ ./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:

Build Error

╔╦╗╔╦╗╔═╗╔═╗╔═╗╦═╗
║║ ║║║ ║╚═╗║╣ ╠╦╝
═╩╝═╩╝╚═╝╚═╝╚═╝╩╚═ 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);
^~~~~~~~

Build failure (GCC 7.3.0)

Release build fails when compiling with GCC 7.3.0.
I didn't try debug build, but I guess the result will be the same

build log

Possible reason: some includes are missing

UPD: Tried these changes, but something in memcrashed.c is wrong

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.