Skip to content

Commit

Permalink
add darkvault fix dragonforce
Browse files Browse the repository at this point in the history
  • Loading branch information
joshhighet committed Apr 11, 2024
1 parent b8be90f commit 305021e
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 1 deletion.
3 changes: 3 additions & 0 deletions assets/parsers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ while read -r line; do
if [[ ${line} =~ %s ]]; then
line=${line//%s/grep -oE}
fi
if [[ ${line} =~ \\\\ ]]; then
line=${line//\\\\/\\}
fi
results=`echo "${line}" | bash`
if [ -z "${results}" ]; then
echo "${line}"
Expand Down
20 changes: 20 additions & 0 deletions groups.json
Original file line number Diff line number Diff line change
Expand Up @@ -5773,5 +5773,25 @@
}
],
"profile": []
},
{
"name": "darkvault",
"captcha": false,
"parser": false,
"javascript_render": false,
"meta": null,
"locations": [
{
"fqdn": "mdhby62yvvg6sd5jmx5gsyucs7ynb5j45lvvdh4dsymg43puitu7tfid.onion",
"title": "DarkVault BLOG",
"version": 3,
"slug": "http://mdhby62yvvg6sd5jmx5gsyucs7ynb5j45lvvdh4dsymg43puitu7tfid.onion",
"available": true,
"updated": "2024-04-11 12:02:44.533619",
"lastscrape": "2024-04-11 12:02:44.533608",
"enabled": true
}
],
"profile": []
}
]
13 changes: 12 additions & 1 deletion parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1258,7 +1258,7 @@ def dragonforce():
stdlog('parser: ' + 'dragonforce')
# grep -o 'href="https://[^"]*' source/dragonforce-*.html | sed 's/href="//'
parser = '''
jq '.data.publications.[].site' -r source/dragonforce-*.html || true
cat source/dragonforce-z3wqggtxft*.html | jq ".data.publications.[].site" -r || true
'''
posts = runshellcmd(parser)
if len(posts) == 1:
Expand Down Expand Up @@ -1398,3 +1398,14 @@ def redransomware():
errlog('redransomware: ' + 'parsing fail')
for post in posts:
appender(post, 'redransomware')

def darkvault():
stdlog('parser: ' + 'darkvault')
parser = '''
cat source/darkvault-*.html | awk 'BEGIN{RS="<div class=\\"post-title\\">"; FS="</div>"} NR>1 {print $1}' || true
'''
posts = runshellcmd(parser)
if len(posts) == 1:
errlog('darkvault: ' + 'parsing fail')
for post in posts:
appender(post, 'darkvault')
1 change: 1 addition & 0 deletions ransomwatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,4 +301,5 @@ def appender(name, location):
parsers.donex()
parsers.killsecurity()
parsers.redransomware()
parsers.darkvault()
stdlog('ransomwatch: ' + 'parse run complete')
Empty file.

0 comments on commit 305021e

Please sign in to comment.