villain: init at 2.1.0

This commit is contained in:
D3vil0p3r 2024-07-29 15:10:23 +02:00
parent 2a067b1872
commit 3c282dcb85

View File

@ -0,0 +1,50 @@
{
lib,
fetchFromGitHub,
python3,
python3Packages,
makeWrapper,
}:
python3Packages.buildPythonApplication rec {
pname = "villain";
version = "2.1.0";
pyproject = false;
src = fetchFromGitHub {
owner = "t3l3machus";
repo = "Villain";
rev = "v${version}";
hash = "sha256-8MOpbyw4HEJMcv84bNkNLBSZfEmIm3RDSUi0s62t9ko=";
};
nativeBuildInputs = [ makeWrapper ];
dependencies = with python3Packages; [
gnureadline
netifaces
pycryptodomex
pyperclip
requests
];
installPhase = ''
runHook preInstall
mkdir -p $out/{bin,share/villain}
rm README.md requirements.txt LICENSE.md
cp -a * $out/share/villain/
makeWrapper ${python3}/bin/python $out/bin/villain \
--add-flags "$out/share/villain/Villain.py" \
--prefix PYTHONPATH : ${python3Packages.makePythonPath dependencies}
runHook postInstall
'';
meta = {
description = "High level stage 0/1 C2 framework that can handle multiple TCP socket & HoaxShell-based reverse shells";
homepage = "https://github.com/t3l3machus/Villain";
license = lib.licenses.cc-by-nc-nd-40;
mainProgram = "villain";
maintainers = with lib.maintainers; [ d3vil0p3r ];
platforms = lib.platforms.unix;
};
}