Update screenshotBOF.cna

This commit is contained in:
CodeX 2022-10-26 14:50:39 +08:00 committed by GitHub
parent 4f66ef6b8e
commit 263b680944
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -7,7 +7,11 @@ beacon_command_register(
alias screenshot_bof {
local('$barch $handle $data $args $target_pid');
println(@_);
if (size(@_) != 2)
{
berror($1, "Please specify a filename. e.g. screenshot_bof screen.bmp");
return;
}
# figure out the arch of this session
$barch = barch($1);
# read in the right BOF file