Skip to content

Instantly share code, notes, and snippets.

@JJ
Last active November 28, 2022 07:27
Show Gist options
  • Save JJ/91651e37a162dda8f7b464e8920987a4 to your computer and use it in GitHub Desktop.
Save JJ/91651e37a162dda8f7b464e8920987a4 to your computer and use it in GitHub Desktop.
Parsing malware files by @terceranexus6
my $c = 1;
for "$fo/$fi".IO.lines -> $line {
# If the line contains the gene, print it
if $line ~~ &sparkling_goblin {say "Sparkling Goblin found: "; say $line; say "in line $c"; say "in file $fi"; say " "; }
#if $line ~~ &sparkling2 {say "Sparkling Goblin complex regex found: "; say $line; say "in line $c"; say " "; }
$c++;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment