mirror of
https://github.com/trailofbits/buttercup
synced 2026-06-21 14:11:39 +00:00
Parse result logs (#326)
* Add doc on parsing logs and scripts to unpack dataset * Reorganize scripts * Reorg markdown files.
This commit is contained in:
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ "$#" -ne 1 ]; then
|
||||
echo "usage: $0 <keyword>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
find tasks_storage -name "task_meta.json" -exec grep -rIil "$1" {} \; | cut -d '/' -f 1-2 | sort -u
|
||||
Executable
+20
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ "$#" -ne 0 ]; then
|
||||
echo "usage: $0"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Clean up
|
||||
rm -rf tasks_storage
|
||||
|
||||
# Unpack
|
||||
tar xvf tasks_storage.tar
|
||||
|
||||
# Decompress
|
||||
for fn in `find tasks_storage -name *.tgz`; do
|
||||
dst="${fn%.tgz}"
|
||||
mkdir $dst
|
||||
tar xvzf $fn -C $dst
|
||||
rm $fn
|
||||
done
|
||||
Reference in New Issue
Block a user