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",
|
name = "Slowloris",
|
||||||
py_modules = ["slowloris"],
|
py_modules = ["slowloris"],
|
||||||
entry_points = {"console_scripts": ["slowloris=slowloris:main"]},
|
entry_points = {"console_scripts": ["slowloris=slowloris:main"]},
|
||||||
version = "0.1",
|
version = "0.1.1",
|
||||||
description = "Low bandwidth DoS tool. Slowloris rewrite in Python.",
|
description = "Low bandwidth DoS tool. Slowloris rewrite in Python.",
|
||||||
author = "Gokberk Yaltirakli",
|
author = "Gokberk Yaltirakli",
|
||||||
author_email = "webdosusb@gmail.com",
|
author_email = "webdosusb@gmail.com",
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,9 @@ def init_socket(ip):
|
||||||
return s
|
return s
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
if len(sys.argv) != 2:
|
||||||
|
print("Usage: {} example.com".format(sys.argv[0]))
|
||||||
|
return
|
||||||
ip = sys.argv[1]
|
ip = sys.argv[1]
|
||||||
socket_count = 200
|
socket_count = 200
|
||||||
log("Attacking {} with {} sockets.".format(ip, socket_count))
|
log("Attacking {} with {} sockets.".format(ip, socket_count))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue