ruby-nmap 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +3 -2
- data/ChangeLog.md +9 -0
- data/LICENSE.txt +1 -1
- data/README.md +0 -2
- data/lib/nmap/command.rb +3 -1
- data/lib/nmap/version.rb +3 -1
- data/lib/nmap/xml/address.rb +2 -0
- data/lib/nmap/xml/cpe/url.rb +2 -0
- data/lib/nmap/xml/cpe.rb +3 -1
- data/lib/nmap/xml/hop.rb +2 -0
- data/lib/nmap/xml/host.rb +14 -12
- data/lib/nmap/xml/host_script.rb +3 -1
- data/lib/nmap/xml/hostname.rb +2 -0
- data/lib/nmap/xml/ip_id_sequence.rb +3 -1
- data/lib/nmap/xml/os.rb +4 -2
- data/lib/nmap/xml/os_class.rb +3 -1
- data/lib/nmap/xml/os_match.rb +2 -0
- data/lib/nmap/xml/port.rb +4 -2
- data/lib/nmap/xml/postscript.rb +3 -1
- data/lib/nmap/xml/prescript.rb +3 -1
- data/lib/nmap/xml/run_stat.rb +2 -0
- data/lib/nmap/xml/scan.rb +2 -0
- data/lib/nmap/xml/scan_task.rb +2 -0
- data/lib/nmap/xml/scanner.rb +2 -0
- data/lib/nmap/xml/script.rb +2 -0
- data/lib/nmap/xml/scripts.rb +3 -2
- data/lib/nmap/xml/sequence.rb +3 -1
- data/lib/nmap/xml/service.rb +3 -1
- data/lib/nmap/xml/status.rb +2 -0
- data/lib/nmap/xml/tcp_sequence.rb +4 -2
- data/lib/nmap/xml/tcp_ts_sequence.rb +3 -1
- data/lib/nmap/xml/traceroute.rb +3 -1
- data/lib/nmap/xml/uptime.rb +2 -0
- data/lib/nmap/xml.rb +9 -7
- data/lib/nmap.rb +5 -3
- data/ruby-nmap.gemspec +1 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e3189bf536d0b75455d40015a117eb26746aefbde6a6cccd605860be7fb8b6f
|
4
|
+
data.tar.gz: 303dcff7ac2ecb8f0a3e923ba9834e3044fd976be710a5f76d702e986827a640
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 879272c70b52dc9b77abbb1990b4b48973d7a8f2e01b9a608ce9c3ce9a7c5240abeab1fc4bcdc4d30c59a8790b083f82a85a3254d962d0ccab0f7e4d2608c480
|
7
|
+
data.tar.gz: 709b91ce49dd96614de4441305a711cdb18fcb8185fffcc988f8c65ba9989785d65f69bf5e3dc05af7686ca26b0db43c90fb4710e86be44ddc20340042741507
|
data/.github/workflows/ruby.yml
CHANGED
@@ -9,14 +9,15 @@ jobs:
|
|
9
9
|
fail-fast: false
|
10
10
|
matrix:
|
11
11
|
ruby:
|
12
|
-
- '2.7'
|
13
12
|
- '3.0'
|
14
13
|
- '3.1'
|
14
|
+
- '3.2'
|
15
|
+
- '3.3'
|
15
16
|
- jruby
|
16
17
|
- truffleruby
|
17
18
|
name: Ruby ${{ matrix.ruby }}
|
18
19
|
steps:
|
19
|
-
- uses: actions/checkout@
|
20
|
+
- uses: actions/checkout@v4
|
20
21
|
- name: Set up Ruby
|
21
22
|
uses: ruby/setup-ruby@v1
|
22
23
|
with:
|
data/ChangeLog.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
### 1.0.3 / 2024-01-25
|
2
|
+
|
3
|
+
* Switched to using `require_relative` to improve load-times.
|
4
|
+
* Added `# frozen_string_literal: true` to all files.
|
5
|
+
|
6
|
+
#### Nmap::Command
|
7
|
+
|
8
|
+
* The `--mtu` option now accepts an option numeric value.
|
9
|
+
|
1
10
|
### 1.0.2 / 2023-09-01
|
2
11
|
|
3
12
|
#### Nmap::Command
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
data/lib/nmap/command.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'command_mapper/command'
|
2
4
|
|
3
5
|
module Nmap
|
@@ -734,7 +736,7 @@ module Nmap
|
|
734
736
|
|
735
737
|
# FIREWALL/IDS EVASION AND SPOOFING:
|
736
738
|
option '-f', name: :packet_fragments
|
737
|
-
option '--mtu'
|
739
|
+
option '--mtu', value: {type: Num.new, required: false}
|
738
740
|
option '-D', name: :decoys, value: {type: List.new}
|
739
741
|
option '-S', name: :spoof, value: true
|
740
742
|
option '-e', name: :interface, value: true
|
data/lib/nmap/version.rb
CHANGED
data/lib/nmap/xml/address.rb
CHANGED
data/lib/nmap/xml/cpe/url.rb
CHANGED
data/lib/nmap/xml/cpe.rb
CHANGED
data/lib/nmap/xml/hop.rb
CHANGED
data/lib/nmap/xml/host.rb
CHANGED
@@ -1,14 +1,16 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'status'
|
4
|
+
require_relative 'address'
|
5
|
+
require_relative 'hostname'
|
6
|
+
require_relative 'os'
|
7
|
+
require_relative 'port'
|
8
|
+
require_relative 'ip_id_sequence'
|
9
|
+
require_relative 'tcp_sequence'
|
10
|
+
require_relative 'tcp_ts_sequence'
|
11
|
+
require_relative 'uptime'
|
12
|
+
require_relative 'traceroute'
|
13
|
+
require_relative 'host_script'
|
12
14
|
|
13
15
|
require 'nokogiri'
|
14
16
|
require 'time'
|
@@ -258,7 +260,7 @@ module Nmap
|
|
258
260
|
# @yield [uptime]
|
259
261
|
# If a block is given, it will be passed the resulting object
|
260
262
|
#
|
261
|
-
# @yieldparam [Uptime]
|
263
|
+
# @yieldparam [Uptime]
|
262
264
|
# Uptime value.
|
263
265
|
#
|
264
266
|
# @return [Uptime]
|
data/lib/nmap/xml/host_script.rb
CHANGED
data/lib/nmap/xml/hostname.rb
CHANGED
data/lib/nmap/xml/os.rb
CHANGED
data/lib/nmap/xml/os_class.rb
CHANGED
data/lib/nmap/xml/os_match.rb
CHANGED
data/lib/nmap/xml/port.rb
CHANGED
data/lib/nmap/xml/postscript.rb
CHANGED
data/lib/nmap/xml/prescript.rb
CHANGED
data/lib/nmap/xml/run_stat.rb
CHANGED
data/lib/nmap/xml/scan.rb
CHANGED
data/lib/nmap/xml/scan_task.rb
CHANGED
data/lib/nmap/xml/scanner.rb
CHANGED
data/lib/nmap/xml/script.rb
CHANGED
data/lib/nmap/xml/scripts.rb
CHANGED
data/lib/nmap/xml/sequence.rb
CHANGED
data/lib/nmap/xml/service.rb
CHANGED
data/lib/nmap/xml/status.rb
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'sequence'
|
2
4
|
|
3
5
|
module Nmap
|
4
6
|
class XML
|
@@ -14,7 +16,7 @@ module Nmap
|
|
14
16
|
# The difficulty index from nmap
|
15
17
|
#
|
16
18
|
# @since 0.5.0
|
17
|
-
#
|
19
|
+
#
|
18
20
|
def index
|
19
21
|
@index ||= if (index_string = @node['index'])
|
20
22
|
index_string.to_i
|
data/lib/nmap/xml/traceroute.rb
CHANGED
data/lib/nmap/xml/uptime.rb
CHANGED
data/lib/nmap/xml.rb
CHANGED
@@ -1,10 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'xml/scanner'
|
4
|
+
require_relative 'xml/scan_task'
|
5
|
+
require_relative 'xml/scan'
|
6
|
+
require_relative 'xml/host'
|
7
|
+
require_relative 'xml/run_stat'
|
8
|
+
require_relative 'xml/prescript'
|
9
|
+
require_relative 'xml/postscript'
|
8
10
|
|
9
11
|
require 'nokogiri'
|
10
12
|
|
data/lib/nmap.rb
CHANGED
data/ruby-nmap.gemspec
CHANGED
@@ -7,10 +7,7 @@ Gem::Specification.new do |gem|
|
|
7
7
|
|
8
8
|
gem.name = gemspec.fetch('name')
|
9
9
|
gem.version = gemspec.fetch('version') do
|
10
|
-
|
11
|
-
$LOAD_PATH << lib_dir unless $LOAD_PATH.include?(lib_dir)
|
12
|
-
|
13
|
-
require 'nmap/version'
|
10
|
+
require_relative 'lib/nmap/version'
|
14
11
|
Nmap::VERSION
|
15
12
|
end
|
16
13
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-nmap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
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: 2024-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|