-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
40 lines (29 loc) · 1.41 KB
/
main.py
File metadata and controls
40 lines (29 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# obteniendo una lista de pods con los datos que nos interesan
from concurrent.futures import ProcessPoolExecutor
from functions.other_functions import delete_directory_content
from functions.analize_multi_pcaps import search_packet_share
from functions.analize_multi_pcaps import analyze_multiple_pcaps
from functions.analize_multi_pcaps import consolidate_packets_by_time
from functions.operate_pcaps import generate_txt_packets
from functions.analize_grpc_packets import process_pcap_grpc, process_pcap_grpc_scapy
from functions.paralelize import *
from variables.init_vars import *
from functions.get_new_pcaps import get_new_pcaps
get_new_pcaps(pods_list, v1, ping, curl)
from functions.visualize_pcaps import create_all_graph
from functions.operate_pcaps import pcaps_conf
print(services_dict_name_port)
print(pcaps_conf)
# eliminamos los archivos existentes
delete_directory_content("archives/tcpdumps/pods_traffic")
delete_directory_content("archives/tcpdumps/statistics_pods_traffic")
delete_directory_content("archives/tcpdumps/content_tcp")
delete_directory_content("archives/logs")
delete_directory_content("archives/imgs/dinamic_html")
delete_directory_content("archives/imgs/pods_traffic")
if turbo:
process_all_pcaps(pcaps_conf, pods_dict, services_dict_name_port)
else:
create_all_graph(pods_dict, pcaps_conf, services_dict_name_port)
# Analizar todos los pcaps
analyze_multiple_pcaps(pcaps_conf, seePerSecond)