get_behaviour_pcap: Get Behaviour PCAP File

View source: R/get_behaviour_pcap.R

get_behaviour_pcapR Documentation

Get Behaviour PCAP File

Description

Retrieves the PCAP (network capture) file from a sandbox analysis.

Usage

get_behaviour_pcap(sandbox_id = NULL, output_path = NULL, ...)

Arguments

sandbox_id

Sandbox report ID (character string). Required.

output_path

Local path to save the PCAP file. Optional.

...

Additional arguments passed to httr::GET.

Value

Raw PCAP content or saves to file if output_path specified

References

https://docs.virustotal.com/reference

See Also

set_key for setting the API key, get_behaviour_report for JSON report

Examples

## Not run: 

# Before calling the function, set the API key using set_key('api_key_here')

pcap <- get_behaviour_pcap(sandbox_id='hash_sandboxname')
get_behaviour_pcap(sandbox_id='hash_sandboxname',
                   output_path='/tmp/capture.pcap')

## End(Not run)

virustotal documentation built on April 13, 2026, 9:07 a.m.