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

Method load_config

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

Source from the content-addressed store, hash-verified

227 ]
228
229 def load_config(self):
230 try:
231 if os.path.exists(self.config_file):
232 with open(self.config_file, 'r') as f:
233 config = json.load(f)
234 self.target_ip = config.get('target_ip', '')
235 self.target_port = config.get('target_port', 80)
236 self.threads = config.get('threads', 50)
237 self.duration = config.get('duration', 30)
238 except:
239 pass
240
241 def save_config(self):
242 config = {

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected