Skip to content

Instantly share code, notes, and snippets.

@scudette
Created February 21, 2020 01:18
Show Gist options
  • Save scudette/d21478140e75de76e738c2bb6417df29 to your computer and use it in GitHub Desktop.
Save scudette/d21478140e75de76e738c2bb6417df29 to your computer and use it in GitHub Desktop.
Bruteforce scan for URLs in Edge folders
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