dradis-nmap 5.3.0 → 5.4.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 79c0ef80f27928dfe4a13177b4c3a075d8ce48f9eca162f9063bd53661d54880
4
- data.tar.gz: 7dccdd286c7d03a67b5a3feb6384e77af2220b45cc98aa2dd982e71b1e4300d0
3
+ metadata.gz: 2f9ca071c280067d1fb06b3fa828ef0d6b4660daf9d9ca810d1eda73946d6ae6
4
+ data.tar.gz: fc3f8efa0e0e62c17b27caef5de6827217b152d8ef5a141fd7f0612f58a93c94
5
5
  SHA512:
6
- metadata.gz: 9263c6cbe36d0035d94361646e4f0211bf824de8d5ac43baeeff38982b5646953ae307ce5630c03152ca85e8b9acb9c5e3dec8bb0ccce9dac9c14415b3da44dc
7
- data.tar.gz: b3af89ea156d904c1c6771c35183d6f742b538ff214581247e0c25dfe1788cc49a29cd9f34220c722098732419ae845f05e20a167b9729bea46808a3329cc879
6
+ metadata.gz: d660e9b0532d870ca3a3e4cf236024eeb76cb645f4373abf9c051468d1dd9425d665b96465e990c9e25ec7371d6e5ab79b61a085fab6971316435458d3b9601d
7
+ data.tar.gz: 7c3092fdbf23fc78fd03ce0584c2999a8d626cc4fb5c91019d13823c64f7902c389dc63e86dd6edae0de833c2b87bc5a2400bb82f5ce1c91afecc8802ebdb3ce
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ v5.4.0 (September 2026)
2
+ - No changes
3
+
1
4
  v5.3.0 (August 2026)
2
5
  - No changes
3
6
 
@@ -8,7 +8,7 @@ module Dradis
8
8
 
9
9
  module VERSION
10
10
  MAJOR = 5
11
- MINOR = 3
11
+ MINOR = 4
12
12
  TINY = 0
13
13
  PRE = nil
14
14
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dradis-nmap
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.3.0
4
+ version: 5.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Martin
@@ -99,18 +99,10 @@ executables: []
99
99
  extensions: []
100
100
  extra_rdoc_files: []
101
101
  files:
102
- - ".github/issue_template.md"
103
- - ".github/pull_request_template.md"
104
- - ".gitignore"
105
- - ".rspec"
106
102
  - CHANGELOG.md
107
- - CHANGELOG.template
108
- - CONTRIBUTING.md
109
- - Gemfile
110
103
  - LICENSE
111
104
  - README.md
112
105
  - Rakefile
113
- - dradis-nmap.gemspec
114
106
  - lib/dradis-nmap.rb
115
107
  - lib/dradis/plugins/nmap.rb
116
108
  - lib/dradis/plugins/nmap/engine.rb
@@ -120,11 +112,6 @@ files:
120
112
  - lib/dradis/plugins/nmap/mapping.rb
121
113
  - lib/dradis/plugins/nmap/version.rb
122
114
  - lib/tasks/thorfile.rb
123
- - spec/fixtures/files/invalid.xml
124
- - spec/fixtures/files/nse-01.xml
125
- - spec/fixtures/files/sample.xml
126
- - spec/nmap_upload_spec.rb
127
- - spec/spec_helper.rb
128
115
  - templates/host.sample
129
116
  - templates/port.sample
130
117
  homepage: https://dradis.com/integrations/nmap.html
@@ -148,9 +135,4 @@ requirements: []
148
135
  rubygems_version: 3.6.9
149
136
  specification_version: 4
150
137
  summary: Nmap add-on for the Dradis Framework.
151
- test_files:
152
- - spec/fixtures/files/invalid.xml
153
- - spec/fixtures/files/nse-01.xml
154
- - spec/fixtures/files/sample.xml
155
- - spec/nmap_upload_spec.rb
156
- - spec/spec_helper.rb
138
+ test_files: []
@@ -1,16 +0,0 @@
1
- ### Steps to reproduce
2
-
3
- Help us help you, how can we reproduce the problem?
4
-
5
- ### Expected behavior
6
- Tell us what should happen
7
-
8
- ### Actual behavior
9
- Tell us what happens instead
10
-
11
- ### System configuration
12
- **Dradis version**:
13
-
14
- **Ruby version**:
15
-
16
- **OS version**:
@@ -1,45 +0,0 @@
1
- Please review [CONTRIBUTING.md](https://github.com/dradis/dradis-ce/blob/develop/CONTRIBUTING.md) and remove this line.
2
-
3
- ### Summary
4
-
5
- Provide a general description of the code changes in your pull
6
- request... were there any bugs you had fixed? If so, mention them. If
7
- these bugs have open GitHub issues, be sure to tag them here as well,
8
- to keep the conversation linked together.
9
-
10
-
11
- ### Testing Steps
12
-
13
- Provide steps to test functionality, described in detail for someone not familiar with this part of the application / code base
14
-
15
-
16
- ### Other Information
17
-
18
- If there's anything else that's important and relevant to your pull
19
- request, mention that information here. This could include
20
- benchmarks, or other information.
21
-
22
- Thanks for contributing to Dradis!
23
-
24
-
25
- ### Copyright assignment
26
-
27
- Collaboration is difficult with commercial closed source but we want
28
- to keep as much of the OSS ethos as possible available to users
29
- who want to fix it themselves.
30
-
31
- In order to unambiguously own and sell Dradis Framework commercial
32
- products, we must have the copyright associated with the entire
33
- codebase. Any code you create which is merged must be owned by us.
34
- That's not us trying to be a jerks, that's just the way it works.
35
-
36
- You can delete this section, but the following sentence needs to
37
- remain in the PR's description:
38
-
39
- > I assign all rights, including copyright, to any future Dradis
40
- > work by myself to Security Roots.
41
-
42
- ### Check List
43
-
44
- - [ ] Added a CHANGELOG entry
45
- - [ ] Added specs
data/.gitignore DELETED
@@ -1,12 +0,0 @@
1
- # Bundler config
2
- Gemfile.lock
3
- /.bundle/
4
- /vendor/bundle/
5
-
6
- # Combustion engine
7
- /spec/internal/log/*.log
8
-
9
- # Gem artifacts
10
- /pkg/
11
-
12
- .DS_Store
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --color
2
- -f d
data/CHANGELOG.template DELETED
@@ -1,12 +0,0 @@
1
- [v#.#.#] ([month] [YYYY])
2
- - [future tense verb] [feature]
3
- - Upgraded gems:
4
- - [gem]
5
- - Bugs fixes:
6
- - [future tense verb] [bug fix]
7
- - Bug tracker items:
8
- - [item]
9
- - Security Fixes:
10
- - High: (Authenticated|Unauthenticated) (admin|author|contributor) [vulnerability description]
11
- - Medium: (Authenticated|Unauthenticated) (admin|author|contributor) [vulnerability description]
12
- - Low: (Authenticated|Unauthenticated) (admin|author|contributor) [vulnerability description]
data/CONTRIBUTING.md DELETED
@@ -1,3 +0,0 @@
1
- # Plugin contribution guidelines
2
-
3
- See the Dradis Framework's [CONTRIBUTING.md](https://github.com/dradis/dradisframework/blob/master/CONTRIBUTING.md)
data/Gemfile DELETED
@@ -1,23 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Declare your gem's dependencies in dradispro-duoweb.gemspec.
4
- # Bundler will treat runtime dependencies like base dependencies, and
5
- # development dependencies will be added by default to the :development group.
6
- gemspec
7
-
8
- # jquery-rails is used by the dummy application
9
- # gem "jquery-rails"
10
-
11
- # Declare any dependencies that are still in development here instead of in
12
- # your gemspec. These might include edge Rails or gems from your path or
13
- # Git. Remember to move these dependencies to your gemspec before releasing
14
- # your gem to rubygems.org.
15
-
16
- # To use debugger
17
- # gem 'debugger'
18
-
19
- if Dir.exist?('../dradis-plugins')
20
- gem 'dradis-plugins', path: '../dradis-plugins'
21
- else
22
- gem 'dradis-plugins', github: 'dradis/dradis-plugins'
23
- end
data/dradis-nmap.gemspec DELETED
@@ -1,33 +0,0 @@
1
- $:.push File.expand_path('../lib', __FILE__)
2
- require 'dradis/plugins/nmap/version'
3
- version = Dradis::Plugins::Nmap::VERSION::STRING
4
-
5
- # Describe your gem and declare its dependencies:
6
- Gem::Specification.new do |spec|
7
- spec.platform = Gem::Platform::RUBY
8
- spec.name = 'dradis-nmap'
9
- spec.version = version
10
- spec.summary = 'Nmap add-on for the Dradis Framework.'
11
- spec.description = 'This add-on allows you to upload and parse output produced from Nmap web server scanner into Dradis.'
12
-
13
- spec.license = 'GPL-2'
14
-
15
- spec.authors = ['Daniel Martin']
16
- spec.homepage = 'https://dradis.com/integrations/nmap.html'
17
-
18
- spec.files = `git ls-files`.split($\)
19
- spec.executables = spec.files.grep(%r{^bin/}).map { |f| File.basename(f) }
20
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
21
-
22
- # By not including Rails as a dependency, we can use the gem with different
23
- # versions of Rails (a sure recipe for disaster, I'm sure), which is needed
24
- # until we bump Dradis Pro to 4.1.
25
- # s.add_dependency 'rails', '~> 4.1.1'
26
- spec.add_dependency 'dradis-plugins', '>= 4.0'
27
- spec.add_dependency 'ruby-nmap', '~> 0.7'
28
-
29
- spec.add_development_dependency 'bundler', '~> 2.0'
30
- spec.add_development_dependency 'rake', '~> 10.0'
31
- spec.add_development_dependency 'rspec-rails'
32
- spec.add_development_dependency 'combustion', '~> 0.5.2'
33
- end
@@ -1 +0,0 @@
1
- <foo></foo>
@@ -1,127 +0,0 @@
1
- <?xml version="1.0"?>
2
- <?xml-stylesheet href="file:///usr/bin/../share/nmap/nmap.xsl" type="text/xsl"?>
3
- <!-- Nmap 6.00 scan initiated Fri Aug 5 01:49:41 2016 as: nmap -sC -vv -T4 -oX scanme-01.xml scanme.nmap.org -->
4
- <nmaprun scanner="nmap" args="nmap -sC -vv -T4 -oX scanme-01.xml scanme.nmap.org" start="1470376181" startstr="Fri Aug 5 01:49:41 2016" version="6.00" xmloutputversion="1.04">
5
- <scaninfo type="syn" protocol="tcp" numservices="1000" services="1,3-4,6-7,9,13,17,19-26,30,32-33,37,42-43,49,53,70,79-85,88-90,99-100,106,109-111,113,119,125,135,139,143-144,146,161,163,179,199,211-212,222,254-256,259,264,280,301,306,311,340,366,389,406-407,416-417,425,427,443-445,458,464-465,481,497,500,512-515,524,541,543-545,548,554-555,563,587,593,616-617,625,631,636,646,648,666-668,683,687,691,700,705,711,714,720,722,726,749,765,777,783,787,800-801,808,843,873,880,888,898,900-903,911-912,981,987,990,992-993,995,999-1002,1007,1009-1011,1021-1100,1102,1104-1108,1110-1114,1117,1119,1121-1124,1126,1130-1132,1137-1138,1141,1145,1147-1149,1151-1152,1154,1163-1166,1169,1174-1175,1183,1185-1187,1192,1198-1199,1201,1213,1216-1218,1233-1234,1236,1244,1247-1248,1259,1271-1272,1277,1287,1296,1300-1301,1309-1311,1322,1328,1334,1352,1417,1433-1434,1443,1455,1461,1494,1500-1501,1503,1521,1524,1533,1556,1580,1583,1594,1600,1641,1658,1666,1687-1688,1700,1717-1721,1723,1755,1761,1782-1783,1801,1805,1812,1839-1840,1862-1864,1875,1900,1914,1935,1947,1971-1972,1974,1984,1998-2010,2013,2020-2022,2030,2033-2035,2038,2040-2043,2045-2049,2065,2068,2099-2100,2103,2105-2107,2111,2119,2121,2126,2135,2144,2160-2161,2170,2179,2190-2191,2196,2200,2222,2251,2260,2288,2301,2323,2366,2381-2383,2393-2394,2399,2401,2492,2500,2522,2525,2557,2601-2602,2604-2605,2607-2608,2638,2701-2702,2710,2717-2718,2725,2800,2809,2811,2869,2875,2909-2910,2920,2967-2968,2998,3000-3001,3003,3005-3007,3011,3013,3017,3030-3031,3052,3071,3077,3128,3168,3211,3221,3260-3261,3268-3269,3283,3300-3301,3306,3322-3325,3333,3351,3367,3369-3372,3389-3390,3404,3476,3493,3517,3527,3546,3551,3580,3659,3689-3690,3703,3737,3766,3784,3800-3801,3809,3814,3826-3828,3851,3869,3871,3878,3880,3889,3905,3914,3918,3920,3945,3971,3986,3995,3998,4000-4006,4045,4111,4125-4126,4129,4224,4242,4279,4321,4343,4443-4446,4449,4550,4567,4662,4848,4899-4900,4998,5000-5004,5009,5030,5033,5050-5051,5054,5060-5061,5080,5087,5100-5102,5120,5190,5200,5214,5221-5222,5225-5226,5269,5280,5298,5357,5405,5414,5431-5432,5440,5500,5510,5544,5550,5555,5560,5566,5631,5633,5666,5678-5679,5718,5730,5800-5802,5810-5811,5815,5822,5825,5850,5859,5862,5877,5900-5904,5906-5907,5910-5911,5915,5922,5925,5950,5952,5959-5963,5987-5989,5998-6007,6009,6025,6059,6100-6101,6106,6112,6123,6129,6156,6346,6389,6502,6510,6543,6547,6565-6567,6580,6646,6666-6669,6689,6692,6699,6779,6788-6789,6792,6839,6881,6901,6969,7000-7002,7004,7007,7019,7025,7070,7100,7103,7106,7200-7201,7402,7435,7443,7496,7512,7625,7627,7676,7741,7777-7778,7800,7911,7920-7921,7937-7938,7999-8002,8007-8011,8021-8022,8031,8042,8045,8080-8090,8093,8099-8100,8180-8181,8192-8194,8200,8222,8254,8290-8292,8300,8333,8383,8400,8402,8443,8500,8600,8649,8651-8652,8654,8701,8800,8873,8888,8899,8994,9000-9003,9009-9011,9040,9050,9071,9080-9081,9090-9091,9099-9103,9110-9111,9200,9207,9220,9290,9415,9418,9485,9500,9502-9503,9535,9575,9593-9595,9618,9666,9876-9878,9898,9900,9917,9929,9943-9944,9968,9998-10004,10009-10010,10012,10024-10025,10082,10180,10215,10243,10566,10616-10617,10621,10626,10628-10629,10778,11110-11111,11967,12000,12174,12265,12345,13456,13722,13782-13783,14000,14238,14441-14442,15000,15002-15004,15660,15742,16000-16001,16012,16016,16018,16080,16113,16992-16993,17877,17988,18040,18101,18988,19101,19283,19315,19350,19780,19801,19842,20000,20005,20031,20221-20222,20828,21571,22939,23502,24444,24800,25734-25735,26214,27000,27352-27353,27355-27356,27715,28201,30000,30718,30951,31038,31337,32768-32785,33354,33899,34571-34573,35500,38292,40193,40911,41511,42510,44176,44442-44443,44501,45100,48080,49152-49161,49163,49165,49167,49175-49176,49400,49999-50003,50006,50300,50389,50500,50636,50800,51103,51493,52673,52822,52848,52869,54045,54328,55055-55056,55555,55600,56737-56738,57294,57797,58080,60020,60443,61532,61900,62078,63331,64623,64680,65000,65129,65389"/>
6
- <verbose level="2"/>
7
- <debugging level="0"/>
8
- <taskbegin task="Ping Scan" time="1470376181"/>
9
- <taskend task="Ping Scan" time="1470376181" extrainfo="1 total hosts"/>
10
- <taskbegin task="Parallel DNS resolution of 1 host." time="1470376181"/>
11
- <taskend task="Parallel DNS resolution of 1 host." time="1470376181"/>
12
- <taskbegin task="SYN Stealth Scan" time="1470376181"/>
13
- <taskend task="SYN Stealth Scan" time="1470376187" extrainfo="1000 total ports"/>
14
- <taskbegin task="NSE" time="1470376187"/>
15
- <taskend task="NSE" time="1470376192"/>
16
- <host starttime="1470376181" endtime="1470376192">
17
- <status state="up" reason="reset"/>
18
- <address addr="45.33.32.156" addrtype="ipv4"/>
19
- <hostnames>
20
- <hostname name="scanme.nmap.org" type="user"/>
21
- <hostname name="scanme.nmap.org" type="PTR"/>
22
- </hostnames>
23
- <ports>
24
- <extraports state="closed" count="979">
25
- <extrareasons reason="resets" count="979"/>
26
- </extraports>
27
- <port protocol="tcp" portid="22">
28
- <state state="open" reason="syn-ack" reason_ttl="64"/>
29
- <service name="ssh" method="table" conf="3"/>
30
- <script id="ssh-hostkey" output="1024 ac:00:a0:1a:82:ff:cc:55:99:dc:67:2b:34:97:6b:75 (DSA)&#10;ssh-dss AAAAB3NzaC1kc3MAAACBAOe8o59vFWZGaBmGPVeJBObEfi1AR8yEUYC/Ufkku3sKhGF7wM2m2ujIeZDK5vqeC0S5EN2xYo6FshCP4FQRYeTxD17nNO4PhwW65qAjDRRU0uHFfSAh5wk+vt4yQztOE++sTd1G9OBLzA8HO99qDmCAxb3zw+GQDEgPjzgyzGZ3AAAAFQCBmE1vROP8IaPkUmhM5xLFta/xHwAAAIEA3EwRfaeOPLL7TKDgGX67Lbkf9UtdlpCdC4doMjGgsznYMwWH6a7Lj3vi4/KmeZZdix6FMdFqq+2vrfT1DRqx0RS0XYdGxnkgS+2g333WYCrUkDCn6RPUWR/1TgGMPHCj7LWCa1ZwJwLWS2KX288Pa2gLOWuhZm2VYKSQx6NEDOIAAACBANxIfprSdBdbo4Ezrh6/X6HSvrhjtZ7MouStWaE714ByO5bS2coM9CyaCwYyrE5qzYiyIfb+1BG3O5nVdDuN95sQ/0bAdBKlkqLFvFqFjVbETF0ri3v97w6MpUawfF75ouDrQ4xdaUOLLEWTso6VFJcM6Jg9bDl0FA0uLZUSDEHL&#10;2048 20:3d:2d:44:62:2a:b0:5a:9d:b5:b3:05:14:c2:a6:b2 (RSA)&#10;ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6afooTZ9mVUGFNEhkMoRR1Btzu64XXwElhCsHw/zVlIx/HXylNbb9+11dm2VgJQ21pxkWDs+L6+EbYyDnvRURTrMTgHL0xseB0EkNqexs9hYZSiqtMx4jtGNtHvsMxZnbxvVUk2dasWvtBkn8J5JagSbzWTQo4hjKMOI1SUlXtiKxAs2F8wiq2EdSuKw/KNk8GfIp1TA+8ccGeAtnsVptTJ4D/8MhAWsROkQzOowQvnBBz2/8ecEvoMScaf+kDfNQowK3gENtSSOqYw9JLOza6YJBPL/aYuQQ0nJ74Rr5vL44aNIlrGI9jJc2x0bV7BeNA5kVuXsmhyfWbbkB8yGd"/>
31
- </port>
32
- <port protocol="tcp" portid="25">
33
- <state state="open" reason="syn-ack" reason_ttl="64"/>
34
- <service name="smtp" method="table" conf="3"/>
35
- <script id="smtp-commands" output="linqhotel-auth.coxhn.net Hello scanme.nmap.org [10.11.25.150], SIZE 52428800, 8BITMIME, PIPELINING, HELP, &#10; Commands supported: AUTH HELO EHLO MAIL RCPT DATA NOOP QUIT RSET HELP "/>
36
- </port>
37
- <port protocol="tcp" portid="53">
38
- <state state="open" reason="syn-ack" reason_ttl="64"/>
39
- <service name="domain" method="table" conf="3"/>
40
- <script id="dns-nsid" output="&#10; bind.version: 9.6.1&#10;"/>
41
- </port>
42
- <port protocol="tcp" portid="80">
43
- <state state="open" reason="syn-ack" reason_ttl="64"/>
44
- <service name="http" method="table" conf="3"/>
45
- <script id="http-methods" output="GET HEAD POST OPTIONS"/>
46
- <script id="http-title" output="Go ahead and ScanMe!"/>
47
- <script id="http-favicon" output="Unknown favicon MD5: 156515DA3C0F7DC6B2493BD5CE43F795"/>
48
- </port>
49
- <port protocol="tcp" portid="135">
50
- <state state="filtered" reason="no-response" reason_ttl="0"/>
51
- <service name="msrpc" method="table" conf="3"/>
52
- </port>
53
- <port protocol="tcp" portid="161">
54
- <state state="filtered" reason="no-response" reason_ttl="0"/>
55
- <service name="snmp" method="table" conf="3"/>
56
- </port>
57
- <port protocol="tcp" portid="163">
58
- <state state="open" reason="syn-ack" reason_ttl="64"/>
59
- <service name="cmip-man" method="table" conf="3"/>
60
- </port>
61
- <port protocol="tcp" portid="445">
62
- <state state="filtered" reason="no-response" reason_ttl="0"/>
63
- <service name="microsoft-ds" method="table" conf="3"/>
64
- </port>
65
- <port protocol="tcp" portid="749">
66
- <state state="open" reason="syn-ack" reason_ttl="64"/>
67
- <service name="kerberos-adm" method="table" conf="3"/>
68
- </port>
69
- <port protocol="tcp" portid="2381">
70
- <state state="open" reason="syn-ack" reason_ttl="64"/>
71
- <service name="compaq-https" method="table" conf="3"/>
72
- </port>
73
- <port protocol="tcp" portid="2920">
74
- <state state="open" reason="syn-ack" reason_ttl="64"/>
75
- <service name="roboeda" method="table" conf="3"/>
76
- </port>
77
- <port protocol="tcp" portid="5000">
78
- <state state="open" reason="syn-ack" reason_ttl="64"/>
79
- <service name="upnp" method="table" conf="3"/>
80
- </port>
81
- <port protocol="tcp" portid="6669">
82
- <state state="open" reason="syn-ack" reason_ttl="64"/>
83
- <service name="irc" method="table" conf="3"/>
84
- <script id="irc-info" output="Unable to open connection"/>
85
- </port>
86
- <port protocol="tcp" portid="7496">
87
- <state state="open" reason="syn-ack" reason_ttl="64"/>
88
- <service name="unknown" method="table" conf="3"/>
89
- </port>
90
- <port protocol="tcp" portid="7920">
91
- <state state="open" reason="syn-ack" reason_ttl="64"/>
92
- <service name="unknown" method="table" conf="3"/>
93
- </port>
94
- <port protocol="tcp" portid="9929">
95
- <state state="open" reason="syn-ack" reason_ttl="64"/>
96
- <service name="nping-echo" method="table" conf="3"/>
97
- </port>
98
- <port protocol="tcp" portid="10778">
99
- <state state="open" reason="syn-ack" reason_ttl="64"/>
100
- <service name="unknown" method="table" conf="3"/>
101
- </port>
102
- <port protocol="tcp" portid="31337">
103
- <state state="open" reason="syn-ack" reason_ttl="64"/>
104
- <service name="Elite" method="table" conf="3"/>
105
- </port>
106
- <port protocol="tcp" portid="42510">
107
- <state state="open" reason="syn-ack" reason_ttl="64"/>
108
- <service name="caerpc" method="table" conf="3"/>
109
- </port>
110
- <port protocol="tcp" portid="44176">
111
- <state state="open" reason="syn-ack" reason_ttl="64"/>
112
- <service name="unknown" method="table" conf="3"/>
113
- </port>
114
- <port protocol="tcp" portid="49163">
115
- <state state="open" reason="syn-ack" reason_ttl="64"/>
116
- <service name="unknown" method="table" conf="3"/>
117
- </port>
118
- </ports>
119
- <times srtt="23838" rttvar="2863" to="100000"/>
120
- </host>
121
- <taskbegin task="NSE" time="1470376192"/>
122
- <taskend task="NSE" time="1470376192"/>
123
- <runstats>
124
- <finished time="1470376192" timestr="Fri Aug 5 01:49:52 2016" elapsed="11.13" summary="Nmap done at Fri Aug 5 01:49:52 2016; 1 IP address (1 host up) scanned in 11.13 seconds" exit="success"/>
125
- <hosts up="1" down="0" total="1"/>
126
- </runstats>
127
- </nmaprun>
@@ -1,72 +0,0 @@
1
- <?xml version="1.0"?>
2
- <?xml-stylesheet href="file:///usr/local/bin/../share/nmap/nmap.xsl" type="text/xsl"?>
3
- <!-- Nmap 5.59BETA3 scan initiated Fri Sep 9 18:33:41 2011 as:
4
- nmap -T4 -A -p 1-1000 -oX - scanme.nmap.org -->
5
- <nmaprun scanner="nmap" args="nmap -T4 -A -p 1-1000 -oX - scanme.nmap.org" start="1315618421"
6
- startstr="Fri Sep 9 18:33:41 2011" version="5.59BETA3" xmloutputversion="1.03">
7
- <scaninfo type="syn" protocol="tcp" numservices="1000" services="1-1000"/>
8
- <verbose level="0"/>
9
- <debugging level="0"/>
10
- <host starttime="1315618421" endtime="1315618434">
11
- <status state="up" reason="echo-reply"/>
12
- <address addr="74.207.244.221" addrtype="ipv4"/>
13
- <hostnames>
14
- <hostname name="scanme.nmap.org" type="user"/>
15
- <hostname name="li86-221.members.linode.com" type="PTR"/>
16
- </hostnames>
17
- <ports>
18
- <extraports state="closed" count="997">
19
- <extrareasons reason="resets" count="997"/>
20
- </extraports>
21
- <port protocol="tcp" portid="22">
22
- <state state="open" reason="syn-ack" reason_ttl="53"/>
23
- <service name="ssh" product="OpenSSH" version="5.3p1 Debian 3ubuntu7"
24
- extrainfo="protocol 2.0" ostype="Linux" method="probed" conf="10">
25
- <cpe>cpe:/a:openbsd:openssh:5.3p1</cpe>
26
- <cpe>cpe:/o:linux:kernel</cpe>
27
- </service>
28
- <script id="ssh-hostkey"
29
- output="1024 8d:60:f1:7c:ca:b7:3d:0a:d6:67:54:9d:69:d9:b9:dd (DSA)&#xa;
30
- 2048 79:f8:09:ac:d4:e2:32:42:10:49:d3:bd:20:82:85:ec (RSA)"/>
31
- </port>
32
- <port protocol="tcp" portid="80">
33
- <state state="open" reason="syn-ack" reason_ttl="53"/>
34
- <service name="http" product="Apache httpd" version="2.2.14"
35
- extrainfo="(Ubuntu)" method="probed" conf="10">
36
- <cpe>cpe:/a:apache:http_server:2.2.14</cpe>
37
- </service>
38
- <script id="http-title" output="Go ahead and ScanMe!"/>
39
- </port>
40
- </ports>
41
- <os>
42
- <portused state="open" proto="tcp" portid="22"/>
43
- <portused state="closed" proto="tcp" portid="1"/>
44
- <portused state="closed" proto="udp" portid="31289"/>
45
- <osclass type="general purpose" vendor="Linux" osfamily="Linux"
46
- osgen="2.6.X" accuracy="100">
47
- <cpe>cpe:/o:linux:linux_kernel:2.6.39</cpe>
48
- </osclass>
49
- <osmatch name="Linux 2.6.39" accuracy="100" line="39278"/>
50
- </os>
51
- <uptime seconds="23450" lastboot="Fri Sep 9 12:03:04 2011"/>
52
- <distance value="11"/>
53
- <tcpsequence index="199" difficulty="Good luck!"
54
- values="49018209,48C3EBED,495A2E7F,493EF30C,48ED43B3,495A9B0C"/>
55
- <ipidsequence class="All zeros" values="0,0,0,0,0,0"/>
56
- <tcptssequence class="1000HZ"
57
- values="165CC09,165CC6E,165CCD2,165CD36,165CD9A,165CE48"/>
58
- <trace port="256" proto="tcp">
59
- <!-- Several hop elements removed for brevity -->
60
- <hop ttl="9" ipaddr="72.52.92.109" rtt="15.69" host="10gigabitethernet1-1.core1.fmt1.he.net"/>
61
- <hop ttl="10" ipaddr="64.62.250.6" rtt="12.06" host="linode-llc.10gigabitethernet2-3.core1.fmt1.he.net"/>
62
- <hop ttl="11" ipaddr="74.207.244.221" rtt="16.55" host="li86-221.members.linode.com"/>
63
- </trace>
64
- <times srtt="26517" rttvar="19989" to="106473"/>
65
- </host>
66
- <runstats>
67
- <finished time="1315618434" timestr="Fri Sep 9 18:33:54 2011" elapsed="13.66"
68
- summary="Nmap done at Fri Sep 9 18:33:54 2011; 1 IP address (1 host up)
69
- scanned in 13.66 seconds" exit="success"/>
70
- <hosts up="1" down="0" total="1"/>
71
- </runstats>
72
- </nmaprun>
@@ -1,71 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe 'Nmap upload plugin' do
4
- describe "Importer" do
5
-
6
- before(:each) do
7
- # Stub template service
8
- templates_dir = File.expand_path('../../templates', __FILE__)
9
- expect_any_instance_of(Dradis::Plugins::TemplateService)
10
- .to receive(:default_templates_dir).and_return(templates_dir)
11
-
12
- # Init services
13
- plugin = Dradis::Plugins::Nmap
14
-
15
- @content_service = Dradis::Plugins::ContentService::Base.new(plugin: plugin)
16
-
17
- @importer = plugin::Importer.new(
18
- content_service: @content_service
19
- )
20
- end
21
-
22
- it "creates an error note when the xml is not valid" do
23
- expect(@content_service).to receive(:create_note) do |args|
24
- expect(args[:text]).to include("#[Title]#\nInvalid file format")
25
- OpenStruct.new(args)
26
- end.once
27
-
28
- # Run the import
29
- @importer.import(file: 'spec/fixtures/files/invalid.xml')
30
- end
31
-
32
- it "creates nodes, issues, notes and an evidences as needed" do
33
- expect(@content_service).to receive(:create_node) do |args|
34
- puts "create_node: #{ args.inspect }"
35
- expect(args[:label]).to eq('74.207.244.221')
36
- expect(args[:type]).to eq(:host)
37
- obj = OpenStruct.new(args)
38
- obj.define_singleton_method(:set_property) { |*| }
39
- obj.define_singleton_method(:set_service) { |*| }
40
- obj
41
- end.once
42
- expect(@content_service).to receive(:create_note) do |args|
43
- puts "create_note: #{ args.inspect }"
44
- expect(args[:text]).to include("#[Title]#\nNmap info: 74.207.244.221")
45
- expect(args[:text]).to_not include("not recognized by the plugin")
46
- expect(args[:node].label).to eq("74.207.244.221")
47
- OpenStruct.new(args)
48
- end.once
49
- expect(@content_service).to receive(:create_note) do |args|
50
- puts "create_note: #{ args.inspect }"
51
- expect(args[:text]).to include("#[Title]#\n22/tcp is open (syn-ack)")
52
- expect(args[:text]).to_not include("not recognized by the plugin")
53
- expect(args[:text]).to include("#[Host]#\n74.207.244.221")
54
- expect(args[:node].label).to eq("74.207.244.221")
55
- OpenStruct.new(args)
56
- end.once
57
- expect(@content_service).to receive(:create_note) do |args|
58
- puts "create_note: #{ args.inspect }"
59
- expect(args[:text]).to include("#[Title]#\n80/tcp is open (syn-ack)")
60
- expect(args[:text]).to_not include("not recognized by the plugin")
61
- expect(args[:text]).to include("#[Host]#\n74.207.244.221")
62
- expect(args[:node].label).to eq("74.207.244.221")
63
- OpenStruct.new(args)
64
- end.once
65
-
66
- # Run the import
67
- @importer.import(file: 'spec/fixtures/files/sample.xml')
68
- end
69
-
70
- end
71
- end
data/spec/spec_helper.rb DELETED
@@ -1,9 +0,0 @@
1
- require 'rubygems'
2
- require 'bundler/setup'
3
- require 'nokogiri'
4
- require 'combustion'
5
-
6
- Combustion.initialize!
7
-
8
- RSpec.configure do |config|
9
- end