Skip to content

Commit

Permalink
Update config_parser.py added description for analysis_direction
Browse files Browse the repository at this point in the history
  • Loading branch information
Sekhar-Kumar-Dash authored Mar 22, 2024
1 parent 30ccbd6 commit a1fcedb
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion slips_files/common/parsers/config_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,16 @@ def timeline_human_timestamp(self):
)

def analysis_direction(self):
"""
Controls which traffic flows are processed and analyzed by SLIPS.
Determines whether SLIPS should focus on:
- 'out' mode: Analyzes only outbound traffic (potential data exfiltration)
- 'all' mode: Analyzes traffic in both directions (inbound and outbound)
Returns:
str or False: The value of the 'analysis_direction' parameter, or False if not found.
"""
return self.read_configuration(
'parameters', 'analysis_direction', False
)
Expand Down Expand Up @@ -779,4 +789,4 @@ def get_memory_profiler_mode(self):
return self.read_configuration('Profiling', 'memory_profiler_mode', 'dev')

def get_memory_profiler_multiprocess(self):
return self.read_configuration('Profiling', 'memory_profiler_multiprocess', 'yes')
return self.read_configuration('Profiling', 'memory_profiler_multiprocess', 'yes')

0 comments on commit a1fcedb

Please sign in to comment.