1 { lib, fetchFromGitHub, python3Packages, makeWrapper, metasploit }:
3 python3Packages.buildPythonApplication rec {
4 pname = "social-engineer-toolkit";
8 src = fetchFromGitHub {
12 sha256 = "ePbmUvnzLO0Wfuhym3bNSPV1x8rcCPqKMeWSRcbJGAo=";
16 substituteInPlace setoolkit \
17 --replace "src/core/config.baseline" "$out/share/social-engineer-toolkit/src/core/config.baseline"
18 substituteInPlace src/core/setcore.py \
19 --replace '"src/core/set.version"' "\"$out/share/social-engineer-toolkit/src/core/set.version\"" \
20 --replace "/opt/metasploit-framework" "${metasploit}/bin"
27 propagatedBuildInputs = with python3Packages; [
36 # Has been abandoned upstream. Features using this library are broken
43 install -Dt $out/bin setoolkit seautomate seproxy
44 mkdir -p $out/share/social-engineer-toolkit
45 cp -r modules readme src $out/share/social-engineer-toolkit/
51 "--chdir ${placeholder "out"}/share/social-engineer-toolkit"
52 "--prefix PYTHONPATH : \"${placeholder "out"}/share/social-engineer-toolkit\""
55 # Project has no tests
59 description = "Open-source penetration testing framework designed for social engineering";
61 The Social-Engineer Toolkit is an open-source penetration testing framework
62 designed for social engineering. SET has a number of custom attack vectors
63 that allow you to make a believable attack quickly.
65 homepage = "https://github.com/trustedsec/social-engineer-toolkit";
66 mainProgram = "setoolkit";
67 license = licenses.bsd3;
68 maintainers = with maintainers; [ emilytrau ];