diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2022-09-30 12:01:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-30 12:01:29 +0000 |
commit | bc5e570733f97ea75b54b263770afbaa9dc02d7d (patch) | |
tree | fff2a1ce851b1d2846eedb1d43eca9ce9ef476a1 /pkgs/tools/security | |
parent | f29cec4450f8531a1b614f8e15653170ad10ea71 (diff) | |
parent | 804837fd05f17a5241b48d8539d7958abf998a6e (diff) | |
download | nixpkgs-bc5e570733f97ea75b54b263770afbaa9dc02d7d.tar nixpkgs-bc5e570733f97ea75b54b263770afbaa9dc02d7d.tar.gz nixpkgs-bc5e570733f97ea75b54b263770afbaa9dc02d7d.tar.bz2 nixpkgs-bc5e570733f97ea75b54b263770afbaa9dc02d7d.tar.lz nixpkgs-bc5e570733f97ea75b54b263770afbaa9dc02d7d.tar.xz nixpkgs-bc5e570733f97ea75b54b263770afbaa9dc02d7d.tar.zst nixpkgs-bc5e570733f97ea75b54b263770afbaa9dc02d7d.zip |
Merge master into staging-next
Diffstat (limited to 'pkgs/tools/security')
-rw-r--r-- | pkgs/tools/security/amoco/default.nix | 72 | ||||
-rw-r--r-- | pkgs/tools/security/asnmap/default.nix | 28 | ||||
-rw-r--r-- | pkgs/tools/security/dnsx/default.nix | 6 |
3 files changed, 103 insertions, 3 deletions
diff --git a/pkgs/tools/security/amoco/default.nix b/pkgs/tools/security/amoco/default.nix new file mode 100644 index 00000000000..88f614e4c90 --- /dev/null +++ b/pkgs/tools/security/amoco/default.nix @@ -0,0 +1,72 @@ +{ lib +, fetchFromGitHub +, python3 +}: + +python3.pkgs.buildPythonApplication rec { + pname = "amoco"; + version = "2.9.8"; + format = "setuptools"; + + src = fetchFromGitHub { + owner = "bdcht"; + repo = pname; + rev = "v${version}"; + hash = "sha256-3+1ssFyU7SKFJgDYBQY0kVjmTHOD71D2AjnH+4bfLXo="; + }; + + nativeBuildInputs = with python3.pkgs; [ + pythonRelaxDepsHook + ]; + + propagatedBuildInputs = with python3.pkgs; [ + blessed + click + crysp + grandalf + pyparsing + tqdm + traitlets + ]; + + passthru.optional-dependencies = { + app = with python3.pkgs; [ + # ccrawl + ipython + prompt-toolkit + pygments + # pyside6 + z3 + ]; + }; + + checkInputs = with python3.pkgs; [ + pytestCheckHook + ]; + + postPatch = '' + substituteInPlace setup.py \ + --replace "'pytest-runner'," "" + ''; + + pythonRelaxDeps = [ + "grandalf" + "crysp" + ]; + + pythonImportsCheck = [ + "amoco" + ]; + + disabledTests = [ + # AttributeError: 'str' object has no attribute '__dict__' + "test_func" + ]; + + meta = with lib; { + description = "Tool for analysing binaries"; + homepage = "https://github.com/bdcht/amoco"; + license = licenses.gpl2Only; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/tools/security/asnmap/default.nix b/pkgs/tools/security/asnmap/default.nix new file mode 100644 index 00000000000..3e4072c8eaa --- /dev/null +++ b/pkgs/tools/security/asnmap/default.nix @@ -0,0 +1,28 @@ +{ lib +, buildGoModule +, fetchFromGitHub +}: + +buildGoModule rec { + pname = "asnmap"; + version = "0.0.1"; + + src = fetchFromGitHub { + owner = "projectdiscovery"; + repo = pname; + rev = "v${version}"; + hash = "sha256-NdD1b/yHB1fizAl/5UsksQ5jrj1OW46Ff4eABPPam7w="; + }; + + vendorHash = "sha256-/L3fGDa3aJit9forggszIjpekowh4LbNhxiJjHhzARs="; + + # Tests require network access + doCheck = false; + + meta = with lib; { + description = "Tool to gather network ranges using ASN information"; + homepage = "https://github.com/projectdiscovery/asnmap"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/tools/security/dnsx/default.nix b/pkgs/tools/security/dnsx/default.nix index c316ab35b6d..f6ae5a5f158 100644 --- a/pkgs/tools/security/dnsx/default.nix +++ b/pkgs/tools/security/dnsx/default.nix @@ -5,16 +5,16 @@ buildGoModule rec { pname = "dnsx"; - version = "1.1.0"; + version = "1.1.1"; src = fetchFromGitHub { owner = "projectdiscovery"; repo = "dnsx"; rev = "v${version}"; - sha256 = "sha256-tcUVJ/qcQGivcAjWkcfv1fZxc9F5cYn1stpCHDoJRps="; + sha256 = "sha256-5ZWBUgW3esdH+9APU5Z9Hn9VtA6VQqvUfJp5C42791k="; }; - vendorSha256 = "sha256-hGV44Rx5kX2ZVBsTyeWm5SzpXzlTFNidt7bwzntboQo="; + vendorSha256 = "sha256-71JqgJZyx+9NTw08D7V5PPc84ExjGYdieCvFPTDSrs8="; meta = with lib; { description = "Fast and multi-purpose DNS toolkit"; |