Skip to content

Commit 132ec2d

Browse files
authored
Create scc.nix
1 parent 1c44daa commit 132ec2d

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

scc.nix

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# binaryninja shellcode compiler (scc) for nixos.
2+
{ pkgs ? import <nixpkgs> { system = builtins.currentSystem; },
3+
lib ? pkgs.lib,
4+
buildFHSEnv ? pkgs.buildFHSEnv,
5+
writeScript ? pkgs.writeScript
6+
}:
7+
8+
buildFHSEnv {
9+
name = "scc";
10+
targetPkgs = pkgs: with pkgs; [
11+
dbus
12+
fontconfig
13+
freetype
14+
libGL
15+
libxkbcommon
16+
python38
17+
xorg.libX11
18+
xorg.libxcb
19+
xorg.xcbutilimage
20+
xorg.xcbutilkeysyms
21+
xorg.xcbutilrenderutil
22+
xorg.xcbutilwm
23+
wayland
24+
zlib
25+
];
26+
runScript = writeScript "scc.sh" ''
27+
set -e
28+
exec "/opt/binaryninja/plugins/scc" # change this path if your location is not located in /opt/binaryninja
29+
'';
30+
meta = {
31+
description = "scc - shellcode compiler";
32+
platforms = [ "x86_64-linux" ];
33+
};
34+
}

0 commit comments

Comments
 (0)