MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / __init__

Method __init__

Scripts/Network Tools/Sod.py:194–219  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

192
193class AdvancedLoadTester:
194 def __init__(self):
195 self.config_file = "load_test_config.json"
196 self.target_ip = ""
197 self.target_port = 80
198 self.threads = 50
199 self.duration = 30
200 self.packet_size = 1024
201 self.rate_limit = 100 # Requests per second per thread
202 self.timeout = 10
203 self.user_agents = self.load_user_agents()
204 self.stats = {
205 'requests_sent': 0,
206 'requests_successful': 0,
207 'requests_failed': 0,
208 'total_bytes': 0,
209 'start_time': None,
210 'end_time': None,
211 'response_times': []
212 }
213 self.system_stats = {
214 'cpu_percent': 0,
215 'memory_percent': 0,
216 'network_io': (0, 0)
217 }
218 self.running = False
219 self.load_config()
220
221 def load_user_agents(self):
222 return [

Callers

nothing calls this directly

Calls 2

load_user_agentsMethod · 0.95
load_configMethod · 0.95

Tested by

no test coverage detected