ronin-nmap 0.1.0.rc1 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +1 -0
- data/.ruby-version +1 -1
- data/ChangeLog.md +6 -1
- data/README.md +1 -1
- data/data/completions/ronin-nmap +21 -13
- data/gemspec.yml +6 -5
- data/lib/ronin/nmap/cli/command.rb +2 -2
- data/lib/ronin/nmap/cli/commands/completion.rb +3 -2
- data/lib/ronin/nmap/cli/commands/convert.rb +3 -3
- data/lib/ronin/nmap/cli/commands/dump.rb +4 -4
- data/lib/ronin/nmap/cli/commands/grep.rb +1 -1
- data/lib/ronin/nmap/cli/commands/import.rb +4 -4
- data/lib/ronin/nmap/cli/commands/new.rb +3 -3
- data/lib/ronin/nmap/cli/commands/print.rb +4 -3
- data/lib/ronin/nmap/cli/commands/scan.rb +5 -5
- data/lib/ronin/nmap/cli/filtering_options.rb +2 -2
- data/lib/ronin/nmap/cli/importable.rb +3 -2
- data/lib/ronin/nmap/cli/port_list.rb +1 -1
- data/lib/ronin/nmap/cli.rb +3 -2
- data/lib/ronin/nmap/converter.rb +2 -2
- data/lib/ronin/nmap/converters/csv.rb +1 -1
- data/lib/ronin/nmap/converters/json.rb +1 -1
- data/lib/ronin/nmap/converters.rb +3 -3
- data/lib/ronin/nmap/exceptions.rb +1 -1
- data/lib/ronin/nmap/importer.rb +1 -1
- data/lib/ronin/nmap/root.rb +1 -1
- data/lib/ronin/nmap/version.rb +2 -2
- data/lib/ronin/nmap.rb +4 -3
- metadata +24 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b759284c47b002205a2a322e506d6adefedbd8b5ac55f076a4e5556c23fa405
|
4
|
+
data.tar.gz: 3481ef2eab07dea4b2f44121fbde7fae3a153a24af6e4104b478f6a08da31666
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fb866ad3132e1fa27d94d56ab622250c77323192587d93b3871c3531a319c2ec5e7f3fd8a9d7f51486c51fcac37dc078e6284bb4837c0fb2c1249a2d09fda0a
|
7
|
+
data.tar.gz: cfe08033e85580e8c762c141bcb11eb0265636564ecd69894d0586d14a71739bf1f6a4453f07226632d292216f0ec3ac5876584bb1008b4707b0ed77aa74016c
|
data/.github/workflows/ruby.yml
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-3.
|
1
|
+
ruby-3.3
|
data/ChangeLog.md
CHANGED
@@ -1,4 +1,9 @@
|
|
1
|
-
### 0.1.
|
1
|
+
### 0.1.1 / 2025-02-14
|
2
|
+
|
3
|
+
* Added the `csv` gem as a dependency for Bundler and Ruby 3.4.0.
|
4
|
+
* Use `require_relative` to improve load times.
|
5
|
+
|
6
|
+
### 0.1.0 / 2024-07-22
|
2
7
|
|
3
8
|
* Initial release:
|
4
9
|
* Supports automating `nmap` using [ruby-nmap].
|
data/README.md
CHANGED
@@ -216,7 +216,7 @@ gem.add_dependency 'ronin-nmap', '~> 0.1'
|
|
216
216
|
|
217
217
|
## License
|
218
218
|
|
219
|
-
Copyright (c) 2023-
|
219
|
+
Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
220
220
|
|
221
221
|
ronin-nmap is free software: you can redistribute it and/or modify
|
222
222
|
it under the terms of the GNU Lesser General Public License as published
|
data/data/completions/ronin-nmap
CHANGED
@@ -11,7 +11,7 @@ _ronin-nmap_completions_filter() {
|
|
11
11
|
|
12
12
|
if [[ "${cur:0:1}" == "-" ]]; then
|
13
13
|
echo "$words"
|
14
|
-
|
14
|
+
|
15
15
|
else
|
16
16
|
for word in $words; do
|
17
17
|
[[ "${word:0:1}" != "-" ]] && result+=("$word")
|
@@ -28,52 +28,60 @@ _ronin-nmap_completions() {
|
|
28
28
|
local compline="${compwords[*]}"
|
29
29
|
|
30
30
|
case "$compline" in
|
31
|
+
'import'*'--db-file')
|
32
|
+
while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -A directory -- "$cur")
|
33
|
+
;;
|
34
|
+
|
31
35
|
'new'*'--xml-file')
|
32
|
-
while read -r; do COMPREPLY+=(
|
36
|
+
while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
|
37
|
+
;;
|
38
|
+
|
39
|
+
'scan'*'--db-file')
|
40
|
+
while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -A directory -- "$cur")
|
33
41
|
;;
|
34
42
|
|
35
43
|
'scan'*'--output')
|
36
|
-
while read -r; do COMPREPLY+=(
|
44
|
+
while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
|
37
45
|
;;
|
38
46
|
|
39
47
|
'completion'*)
|
40
|
-
while read -r; do COMPREPLY+=(
|
48
|
+
while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-nmap_completions_filter "--print --install --uninstall")" -- "$cur")
|
41
49
|
;;
|
42
50
|
|
43
51
|
'convert'*)
|
44
|
-
while read -r; do COMPREPLY+=(
|
52
|
+
while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -W "$(_ronin-nmap_completions_filter "--format -F")" -- "$cur")
|
45
53
|
;;
|
46
54
|
|
47
55
|
'scan'*'-o')
|
48
|
-
while read -r; do COMPREPLY+=(
|
56
|
+
while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
|
49
57
|
;;
|
50
58
|
|
51
59
|
'import'*)
|
52
|
-
while read -r; do COMPREPLY+=(
|
60
|
+
while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -W "$(_ronin-nmap_completions_filter "--db --db-uri --db-file")" -- "$cur")
|
53
61
|
;;
|
54
62
|
|
55
63
|
'print'*)
|
56
|
-
while read -r; do COMPREPLY+=(
|
64
|
+
while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-nmap_completions_filter "--ip --ip-range --domain --with-os --with-ports --with-service --with-script --with-script-output --with-script-regex")" -- "$cur")
|
57
65
|
;;
|
58
66
|
|
59
67
|
'dump'*)
|
60
|
-
while read -r; do COMPREPLY+=(
|
68
|
+
while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-nmap_completions_filter "--print-ips --print-hosts --print-ip-ports --print-host-ports --print-uris --ip --ip-range --domain --with-os --with-ports --with-service --with-script --with-script-output --with-script-regex --ports -p --services")" -- "$cur")
|
61
69
|
;;
|
62
70
|
|
63
71
|
'scan'*)
|
64
|
-
while read -r; do COMPREPLY+=(
|
72
|
+
while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-nmap_completions_filter "--db --db-uri --db-file --sudo --output -o --output-format -F --import")" -- "$cur")
|
65
73
|
;;
|
66
74
|
|
67
75
|
'new'*)
|
68
|
-
while read -r; do COMPREPLY+=(
|
76
|
+
while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -A directory -W "$(_ronin-nmap_completions_filter "--parser --scanner --printing --import --xml-file --syn-scan --ports -p --target")" -- "$cur")
|
69
77
|
;;
|
70
78
|
|
71
79
|
*)
|
72
|
-
while read -r; do COMPREPLY+=(
|
80
|
+
while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-nmap_completions_filter "--version -V help completion convert dump grep import new print scan")" -- "$cur")
|
73
81
|
;;
|
74
82
|
|
75
83
|
esac
|
76
84
|
} &&
|
77
|
-
complete -F _ronin-nmap_completions ronin-nmap
|
85
|
+
complete -F _ronin-nmap_completions ronin-nmap
|
78
86
|
|
79
87
|
# ex: filetype=sh
|
data/gemspec.yml
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
name: ronin-nmap
|
2
2
|
summary: A Ruby library and CLI for working with nmap.
|
3
3
|
description: |
|
4
|
-
ronin-nmap is a Ruby library for working with nmap. ronin-nmap can
|
5
|
-
nmap XML, convert nmap XML into JSON or CSV, or import nmap XML into the
|
4
|
+
ronin-nmap is a Ruby library and CLI for working with nmap. ronin-nmap can
|
5
|
+
parse nmap XML, convert nmap XML into JSON or CSV, or import nmap XML into the
|
6
6
|
ronin-db database.
|
7
7
|
|
8
|
-
license: LGPL-3.0
|
8
|
+
license: LGPL-3.0-or-later
|
9
9
|
authors: Postmodern
|
10
10
|
email: postmodern.mod3@gmail.com
|
11
11
|
homepage: https://ronin-rb.dev/
|
@@ -33,10 +33,11 @@ generated_files:
|
|
33
33
|
required_ruby_version: ">= 3.0.0"
|
34
34
|
|
35
35
|
dependencies:
|
36
|
+
csv: ~> 3.0
|
36
37
|
ruby-nmap: ~> 1.0
|
37
38
|
# Ronin dependencies:
|
38
|
-
ronin-core: ~> 0.2
|
39
|
-
ronin-db: ~> 0.2
|
39
|
+
ronin-core: ~> 0.2
|
40
|
+
ronin-db: ~> 0.2
|
40
41
|
|
41
42
|
development_dependencies:
|
42
43
|
bundler: ~> 2.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2023-
|
5
|
+
# Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-nmap is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -18,7 +18,7 @@
|
|
18
18
|
# along with ronin-nmap. If not, see <https://www.gnu.org/licenses/>.
|
19
19
|
#
|
20
20
|
|
21
|
-
|
21
|
+
require_relative '../root'
|
22
22
|
|
23
23
|
require 'ronin/core/cli/command'
|
24
24
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2023-
|
5
|
+
# Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-nmap is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -18,9 +18,10 @@
|
|
18
18
|
# along with ronin-nmap. If not, see <https://www.gnu.org/licenses/>.
|
19
19
|
#
|
20
20
|
|
21
|
-
require 'ronin/nmap/root'
|
22
21
|
require 'ronin/core/cli/completion_command'
|
23
22
|
|
23
|
+
require_relative '../../root'
|
24
|
+
|
24
25
|
module Ronin
|
25
26
|
module Nmap
|
26
27
|
class CLI
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2023-
|
5
|
+
# Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-nmap is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -18,8 +18,8 @@
|
|
18
18
|
# along with ronin-nmap. If not, see <https://www.gnu.org/licenses/>.
|
19
19
|
#
|
20
20
|
|
21
|
-
|
22
|
-
|
21
|
+
require_relative '../command'
|
22
|
+
require_relative '../../converter'
|
23
23
|
|
24
24
|
module Ronin
|
25
25
|
module Nmap
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2023-
|
5
|
+
# Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-nmap is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -18,10 +18,10 @@
|
|
18
18
|
# along with ronin-nmap. If not, see <https://www.gnu.org/licenses/>.
|
19
19
|
#
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
require 'nmap/xml'
|
21
|
+
require_relative '../command'
|
22
|
+
require_relative '../filtering_options'
|
24
23
|
|
24
|
+
require 'nmap/xml'
|
25
25
|
require 'set'
|
26
26
|
|
27
27
|
module Ronin
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2023-
|
5
|
+
# Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-nmap is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -18,9 +18,9 @@
|
|
18
18
|
# along with ronin-nmap. If not, see <https://www.gnu.org/licenses/>.
|
19
19
|
#
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
|
21
|
+
require_relative '../command'
|
22
|
+
require_relative '../importable'
|
23
|
+
require_relative '../../importer'
|
24
24
|
|
25
25
|
module Ronin
|
26
26
|
module Nmap
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2023-
|
5
|
+
# Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-nmap is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -18,8 +18,8 @@
|
|
18
18
|
# along with ronin-nmap. If not, see <https://www.gnu.org/licenses/>.
|
19
19
|
#
|
20
20
|
|
21
|
-
|
22
|
-
|
21
|
+
require_relative '../command'
|
22
|
+
require_relative '../../root'
|
23
23
|
|
24
24
|
require 'ronin/core/cli/generator'
|
25
25
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2023-
|
5
|
+
# Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-nmap is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -18,8 +18,9 @@
|
|
18
18
|
# along with ronin-nmap. If not, see <https://www.gnu.org/licenses/>.
|
19
19
|
#
|
20
20
|
|
21
|
-
|
22
|
-
|
21
|
+
require_relative '../command'
|
22
|
+
require_relative '../filtering_options'
|
23
|
+
|
23
24
|
require 'nmap/xml'
|
24
25
|
|
25
26
|
module Ronin
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2023-
|
5
|
+
# Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-nmap is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -18,11 +18,11 @@
|
|
18
18
|
# along with ronin-nmap. If not, see <https://www.gnu.org/licenses/>.
|
19
19
|
#
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
require 'ronin/core/cli/logging'
|
21
|
+
require_relative '../command'
|
22
|
+
require_relative '../importable'
|
23
|
+
require_relative '../../converter'
|
25
24
|
|
25
|
+
require 'ronin/core/cli/logging'
|
26
26
|
require 'tempfile'
|
27
27
|
require 'set'
|
28
28
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2023-
|
5
|
+
# Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-nmap is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -18,7 +18,7 @@
|
|
18
18
|
# along with ronin-nmap. If not, see <https://www.gnu.org/licenses/>.
|
19
19
|
#
|
20
20
|
|
21
|
-
|
21
|
+
require_relative 'port_list'
|
22
22
|
|
23
23
|
module Ronin
|
24
24
|
module Nmap
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2023-
|
5
|
+
# Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-nmap is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -18,7 +18,8 @@
|
|
18
18
|
# along with ronin-nmap. If not, see <https://www.gnu.org/licenses/>.
|
19
19
|
#
|
20
20
|
|
21
|
-
|
21
|
+
require_relative '../importer'
|
22
|
+
|
22
23
|
require 'ronin/db/cli/database_options'
|
23
24
|
require 'ronin/db/cli/printing'
|
24
25
|
require 'ronin/core/cli/logging'
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2023-
|
5
|
+
# Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-nmap is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
data/lib/ronin/nmap/cli.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2023-
|
5
|
+
# Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-nmap is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -18,13 +18,14 @@
|
|
18
18
|
# along with ronin-nmap. If not, see <https://www.gnu.org/licenses/>.
|
19
19
|
#
|
20
20
|
|
21
|
-
require 'ronin/nmap/version'
|
22
21
|
require 'ronin/core/cli/help/banner'
|
23
22
|
|
24
23
|
require 'command_kit/commands'
|
25
24
|
require 'command_kit/commands/auto_load'
|
26
25
|
require 'command_kit/options/version'
|
27
26
|
|
27
|
+
require_relative 'version'
|
28
|
+
|
28
29
|
module Ronin
|
29
30
|
module Nmap
|
30
31
|
#
|
data/lib/ronin/nmap/converter.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2023-
|
5
|
+
# Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-nmap is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -18,7 +18,7 @@
|
|
18
18
|
# along with ronin-nmap. If not, see <https://www.gnu.org/licenses/>.
|
19
19
|
#
|
20
20
|
|
21
|
-
|
21
|
+
require_relative 'converters'
|
22
22
|
|
23
23
|
require 'nmap/xml'
|
24
24
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2023-
|
5
|
+
# Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-nmap is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2023-
|
5
|
+
# Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-nmap is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2023-
|
5
|
+
# Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-nmap is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -18,8 +18,8 @@
|
|
18
18
|
# along with ronin-nmap. If not, see <https://www.gnu.org/licenses/>.
|
19
19
|
#
|
20
20
|
|
21
|
-
|
22
|
-
|
21
|
+
require_relative 'converters/json'
|
22
|
+
require_relative 'converters/csv'
|
23
23
|
|
24
24
|
module Ronin
|
25
25
|
module Nmap
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2023-
|
5
|
+
# Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-nmap is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
data/lib/ronin/nmap/importer.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2023-
|
5
|
+
# Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-nmap is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
data/lib/ronin/nmap/root.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2023-
|
5
|
+
# Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-nmap is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
data/lib/ronin/nmap/version.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2023-
|
5
|
+
# Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-nmap is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -21,6 +21,6 @@
|
|
21
21
|
module Ronin
|
22
22
|
module Nmap
|
23
23
|
# ronin-nmap version
|
24
|
-
VERSION = '0.1.
|
24
|
+
VERSION = '0.1.1'
|
25
25
|
end
|
26
26
|
end
|
data/lib/ronin/nmap.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2023-
|
5
|
+
# Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-nmap is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -18,8 +18,9 @@
|
|
18
18
|
# along with ronin-nmap. If not, see <https://www.gnu.org/licenses/>.
|
19
19
|
#
|
20
20
|
|
21
|
-
|
22
|
-
|
21
|
+
require_relative 'nmap/exceptions'
|
22
|
+
require_relative 'nmap/importer'
|
23
|
+
|
23
24
|
require 'ronin/core/home'
|
24
25
|
require 'nmap/command'
|
25
26
|
require 'nmap/xml'
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ronin-nmap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Postmodern
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: csv
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: ruby-nmap
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -30,28 +44,28 @@ dependencies:
|
|
30
44
|
requirements:
|
31
45
|
- - "~>"
|
32
46
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.2
|
47
|
+
version: '0.2'
|
34
48
|
type: :runtime
|
35
49
|
prerelease: false
|
36
50
|
version_requirements: !ruby/object:Gem::Requirement
|
37
51
|
requirements:
|
38
52
|
- - "~>"
|
39
53
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.2
|
54
|
+
version: '0.2'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: ronin-db
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
44
58
|
requirements:
|
45
59
|
- - "~>"
|
46
60
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.2
|
61
|
+
version: '0.2'
|
48
62
|
type: :runtime
|
49
63
|
prerelease: false
|
50
64
|
version_requirements: !ruby/object:Gem::Requirement
|
51
65
|
requirements:
|
52
66
|
- - "~>"
|
53
67
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.2
|
68
|
+
version: '0.2'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: bundler
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -67,8 +81,8 @@ dependencies:
|
|
67
81
|
- !ruby/object:Gem::Version
|
68
82
|
version: '2.0'
|
69
83
|
description: |
|
70
|
-
ronin-nmap is a Ruby library for working with nmap. ronin-nmap can
|
71
|
-
nmap XML, convert nmap XML into JSON or CSV, or import nmap XML into the
|
84
|
+
ronin-nmap is a Ruby library and CLI for working with nmap. ronin-nmap can
|
85
|
+
parse nmap XML, convert nmap XML into JSON or CSV, or import nmap XML into the
|
72
86
|
ronin-db database.
|
73
87
|
email: postmodern.mod3@gmail.com
|
74
88
|
executables:
|
@@ -139,7 +153,7 @@ files:
|
|
139
153
|
- scripts/setup
|
140
154
|
homepage: https://ronin-rb.dev/
|
141
155
|
licenses:
|
142
|
-
- LGPL-3.0
|
156
|
+
- LGPL-3.0-or-later
|
143
157
|
metadata:
|
144
158
|
documentation_uri: https://ronin-rb.dev/docs/ronin-nmap
|
145
159
|
source_code_uri: https://github.com/ronin-rb/ronin-nmap
|
@@ -161,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
161
175
|
- !ruby/object:Gem::Version
|
162
176
|
version: '0'
|
163
177
|
requirements: []
|
164
|
-
rubygems_version: 3.
|
178
|
+
rubygems_version: 3.5.22
|
165
179
|
signing_key:
|
166
180
|
specification_version: 4
|
167
181
|
summary: A Ruby library and CLI for working with nmap.
|