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 +4 -4
- data/Dockerfile +4 -4
- data/lib/dap/filter/ldap.rb +2 -2
- data/lib/dap/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84ec18716c559d5fb16104b20e381be40aef8636
|
4
|
+
data.tar.gz: 85e9bbb9c9828aa523e375c260bdd544e873b51b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8980ba6f81210d355f9adde3210b32c2dc9f919d815662930e54eb43b0cfe053c1e4be7e518274276eef4bd6b2abfc427d93b990fcca49a29162ed2db7099683
|
7
|
+
data.tar.gz: a1434241543ffa939c7936773fea158ada58dc07d6038cb9fefd179637d99f4ab8feae64f84a6a6e4be3f270f41ccd78d3031ff55d572bd544dd738a432cdec2
|
data/Dockerfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
FROM ubuntu:
|
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"]
|
data/lib/dap/filter/ldap.rb
CHANGED
@@ -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
|
data/lib/dap/version.rb
CHANGED
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.
|
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-
|
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.
|
256
|
+
rubygems_version: 2.5.2
|
257
257
|
signing_key:
|
258
258
|
specification_version: 4
|
259
259
|
summary: 'DAP: The Data Analysis Pipeline'
|