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:
+22
-1
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user