feat: fixed server comp, added ELF inject

I gave up and just put it in a Docker image, it's not as important as
the beacons being statically compiled
This commit is contained in:
Andrew Rioux
2025-02-04 16:41:20 -05:00
parent 00331ec550
commit 90c8b97141
53 changed files with 1477 additions and 94 deletions
+22 -1
View File
@@ -1,4 +1,5 @@
{ pkgs, libnl-src, libpcap-src, winpcap-installer, freebsd-libs-packed }:
{ pkgs, libcap-src, libnl-src, libpcap-src, winpcap-installer
, freebsd-libs-packed }:
let
freebsd-libs = pkgs.stdenv.mkDerivation {
name = "freebsd-libs";
@@ -81,6 +82,26 @@ in {
'';
};
libcap = pkgs.stdenv.mkDerivation {
name = "libcap-static";
nativeBuildInputs = with pkgs; [ clang musl ];
src = libcap-src;
buildPhase = ''
export BUILD_CC=musl-clang
export CC=musl-gcc
export CXX=musl-gcc
make -C libcap
'';
installPhase = ''
mkdir -p $out/lib
cp -a libcap/* $out/lib
'';
};
libpcap-linux-gnu = pkgs.stdenv.mkDerivation {
name = "libpcap-static-linux-gnu";