ronin-support 0.1.0.pre3 → 0.1.0.rc1
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.
- data/.gemtest +0 -0
- data/Gemfile +3 -1
- data/README.md +2 -23
- data/Rakefile +1 -0
- data/lib/ronin/extensions/file.rb +2 -2
- data/lib/ronin/extensions/ip_addr.rb +2 -2
- data/lib/ronin/extensions/kernel.rb +2 -2
- data/lib/ronin/extensions/meta.rb +2 -2
- data/lib/ronin/extensions/string.rb +2 -2
- data/lib/ronin/extensions.rb +2 -2
- data/lib/ronin/formatting/binary.rb +2 -2
- data/lib/ronin/formatting/digest.rb +2 -2
- data/lib/ronin/formatting/extensions/binary/file.rb +2 -2
- data/lib/ronin/formatting/extensions/binary/integer.rb +2 -2
- data/lib/ronin/formatting/extensions/binary/string.rb +4 -4
- data/lib/ronin/formatting/extensions/binary.rb +2 -2
- data/lib/ronin/formatting/extensions/digest/file.rb +2 -2
- data/lib/ronin/formatting/extensions/digest/string.rb +2 -2
- data/lib/ronin/formatting/extensions/digest.rb +2 -2
- data/lib/ronin/formatting/extensions/http/integer.rb +2 -2
- data/lib/ronin/formatting/extensions/http/string.rb +3 -3
- data/lib/ronin/formatting/extensions/http.rb +2 -2
- data/lib/ronin/formatting/extensions/text/array.rb +4 -4
- data/lib/ronin/formatting/extensions/text/string.rb +2 -2
- data/lib/ronin/formatting/extensions/text.rb +2 -2
- data/lib/ronin/formatting/extensions.rb +2 -2
- data/lib/ronin/formatting/http.rb +2 -2
- data/lib/ronin/formatting/text.rb +2 -2
- data/lib/ronin/formatting.rb +2 -2
- data/lib/ronin/network/esmtp.rb +2 -2
- data/lib/ronin/network/extensions/esmtp/net.rb +2 -2
- data/lib/ronin/network/extensions/esmtp.rb +2 -2
- data/lib/ronin/network/extensions/http/net.rb +2 -2
- data/lib/ronin/network/extensions/http.rb +2 -2
- data/lib/ronin/network/extensions/imap/net.rb +2 -2
- data/lib/ronin/network/extensions/imap.rb +2 -2
- data/lib/ronin/network/extensions/pop3/net.rb +2 -2
- data/lib/ronin/network/extensions/pop3.rb +2 -2
- data/lib/ronin/network/extensions/smtp/net.rb +2 -2
- data/lib/ronin/network/extensions/smtp.rb +2 -2
- data/lib/ronin/network/extensions/ssl/net.rb +2 -2
- data/lib/ronin/network/extensions/ssl.rb +2 -2
- data/lib/ronin/network/extensions/tcp/net.rb +4 -4
- data/lib/ronin/network/extensions/tcp.rb +2 -2
- data/lib/ronin/network/extensions/telnet/net.rb +2 -2
- data/lib/ronin/network/extensions/telnet.rb +2 -2
- data/lib/ronin/network/extensions/udp/net.rb +4 -4
- data/lib/ronin/network/extensions/udp.rb +2 -2
- data/lib/ronin/network/extensions.rb +2 -2
- data/lib/ronin/network/http/exceptions/unknown_request.rb +2 -2
- data/lib/ronin/network/http/exceptions.rb +2 -2
- data/lib/ronin/network/http/http.rb +5 -2
- data/lib/ronin/network/http/proxy.rb +3 -3
- data/lib/ronin/network/http.rb +2 -2
- data/lib/ronin/network/imap.rb +6 -3
- data/lib/ronin/network/network.rb +5 -2
- data/lib/ronin/network/pop3.rb +6 -3
- data/lib/ronin/network/smtp/email.rb +5 -2
- data/lib/ronin/network/smtp/smtp.rb +6 -3
- data/lib/ronin/network/smtp.rb +2 -2
- data/lib/ronin/network/ssl.rb +5 -2
- data/lib/ronin/network/tcp.rb +2 -2
- data/lib/ronin/network/telnet.rb +5 -2
- data/lib/ronin/network/udp.rb +2 -2
- data/lib/ronin/network.rb +2 -2
- data/lib/ronin/path.rb +2 -2
- data/lib/ronin/support/inflector.rb +3 -3
- data/lib/ronin/support/version.rb +3 -3
- data/lib/ronin/support.rb +2 -2
- data/lib/ronin/templates/erb.rb +3 -3
- data/lib/ronin/templates/template.rb +2 -2
- data/lib/ronin/templates.rb +2 -2
- data/ronin-support.gemspec +7 -2
- metadata +4 -3
data/.gemtest
ADDED
|
File without changes
|
data/Gemfile
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
require 'ore/specification'
|
|
2
|
+
|
|
1
3
|
source 'https://rubygems.org'
|
|
2
4
|
|
|
3
5
|
gemspec
|
|
@@ -9,7 +11,7 @@ end
|
|
|
9
11
|
group :development do
|
|
10
12
|
gem 'rake', '~> 0.8.7'
|
|
11
13
|
|
|
12
|
-
gem 'ore-core', '~> 0.1.
|
|
14
|
+
gem 'ore-core', '~> 0.1.1'
|
|
13
15
|
gem 'ore-tasks', '~> 0.3.0'
|
|
14
16
|
gem 'rspec', '~> 2.3.0'
|
|
15
17
|
|
data/README.md
CHANGED
|
@@ -15,27 +15,6 @@ Ronin is a Ruby platform for exploit development and security research.
|
|
|
15
15
|
Ronin allows for the rapid development and distribution of code, exploits
|
|
16
16
|
or payloads over many common Source-Code-Management (SCM) systems.
|
|
17
17
|
|
|
18
|
-
### Ruby
|
|
19
|
-
|
|
20
|
-
Ronin's Ruby environment allows security researchers to leverage Ruby with
|
|
21
|
-
ease. The Ruby environment contains a multitude of convenience methods
|
|
22
|
-
for working with data in Ruby, a Ruby Object Database, a customized Ruby
|
|
23
|
-
Console and an extendable command-line interface.
|
|
24
|
-
|
|
25
|
-
### Extend
|
|
26
|
-
|
|
27
|
-
Ronin's more specialized features are provided by additional Ronin
|
|
28
|
-
libraries, which users can choose to install. These libraries can allow
|
|
29
|
-
one to write and run Exploits and Payloads, scan for PHP vulnerabilities,
|
|
30
|
-
perform Google Dorks or run 3rd party scanners.
|
|
31
|
-
|
|
32
|
-
### Publish
|
|
33
|
-
|
|
34
|
-
Ronin allows users to publish and share code, exploits, payloads or other
|
|
35
|
-
data via Overlays. Overlays are directories of code and data that can be
|
|
36
|
-
hosted on any SVN, Hg, Git or Rsync server. Ronin makes it easy to create,
|
|
37
|
-
install or update Overlays.
|
|
38
|
-
|
|
39
18
|
## Features
|
|
40
19
|
|
|
41
20
|
* Provides convenience methods for:
|
|
@@ -82,8 +61,8 @@ Copyright (c) 2006-2011 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
|
82
61
|
This file is part of Ronin Support.
|
|
83
62
|
|
|
84
63
|
Ronin Support is free software: you can redistribute it and/or modify
|
|
85
|
-
it under the terms of the GNU Lesser General Public License as
|
|
86
|
-
the Free Software Foundation, either version 3 of the License, or
|
|
64
|
+
it under the terms of the GNU Lesser General Public License as published
|
|
65
|
+
by the Free Software Foundation, either version 3 of the License, or
|
|
87
66
|
(at your option) any later version.
|
|
88
67
|
|
|
89
68
|
Ronin Support is distributed in the hope that it will be useful,
|
data/Rakefile
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
data/lib/ronin/extensions.rb
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -237,7 +237,7 @@ class String
|
|
|
237
237
|
# Zlib inflate a string.
|
|
238
238
|
#
|
|
239
239
|
# @return [String]
|
|
240
|
-
# The
|
|
240
|
+
# The Zlib inflated form of the string.
|
|
241
241
|
#
|
|
242
242
|
def zlib_inflate
|
|
243
243
|
Zlib::Inflate.inflate(self)
|
|
@@ -247,7 +247,7 @@ class String
|
|
|
247
247
|
# Zlib deflate a string.
|
|
248
248
|
#
|
|
249
249
|
# @return [String]
|
|
250
|
-
# The
|
|
250
|
+
# The Zlib deflated form of the string.
|
|
251
251
|
#
|
|
252
252
|
def zlib_deflate
|
|
253
253
|
Zlib::Deflate.deflate(self)
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -85,7 +85,7 @@ class String
|
|
|
85
85
|
# Formats the bytes of the String.
|
|
86
86
|
#
|
|
87
87
|
# @return [String]
|
|
88
|
-
# The HTTP
|
|
88
|
+
# The HTTP hexadecimal encoded form of the String.
|
|
89
89
|
#
|
|
90
90
|
# @example
|
|
91
91
|
# "hello".format_http
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -81,7 +81,7 @@ class Array
|
|
|
81
81
|
# hexadecimal characters.
|
|
82
82
|
#
|
|
83
83
|
# @return [Array<String>]
|
|
84
|
-
# The
|
|
84
|
+
# The hexadecimal characters contained within the Array.
|
|
85
85
|
#
|
|
86
86
|
# @example
|
|
87
87
|
# [0x41, 0x41, 0x20].bytes
|
|
@@ -103,7 +103,7 @@ class Array
|
|
|
103
103
|
# hexadecimal integers.
|
|
104
104
|
#
|
|
105
105
|
# @return [Array<String>]
|
|
106
|
-
# The
|
|
106
|
+
# The hexadecimal integers contained within the Array.
|
|
107
107
|
#
|
|
108
108
|
# @example
|
|
109
109
|
# [0x41, 0x41, 0x20].bytes
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
data/lib/ronin/formatting.rb
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
data/lib/ronin/network/esmtp.rb
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -242,8 +242,8 @@ module Net
|
|
|
242
242
|
# The host to bind to.
|
|
243
243
|
#
|
|
244
244
|
# @yield [server]
|
|
245
|
-
# The block which will be called after the
|
|
246
|
-
# After the block has finished, the
|
|
245
|
+
# The block which will be called after the server has been created.
|
|
246
|
+
# After the block has finished, the server will be closed.
|
|
247
247
|
#
|
|
248
248
|
# @yieldparam [TCPServer] server
|
|
249
249
|
# The newly created TCP server.
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -203,8 +203,8 @@ module Net
|
|
|
203
203
|
# The host to bind to.
|
|
204
204
|
#
|
|
205
205
|
# @yield [server]
|
|
206
|
-
# The block which will be called after the
|
|
207
|
-
# After the block has finished, the
|
|
206
|
+
# The block which will be called after the server has been created.
|
|
207
|
+
# After the block has finished, the server will be closed.
|
|
208
208
|
#
|
|
209
209
|
# @yieldparam [UDPServer] server
|
|
210
210
|
# The newly created UDP server.
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -23,6 +23,9 @@ require 'ronin/network/extensions/http'
|
|
|
23
23
|
|
|
24
24
|
module Ronin
|
|
25
25
|
module Network
|
|
26
|
+
#
|
|
27
|
+
# Settings and helper methods for HTTP.
|
|
28
|
+
#
|
|
26
29
|
module HTTP
|
|
27
30
|
#
|
|
28
31
|
# The Ronin HTTP proxy to use. Parses the value of the `HTTP_PROXY`
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -181,7 +181,7 @@ module Ronin
|
|
|
181
181
|
# The IP address the proxy sends with proxied requests.
|
|
182
182
|
#
|
|
183
183
|
# @return [String]
|
|
184
|
-
# The IP address the proxy uses for our
|
|
184
|
+
# The IP address the proxy uses for our requests.
|
|
185
185
|
#
|
|
186
186
|
def proxied_ip
|
|
187
187
|
IPAddr.extract(Net.http_get_body(
|
data/lib/ronin/network/http.rb
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
data/lib/ronin/network/imap.rb
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -21,8 +21,11 @@ require 'ronin/network/extensions/imap'
|
|
|
21
21
|
|
|
22
22
|
module Ronin
|
|
23
23
|
module Network
|
|
24
|
+
#
|
|
25
|
+
# Global settings for accessing IMAP.
|
|
26
|
+
#
|
|
24
27
|
module IMAP
|
|
25
|
-
# Default
|
|
28
|
+
# Default IMAP port
|
|
26
29
|
DEFAULT_PORT = 143
|
|
27
30
|
|
|
28
31
|
#
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -23,6 +23,9 @@ require 'uri'
|
|
|
23
23
|
require 'net/http'
|
|
24
24
|
|
|
25
25
|
module Ronin
|
|
26
|
+
#
|
|
27
|
+
# Network helper methods.
|
|
28
|
+
#
|
|
26
29
|
module Network
|
|
27
30
|
IP_URL = URI('http://checkip.dyndns.org/')
|
|
28
31
|
|
data/lib/ronin/network/pop3.rb
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -21,8 +21,11 @@ require 'ronin/network/extensions/pop3'
|
|
|
21
21
|
|
|
22
22
|
module Ronin
|
|
23
23
|
module Network
|
|
24
|
+
#
|
|
25
|
+
# Global settings for accessing POP3.
|
|
26
|
+
#
|
|
24
27
|
module POP3
|
|
25
|
-
# Default
|
|
28
|
+
# Default POP3 port
|
|
26
29
|
DEFAULT_PORT = 110
|
|
27
30
|
|
|
28
31
|
#
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
module Ronin
|
|
21
21
|
module Network
|
|
22
22
|
module SMTP
|
|
23
|
+
#
|
|
24
|
+
# Represents an Email to be sent over {SMTP}.
|
|
25
|
+
#
|
|
23
26
|
class Email
|
|
24
27
|
|
|
25
28
|
# Sender of the email
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -21,8 +21,11 @@ require 'ronin/network/smtp/email'
|
|
|
21
21
|
|
|
22
22
|
module Ronin
|
|
23
23
|
module Network
|
|
24
|
+
#
|
|
25
|
+
# Global settings for accessing STMP.
|
|
26
|
+
#
|
|
24
27
|
module SMTP
|
|
25
|
-
# Default
|
|
28
|
+
# Default SMTP port
|
|
26
29
|
DEFAULT_PORT = 25
|
|
27
30
|
|
|
28
31
|
#
|
data/lib/ronin/network/smtp.rb
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
data/lib/ronin/network/ssl.rb
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -21,6 +21,9 @@ require 'ronin/network/extensions/ssl'
|
|
|
21
21
|
|
|
22
22
|
module Ronin
|
|
23
23
|
module Network
|
|
24
|
+
#
|
|
25
|
+
# SSL helper methods.
|
|
26
|
+
#
|
|
24
27
|
module SSL
|
|
25
28
|
#
|
|
26
29
|
# Returns the OpenSSL verify mode.
|
data/lib/ronin/network/tcp.rb
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
data/lib/ronin/network/telnet.rb
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -21,6 +21,9 @@ require 'ronin/network/extensions/telnet'
|
|
|
21
21
|
|
|
22
22
|
module Ronin
|
|
23
23
|
module Network
|
|
24
|
+
#
|
|
25
|
+
# Global settings for accessing Telnet.
|
|
26
|
+
#
|
|
24
27
|
module Telnet
|
|
25
28
|
# Default telnet port
|
|
26
29
|
DEFAULT_PORT = 23
|
data/lib/ronin/network/udp.rb
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
data/lib/ronin/network.rb
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
data/lib/ronin/path.rb
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -29,7 +29,7 @@ end
|
|
|
29
29
|
|
|
30
30
|
module Ronin
|
|
31
31
|
module Support
|
|
32
|
-
# The
|
|
32
|
+
# The Inflector that Ronin will use.
|
|
33
33
|
Inflector = if Object.const_defined?(:ActiveSupport)
|
|
34
34
|
ActiveSupport::Inflector
|
|
35
35
|
else
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
module Ronin
|
|
21
21
|
module Support
|
|
22
22
|
# ronin-support version
|
|
23
|
-
VERSION = '0.1.0.
|
|
23
|
+
VERSION = '0.1.0.rc1'
|
|
24
24
|
end
|
|
25
25
|
end
|
data/lib/ronin/support.rb
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
data/lib/ronin/templates/erb.rb
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
|
@@ -25,7 +25,7 @@ module Ronin
|
|
|
25
25
|
module Templates
|
|
26
26
|
#
|
|
27
27
|
# The {Erb} module uses the {Template} module to find and render
|
|
28
|
-
# Embedded Ruby (
|
|
28
|
+
# Embedded Ruby (ERB) templates.
|
|
29
29
|
#
|
|
30
30
|
module Erb
|
|
31
31
|
include Template
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
data/lib/ronin/templates.rb
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# This file is part of Ronin Support.
|
|
5
5
|
#
|
|
6
6
|
# Ronin Support is free software: you can redistribute it and/or modify
|
|
7
|
-
# it under the terms of the GNU Lesser General Public License as
|
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# it under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
11
|
# Ronin Support is distributed in the hope that it will be useful,
|
data/ronin-support.gemspec
CHANGED
|
@@ -5,6 +5,11 @@ begin
|
|
|
5
5
|
# custom logic here
|
|
6
6
|
end
|
|
7
7
|
rescue NameError
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
begin
|
|
9
|
+
require 'ore/specification'
|
|
10
|
+
retry
|
|
11
|
+
rescue LoadError
|
|
12
|
+
STDERR.puts "The 'ronin-support.gemspec' file requires Ore."
|
|
13
|
+
STDERR.puts "Run `gem install ore-core` to install Ore."
|
|
14
|
+
end
|
|
10
15
|
end
|
metadata
CHANGED
|
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
|
|
|
6
6
|
- 0
|
|
7
7
|
- 1
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.1.0.
|
|
9
|
+
- rc1
|
|
10
|
+
version: 0.1.0.rc1
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Postmodern
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-01-
|
|
18
|
+
date: 2011-01-26 00:00:00 -08:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|
|
@@ -105,6 +105,7 @@ extra_rdoc_files:
|
|
|
105
105
|
- COPYING.txt
|
|
106
106
|
files:
|
|
107
107
|
- .document
|
|
108
|
+
- .gemtest
|
|
108
109
|
- .rspec
|
|
109
110
|
- .yardopts
|
|
110
111
|
- COPYING.txt
|