MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / log_attack

Method log_attack

attack_logger.py:33–83  ·  view source on GitHub ↗

Log an attack output to the centralized system. Args: attack_type: Type of attack (e.g., 'SSHBruteforce', 'FTPBruteforce', 'SQLConnector') target_ip: IP address of the target target_port: Port number (optional) status: Attack

(self, attack_type, target_ip, target_port='', status='unknown', 
                   message='', details=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

log_successMethod · 0.95
log_failureMethod · 0.95
log_timeoutMethod · 0.95

Calls 3

debugMethod · 0.80
warningMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected