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. openssh # Ssh client.
parallel # Run programs in parallel. parallel # Run programs in parallel.
pv # IO progress bar. pv # IO progress bar.
radare2 # Hex editor.
ripgrep # Grep for file search. ripgrep # Grep for file search.
rsync # File copy tool. rsync # File copy tool.
sqlite # Serverless file-based database engine. sqlite # Serverless file-based database engine.

View file

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

View file

@ -67,6 +67,11 @@
block = true; block = true;
run = openWith "unpack"; run = openWith "unpack";
}]; }];
hex = [{
desc = "Hex";
block = true;
run = openWith "radare2 -c V";
}];
}; };
open = { open = {
@ -75,15 +80,16 @@
in [ in [
(mkRule "application/gzip" "archive") (mkRule "application/gzip" "archive")
(mkRule "application/json" "text") (mkRule "application/json" "text")
(mkRule "application/octet-stream" [ "text" "hex" ])
(mkRule "application/pdf" "pdf") (mkRule "application/pdf" "pdf")
(mkRule "application/x-tar" "archive") (mkRule "application/x-tar" "archive")
(mkRule "application/x-xz" "archive") (mkRule "application/x-xz" "archive")
(mkRule "application/zip" "archive") (mkRule "application/zip" "archive")
(mkRule "audio/*" "audio") (mkRule "audio/*" "audio")
(mkRule "image/*" "image") (mkRule "image/*" "image")
(mkRule "text/html" [ "browser" "text" ])
(mkRule "text/*" "text") (mkRule "text/*" "text")
(mkRule "video/*" "video") (mkRule "video/*" "video")
(mkRule "text/html" [ "browser" "text" ])
(mkRule "application/vnd.openxmlformats-officedocument.*" "document") (mkRule "application/vnd.openxmlformats-officedocument.*" "document")
]; ];
}; };