summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorD3vil0p3r <vozaanthony@gmail.com>2024-07-29 15:10:23 +0200
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2024-08-06 07:36:27 +0000
commitd0ee6253a86b42f4afd8d7164af9ab6753178776 (patch)
tree2caf72576887db7c39bae08aea931c1306a2ea4f
parentMerge pull request #332549 from NixOS/backport-329893-to-release-24.05 (diff)
downloadnixpkgs-d0ee6253a86b42f4afd8d7164af9ab6753178776.tar.gz
villain: init at 2.1.0
(cherry picked from commit 3c282dcb850e40041d4aefd8584896634f786488)
-rw-r--r--pkgs/by-name/vi/villain/package.nix50
1 files changed, 50 insertions, 0 deletions
diff --git a/pkgs/by-name/vi/villain/package.nix b/pkgs/by-name/vi/villain/package.nix
new file mode 100644
index 000000000000..35db4e3d3b7f
--- /dev/null
+++ b/pkgs/by-name/vi/villain/package.nix
@@ -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;
+ };
+}