mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
hb-honeypot: init at 0-unstable-2024-02-13
This commit is contained in:
parent
27ca7f6a04
commit
e4a57fcbe0
38
pkgs/by-name/hb/hb-honeypot/package.nix
Normal file
38
pkgs/by-name/hb/hb-honeypot/package.nix
Normal file
@ -0,0 +1,38 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, makeWrapper
|
||||
, perl
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "hb-honeypot";
|
||||
version = "0-unstable-2024-02-13";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "D3vil0p3r";
|
||||
repo = "hb-honeypot";
|
||||
rev = "06ca7336bfb7deca54eae2cee239496d26f21b5b";
|
||||
hash = "sha256-vnq7u/sqDLD+PsZ9DlxfjNuTkO8lhZujjAgmTcWf/3I=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/{bin,share/hb-honeypot}
|
||||
cp hb-honeypot.pl $out/share/hb-honeypot/
|
||||
makeWrapper ${perl}/bin/perl $out/bin/hb-honeypot \
|
||||
--add-flags "$out/share/hb-honeypot/hb-honeypot.pl"
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Script that listens on TCP port 443 and responds with completely bogus SSL heartbeat responses";
|
||||
mainProgram = "hb-honeypot";
|
||||
homepage = "https://github.com/D3vil0p3r/hb-honeypot";
|
||||
maintainers = with maintainers; [ d3vil0p3r ];
|
||||
platforms = platforms.unix;
|
||||
license = licenses.gpl3Plus;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user