Slips
Stratosphere Linux IPS
Loading...
Searching...
No Matches
utils.py File Reference

Namespaces

namespace  StratosphereLinuxIPS
 
namespace  StratosphereLinuxIPS.modules
 
namespace  StratosphereLinuxIPS.modules.p2ptrust
 
namespace  StratosphereLinuxIPS.modules.p2ptrust.utils
 
namespace  StratosphereLinuxIPS.modules.p2ptrust.utils.utils
 

Functions

bool StratosphereLinuxIPS.modules.p2ptrust.utils.utils.validate_ip_address (str ip)
 
Union[int, None] StratosphereLinuxIPS.modules.p2ptrust.utils.utils.validate_timestamp (str timestamp)
 
list StratosphereLinuxIPS.modules.p2ptrust.utils.utils.validate_go_reports (str data)
 
(float, float) StratosphereLinuxIPS.modules.p2ptrust.utils.utils.get_ip_info_from_slips (str ip_address)
 
(float, float) StratosphereLinuxIPS.modules.p2ptrust.utils.utils.read_data_from_ip_info (dict ip_info)
 
 StratosphereLinuxIPS.modules.p2ptrust.utils.utils.save_ip_report_to_db (ip, score, confidence, network_trust, timestamp=None)
 
dict StratosphereLinuxIPS.modules.p2ptrust.utils.utils.build_go_message (str message_type, str key_type, str key, str evaluation_type, evaluation=None)
 
dict StratosphereLinuxIPS.modules.p2ptrust.utils.utils.build_score_confidence (float score, float confidence)
 
None StratosphereLinuxIPS.modules.p2ptrust.utils.utils.send_evaluation_to_go (str ip, float score, float confidence, str recipient, str channel_name)
 
None StratosphereLinuxIPS.modules.p2ptrust.utils.utils.send_empty_evaluation_to_go (str ip, str recipient, str channel_name)
 
 StratosphereLinuxIPS.modules.p2ptrust.utils.utils.send_message_to_go (str ip, str recipient, str channel_name, Dict msg)
 
None StratosphereLinuxIPS.modules.p2ptrust.utils.utils.send_blame_to_go (str ip, float score, float confidence, str channel_name)
 
None StratosphereLinuxIPS.modules.p2ptrust.utils.utils.send_request_to_go (str ip, str channel_name)
 
None StratosphereLinuxIPS.modules.p2ptrust.utils.utils.send_b64_to_go (str message, str recipient, str channel_name)
 
str StratosphereLinuxIPS.modules.p2ptrust.utils.utils.read_configuration (config, str section, str name)
 

Variables

dict StratosphereLinuxIPS.modules.p2ptrust.utils.utils.threat_levels