mirror of https://github.com/Askill/slowloris.git
Some error handling on command line arguments
This commit is contained in:
parent
fcff598745
commit
cb36d7c376
2
setup.py
2
setup.py
|
|
@ -3,7 +3,7 @@ setup(
|
|||
name = "Slowloris",
|
||||
py_modules = ["slowloris"],
|
||||
entry_points = {"console_scripts": ["slowloris=slowloris:main"]},
|
||||
version = "0.1",
|
||||
version = "0.1.1",
|
||||
description = "Low bandwidth DoS tool. Slowloris rewrite in Python.",
|
||||
author = "Gokberk Yaltirakli",
|
||||
author_email = "webdosusb@gmail.com",
|
||||
|
|
|
|||
|
|
@ -27,6 +27,9 @@ def init_socket(ip):
|
|||
return s
|
||||
|
||||
def main():
|
||||
if len(sys.argv) != 2:
|
||||
print("Usage: {} example.com".format(sys.argv[0]))
|
||||
return
|
||||
ip = sys.argv[1]
|
||||
socket_count = 200
|
||||
log("Attacking {} with {} sockets.".format(ip, socket_count))
|
||||
|
|
|
|||
Loading…
Reference in New Issue