You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
325 B
18 lines
325 B
library(zeekr)
|
|
|
|
if (Sys.info()["sysname"] == "Darwin") {
|
|
|
|
Sys.setenv(ZEEK_PATH = "/opt/homebrew/bin:/usr/local/bin")
|
|
|
|
loc <- tryCatch(
|
|
pcap_to_zeek(system.file("pcap/ssh.pcap", package = "zeekr")),
|
|
error = function(e) message("No Zeek")
|
|
)
|
|
|
|
if (!is.null(loc)) {
|
|
read_zeek_logs(loc)
|
|
unlink(loc)
|
|
}
|
|
|
|
}
|
|
|
|
|