(self)
| 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 = { |