diff --git a/test/mock_windows.uts b/test/mock_windows.uts index ce7391c5c1edf835417c4440a8bfeb68234d26bf..1f0fbb96a6d5e23161afae9bf6bf73b1c474d5ba 100644 --- a/test/mock_windows.uts +++ b/test/mock_windows.uts @@ -197,6 +197,12 @@ for i in ps_read_routes: assert _correct +conf.prog.powershell = win_find_exe( + "powershell", + installsubdir="System32\\WindowsPowerShell\\v1.0", + env="SystemRoot" + ) + = show_interfaces from scapy.arch import show_interfaces @@ -223,3 +229,20 @@ assert test_show_interfaces() from scapy.config import conf assert dev_from_pcapname(conf.iface.pcap_name).guid == conf.iface.guid + += test pcap_service_status + +status = pcap_service_status() +status +assert status[0] in ["npcap", "npf"] +assert status[2] == True + += test pcap_service_stop + +pcap_service_stop() +assert pcap_service_status()[2] == False + += test pcap_service_start + +pcap_service_start() +assert pcap_service_status()[2] == True \ No newline at end of file