(self)
| 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""" |