Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nikto: init at 2.2.0 #111299

Merged
merged 1 commit into from Jan 31, 2021
Merged

nikto: init at 2.2.0 #111299

merged 1 commit into from Jan 31, 2021

Conversation

SCOTT-HAMILTON
Copy link
Contributor

@SCOTT-HAMILTON SCOTT-HAMILTON commented Jan 30, 2021

Motivation for this change

I started to work on pentesting skills and nikto is a good tool to have.

Things done

Packaged nikto to 2.2.0 unofficial release (it's the latest commit of the 2.2.0 branch).

  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

src = fetchFromGitHub {
owner = "sullo";
repo = "nikto";
rev = "c83d0461edd75c02677dea53da2896644f35ecab";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you request tags upstream? This makes updating much easier.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is already an open issue for that.

pkgs/tools/networking/nikto/default.nix Outdated Show resolved Hide resolved
pkgs/tools/networking/nikto/default.nix Outdated Show resolved Hide resolved
pkgs/tools/networking/nikto/default.nix Outdated Show resolved Hide resolved
@fabaff
Copy link
Member

fabaff commented Jan 30, 2021

Related to #81418

@fabaff
Copy link
Member

fabaff commented Jan 30, 2021

Result of nixpkgs-review pr 111299 run on x86_64-linux 1

1 package built:
  • nikto

@fabaff
Copy link
Member

fabaff commented Jan 30, 2021

Package seems to work.

...ew/pr-111299]$ ./results/nikto/bin/nikto -host 192.168.1.1
- Nikto v2.2.0
---------------------------------------------------------------------------
+ Target IP:          192.168.1.1
+ Target Hostname:    192.168.1.1
+ Target Port:        80
+ Start Time:         2021-01-30 17:40:00 (GMT1)
---------------------------------------------------------------------------
+ Server: lighttpd/1.4.39
+ Allowed HTTP Methods: OPTIONS, GET, HEAD, POST .
+ 8201 requests: 0 error(s) and 3 item(s) reported on remote host
+ End Time:           2021-01-30 17:41:41 (GMT1) (101 seconds)
---------------------------------------------------------------------------
+ 1 host(s) tested

@siraben
Copy link
Member

siraben commented Jan 31, 2021

Also works on macOS

$ ./result/bin/nikto -host 192.168.0.1      
- Nikto v2.2.0
---------------------------------------------------------------------------
+ Target IP:          192.168.0.1
+ Target Hostname:    192.168.0.1
+ Target Port:        80
+ Start Time:         2021-01-31 12:10:16 (GMT7)
---------------------------------------------------------------------------

pkgs/tools/networking/nikto/default.nix Outdated Show resolved Hide resolved
@SuperSandro2000 SuperSandro2000 merged commit b647967 into NixOS:master Jan 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants