Package : Add radare2.

This commit is contained in:
Dmitry Voronin 2024-06-24 15:24:31 +03:00
parent c6ce97e319
commit 23d036b676
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
3 changed files with 15 additions and 7 deletions

View file

@ -19,6 +19,7 @@
openssh # Ssh client.
parallel # Run programs in parallel.
pv # IO progress bar.
radare2 # Hex editor.
ripgrep # Grep for file search.
rsync # File copy tool.
sqlite # Serverless file-based database engine.

View file

@ -31,6 +31,7 @@
nmap # Network analyzer.
parallel # Run programs in parallel.
pv # IO progress bar.
radare2 # Hex editor.
ripgrep # Grep for file search.
rsync # File copy tool.
scanmem # Memory edit tool.

View file

@ -67,23 +67,29 @@
block = true;
run = openWith "unpack";
}];
hex = [{
desc = "Hex";
block = true;
run = openWith "radare2 -c V";
}];
};
open = {
rules = let
mkRule = mime: use: { inherit mime use; };
in [
(mkRule "application/gzip" "archive")
(mkRule "application/json" "text")
(mkRule "application/pdf" "pdf")
(mkRule "application/x-tar" "archive")
(mkRule "application/x-xz" "archive")
(mkRule "application/zip" "archive")
(mkRule "application/gzip" "archive")
(mkRule "application/json" "text")
(mkRule "application/octet-stream" [ "text" "hex" ])
(mkRule "application/pdf" "pdf")
(mkRule "application/x-tar" "archive")
(mkRule "application/x-xz" "archive")
(mkRule "application/zip" "archive")
(mkRule "audio/*" "audio")
(mkRule "image/*" "image")
(mkRule "text/html" [ "browser" "text" ])
(mkRule "text/*" "text")
(mkRule "video/*" "video")
(mkRule "text/html" [ "browser" "text" ])
(mkRule "application/vnd.openxmlformats-officedocument.*" "document")
];
};