-
Notifications
You must be signed in to change notification settings - Fork 1
Writeup: Advent of Cyber 3 Day 21
Link: Advent Of Cyber 3 on TryHackMe
We changed the text in the string $a as shown in the eicaryara rule we wrote, from X5O to X50, that is, we replaced the letter O with the number 0. The condition for the Yara rule is $a and $b and $c and $d
. If we are to only make a change to the first boolean operator in this condition, what boolean operator shall we replace the 'and' with, in order for the rule to still hit the file?
Answer: or
What option is used in the Yara command in order to list down the metadata of the rules that are a hit to a file?
Answer: -m
What section contains information about the author of the Yara rule?
Answer: metadata
What option is used to print only rules that did not hit?
From the documentation:
Answer: -n
Change the Yara rule value for the $a
string to X50
. Rerun the command, but this time with the -c option. What is the result?
YARA file:
rule eicaryara {
meta:
author="tryhackme"
description="eicar string"
strings:
$a="X5O"
$b="EICAR"
$c="ANTIVIRUS"
$d="TEST"
condition:
$a and $b and $c and $d
}
Command: yara -c eicaryara testfile
Answer: 0