git.iko.soy/typeable/nixpkgs
on master help sign in
wapiti: init at 3.0.4
commitbe91fea7b7fa5825934729d72411405d72a62c4b authorFabian Affolter <mail@fabian-affolter.ch> dateWed 31 Mar 2021, 13:43 (6 years ago) parent2a74bb0
2 files changed+108
pkgs/tools/security/wapiti/default.nix+106 pkgs/top-level/all-packages.nix+2
pkgs/tools/security/wapiti/default.nixnew file+106
@@ -0,0 +1,106 @@
1+{ lib
2+, fetchFromGitHub
3+, python3
4+}:
5+
6+python3.pkgs.buildPythonApplication rec {
7+ pname = "wapiti";
8+ version = "3.0.4";
9+
10+ src = fetchFromGitHub {
11+ owner = "wapiti-scanner";
12+ repo = pname;
13+ rev = version;
14+ sha256 = "0wnz4nq1q5y74ksb1kcss9vdih0kbrmnkfbyc2ngd9id1ixfamxb";
15+ };
16+
17+ nativeBuildInputs = with python3.pkgs; [
18+ pytest-runner
19+ ];
20+
21+ propagatedBuildInputs = with python3.pkgs; [
22+ beautifulsoup4
23+ browser-cookie3
24+ Mako
25+ markupsafe
26+ pysocks
27+ requests
28+ six
29+ tld
30+ yaswfp
31+ ] ++ lib.optionals (python3.pythonOlder "3.8") [ importlib-metadata ];
32+
33+ checkInputs = with python3.pkgs; [
34+ responses
35+ pytestCheckHook
36+ ];
37+
38+ postPatch = ''
39+ # Is already fixed in the repo. Will be part of the next release
40+ substituteInPlace setup.py \
41+ --replace "importlib_metadata==2.0.0" "importlib_metadata"
42+ '';
43+
44+ disabledTests = [
45+ # Tests requires network access
46+ "test_attr"
47+ "test_bad_separator_used"
48+ "test_blind"
49+ "test_chunked_timeout"
50+ "test_cookies_detection"
51+ "test_csrf_cases"
52+ "test_detection"
53+ "test_direct"
54+ "test_escape_with_style"
55+ "test_explorer_filtering"
56+ "test_false"
57+ "test_frame"
58+ "test_headers_detection"
59+ "test_html_detection"
60+ "test_implies_detection"
61+ "test_inclusion_detection"
62+ "test_meta_detection"
63+ "test_no_crash"
64+ "test_options"
65+ "test_out_of_band"
66+ "test_partial_tag_name_escape"
67+ "test_prefix_and_suffix_detection"
68+ "test_qs_limit"
69+ "test_rare_tag_and_event"
70+ "test_redirect_detection"
71+ "test_request_object"
72+ "test_script"
73+ "test_ssrf"
74+ "test_tag_name_escape"
75+ "test_timeout"
76+ "test_title_false_positive"
77+ "test_title_positive"
78+ "test_true_positive_request_count"
79+ "test_url_detection"
80+ "test_warning"
81+ "test_whole"
82+ "test_xss_inside_tag_input"
83+ "test_xss_inside_tag_link"
84+ "test_xss_uppercase_no_script"
85+ "test_xss_with_strong_csp"
86+ "test_xss_with_weak_csp"
87+ "test_xxe"
88+ ];
89+
90+ pythonImportsCheck = [ "wapitiCore" ];
91+
92+ meta = with lib; {
93+ description = "Web application vulnerability scanner";
94+ longDescription = ''
95+ Wapiti allows you to audit the security of your websites or web applications.
96+ It performs "black-box" scans (it does not study the source code) of the web
97+ application by crawling the webpages of the deployed webapp, looking for
98+ scripts and forms where it can inject data. Once it gets the list of URLs,
99+ forms and their inputs, Wapiti acts like a fuzzer, injecting payloads to see
100+ if a script is vulnerable.
101+ '';
102+ homepage = "https://wapiti-scanner.github.io/";
103+ license = with licenses; [ gpl2Only ];
104+ maintainers = with maintainers; [ fab ];
105+ };
106+}
pkgs/top-level/all-packages.nix+2
@@ -26242,6 +26242,8 @@ in
2624226242 pythonPackages = python3Packages;
2624326243 };
2624426244
26245+ wapiti = callPackage ../tools/security/wapiti { };
26246+
2624526247 way-cooler = throw ("way-cooler is abandoned by its author: " +
2624626248 "https://way-cooler.org/blog/2020/01/09/way-cooler-post-mortem.html");
2624726249