Created
February 21, 2020 01:18
-
-
Save scudette/d21478140e75de76e738c2bb6417df29 to your computer and use it in GitHub Desktop.
Bruteforce scan for URLs in Edge folders
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows.Applications.EdgeUrls | |
description: | | |
Scan anything that looks like a URL in Edge folders. | |
parameters: | |
- name: EdgeGlob | |
default: C:/Users/*/AppData/Local/Packages/Microsoft.MicrosoftEdge_*/** | |
- name: URLYaraRule | |
default: | | |
rule URL { | |
strings: $a = /https?:\/\/[a-z0-9\/+&#:\?.-]+/i | |
condition: any of them | |
} | |
sources: | |
- queries: | |
- SELECT * FROM foreach( | |
row={ | |
SELECT FullPath FROM glob(globs=EdgeGlob) | |
}, query={ | |
SELECT str(str=String.Data) AS Hit, | |
String.Offset AS Offset, | |
FileName | |
FROM yara(files=FullPath, rules=URLYaraRule) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment