blob: 4f2d5895cc789baae70aeae4be9bc4e3f8adaa06 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
{ lib, fetchFromGitHub, python3Packages, makeWrapper, metasploit }:
python3Packages.buildPythonApplication rec {
pname = "social-engineer-toolkit";
version = "8.0.3";
format = "other";
src = fetchFromGitHub {
owner = "trustedsec";
repo = pname;
rev = version;
sha256 = "ePbmUvnzLO0Wfuhym3bNSPV1x8rcCPqKMeWSRcbJGAo=";
};
postPatch = ''
substituteInPlace setoolkit \
--replace "src/core/config.baseline" "$out/share/social-engineer-toolkit/src/core/config.baseline"
substituteInPlace src/core/setcore.py \
--replace '"src/core/set.version"' "\"$out/share/social-engineer-toolkit/src/core/set.version\"" \
--replace "/opt/metasploit-framework" "${metasploit}/bin"
'';
nativeBuildInputs = [
makeWrapper
];
propagatedBuildInputs = with python3Packages; [
pexpect
pycrypto
requests
pyopenssl
pefile
impacket
qrcode
pillow
# Has been abandoned upstream. Features using this library are broken
# pymssql
];
installPhase = ''
runHook preInstall
install -Dt $out/bin setoolkit seautomate seproxy
mkdir -p $out/share/social-engineer-toolkit
cp -r modules readme src $out/share/social-engineer-toolkit/
runHook postInstall
'';
makeWrapperArgs = [
"--chdir ${placeholder "out"}/share/social-engineer-toolkit"
"--prefix PYTHONPATH : \"${placeholder "out"}/share/social-engineer-toolkit\""
];
# Project has no tests
doCheck = false;
meta = with lib; {
description = "Open-source penetration testing framework designed for social engineering";
longDescription = ''
The Social-Engineer Toolkit is an open-source penetration testing framework
designed for social engineering. SET has a number of custom attack vectors
that allow you to make a believable attack quickly.
'';
homepage = "https://github.com/trustedsec/social-engineer-toolkit";
mainProgram = "setoolkit";
license = licenses.bsd3;
maintainers = with maintainers; [ emilytrau ];
};
}
|