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

Method save_config

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

Source from the content-addressed store, hash-verified

239 pass
240
241 def save_config(self):
242 config = {
243 'target_ip': self.target_ip,
244 'target_port': self.target_port,
245 'threads': self.threads,
246 'duration': self.duration
247 }
248 try:
249 with open(self.config_file, 'w') as f:
250 json.dump(config, f, indent=4)
251 except:
252 pass
253
254 def get_system_stats(self):
255 """Get current system statistics"""

Callers 1

mainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected