dap 0.1.21 → 0.1.22

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cd4f736f826e10602d60d333b6604e8b59008ff8
4
- data.tar.gz: 2733cf105843de9133fb1b44ff2c9c20690e9a9e
3
+ metadata.gz: 84ec18716c559d5fb16104b20e381be40aef8636
4
+ data.tar.gz: 85e9bbb9c9828aa523e375c260bdd544e873b51b
5
5
  SHA512:
6
- metadata.gz: 27d6c2fad0d40179892ada14b6b3c348c404777c4d872b7967c2e2aef9bda3855b69484b12544a16b6d90a7f3af1a5744c8bce5a2b64d3a47d74e423dbeae98c
7
- data.tar.gz: 6b5b043378a79321d579f5c11b6a89ff49aed8c2282a6121f4cc481578ef17b1d94689c05417a55e704674340d4bd92752097f46ff99359b20ec88814e1d8d18
6
+ metadata.gz: 8980ba6f81210d355f9adde3210b32c2dc9f919d815662930e54eb43b0cfe053c1e4be7e518274276eef4bd6b2abfc427d93b990fcca49a29162ed2db7099683
7
+ data.tar.gz: a1434241543ffa939c7936773fea158ada58dc07d6038cb9fefd179637d99f4ab8feae64f84a6a6e4be3f270f41ccd78d3031ff55d572bd544dd738a432cdec2
data/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM ubuntu:15.04
1
+ FROM ubuntu:latest
2
2
 
3
3
  RUN apt-get update
4
4
  RUN apt-get install -y \
@@ -15,11 +15,11 @@ RUN apt-get install -y libxml2-dev zlib1g-dev
15
15
 
16
16
  RUN gem install bundler
17
17
 
18
- RUN cd /opt && git clone https://github.com/rapid7/dap.git dap && \
19
- cd dap && bundle install
20
-
21
18
  RUN apt-get install -y wget && mkdir -p /var/lib/geoip && cd /var/lib/geoip && wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz && gunzip GeoLiteCity.dat.gz && mv GeoLiteCity.dat geoip.dat
22
19
 
20
+ RUN gem install dap -s https://github.com/rapid7/dap
21
+
23
22
  # Clean up APT when done.
24
23
  RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
25
24
 
25
+ ENTRYPOINT ["dap"]
@@ -35,6 +35,8 @@ class FilterDecodeLdapSearchResult
35
35
  messages.each do |element|
36
36
  begin
37
37
  elem_decoded = OpenSSL::ASN1.decode(element)
38
+ parsed_type, parsed_data = Dap::Proto::LDAP.parse_message(elem_decoded)
39
+ info[parsed_type] = parsed_data if parsed_type && parsed_data
38
40
  rescue Exception => e
39
41
  err_msg = 'FilterDecodeLdapSearchResult - Unable to decode ASN.1 element'
40
42
  $stderr.puts "#{err_msg}: #{e}"
@@ -44,8 +46,6 @@ class FilterDecodeLdapSearchResult
44
46
  info['Error'] = { 'errorMessage' => err_msg }
45
47
  next
46
48
  end
47
- parsed_type, parsed_data = Dap::Proto::LDAP.parse_message(elem_decoded)
48
- info[parsed_type] = parsed_data if parsed_type && parsed_data
49
49
  end
50
50
 
51
51
  info
@@ -1,3 +1,3 @@
1
1
  module Dap
2
- VERSION = "0.1.21"
2
+ VERSION = "0.1.22"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.21
4
+ version: 0.1.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rapid7 Research
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-16 00:00:00.000000000 Z
11
+ date: 2018-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -253,7 +253,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
253
253
  version: '0'
254
254
  requirements: []
255
255
  rubyforge_project:
256
- rubygems_version: 2.6.11
256
+ rubygems_version: 2.5.2
257
257
  signing_key:
258
258
  specification_version: 4
259
259
  summary: 'DAP: The Data Analysis Pipeline'