2020-04-24 23:36:52 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, chardet
|
2021-01-15 22:18:51 +00:00
|
|
|
, colorama
|
2020-04-24 23:36:52 +00:00
|
|
|
, configparser
|
|
|
|
, fetchFromGitHub
|
|
|
|
, future
|
|
|
|
, isPy27
|
|
|
|
, lib
|
|
|
|
, mock
|
|
|
|
, netaddr
|
|
|
|
, pkgs
|
|
|
|
, pycurl
|
2021-01-15 22:18:51 +00:00
|
|
|
, pyparsing
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest
|
2021-01-15 22:18:51 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, setuptools
|
2020-04-24 23:36:52 +00:00
|
|
|
, six
|
2021-01-15 22:18:51 +00:00
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "wfuzz";
|
2021-01-15 22:18:51 +00:00
|
|
|
version = "3.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xmendez";
|
|
|
|
repo = pname;
|
2021-01-15 22:18:51 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1izasczm2zwknwzxbfzqhlf4zp02jvb54ha1hfk4rlwiz0rr1kj4";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
chardet
|
|
|
|
pycurl
|
|
|
|
six
|
2021-01-15 22:18:51 +00:00
|
|
|
setuptools
|
|
|
|
pyparsing
|
|
|
|
] ++ lib.optionals isPy27 [
|
|
|
|
mock
|
|
|
|
future
|
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isWindows [
|
|
|
|
colorama
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
checkInputs = [
|
|
|
|
netaddr
|
|
|
|
pytest
|
|
|
|
pytestCheckHook
|
|
|
|
] ++ lib.optionals isPy27 [
|
|
|
|
mock
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
preCheck = "export HOME=$(mktemp -d)";
|
|
|
|
# The skipped tests are requiring a local web server
|
|
|
|
pytestFlagsArray = [ "tests/test_{moduleman,filterintro,reqresp,api,clparser}.py" ];
|
|
|
|
pythonImportsCheck = [ "wfuzz" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-01-15 22:18:51 +00:00
|
|
|
description = "Web content fuzzer to facilitate web applications assessments";
|
|
|
|
longDescription = ''
|
|
|
|
Wfuzz provides a framework to automate web applications security assessments
|
|
|
|
and could help you to secure your web applications by finding and exploiting
|
|
|
|
web application vulnerabilities.
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://wfuzz.readthedocs.io";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = with licenses; [ gpl2Only ];
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ pamplemousse ];
|
|
|
|
};
|
|
|
|
}
|