ronin-support-web 0.1.0.1 → 0.1.1
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 +1 -0
- data/ChangeLog.md +5 -0
- data/README.md +1 -1
- data/gemspec.yml +1 -1
- data/lib/ronin/support/web/agent/mixin.rb +2 -2
- data/lib/ronin/support/web/agent.rb +55 -1
- data/lib/ronin/support/web/html/mixin.rb +2 -2
- data/lib/ronin/support/web/html.rb +1 -1
- data/lib/ronin/support/web/mixin.rb +5 -5
- data/lib/ronin/support/web/version.rb +2 -2
- data/lib/ronin/support/web/websocket/client.rb +4 -3
- data/lib/ronin/support/web/websocket/mixin.rb +2 -2
- data/lib/ronin/support/web/websocket/server.rb +4 -3
- data/lib/ronin/support/web/websocket/socket.rb +2 -2
- data/lib/ronin/support/web/websocket/url_methods.rb +1 -1
- data/lib/ronin/support/web/websocket.rb +4 -4
- data/lib/ronin/support/web/xml/mixin.rb +2 -2
- data/lib/ronin/support/web/xml.rb +1 -1
- data/lib/ronin/support/web.rb +5 -5
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7c88ea4e411ed33939ca3bc8d2685173655ac5e4dbfd77f081b5c1fc6bd52b4
|
4
|
+
data.tar.gz: c9fe7a7c8914090ab8442173a714c23f612c6c40a3b98050cf2e6799366ff9e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69cfd911ce6e6cba67bbea447e90248e69864ceee09c7d429c8455808b5ff4b0e9ab421f9719548056b7f37cd8b81e5cb0d5f7cde78b21bc6045efc156b5ad6e
|
7
|
+
data.tar.gz: 001b324d916fe70a4c012fd4bb6464c4fe6f4513e5bd809529a09079b58493ceee2384a504ecc2c6899936cb49ae054cafb77dac7e460ba2298f7b866f8d4efc
|
data/.github/workflows/ruby.yml
CHANGED
data/ChangeLog.md
CHANGED
data/README.md
CHANGED
@@ -298,7 +298,7 @@ gem.add_dependency 'ronin-support-web', '~> 0.1'
|
|
298
298
|
|
299
299
|
ronin-support-web - A web support library for ronin-rb.
|
300
300
|
|
301
|
-
Copyright (c) 2023-
|
301
|
+
Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
302
302
|
|
303
303
|
ronin-support-web is free software: you can redistribute it and/or modify
|
304
304
|
it under the terms of the GNU Lesser General Public License as published
|
data/gemspec.yml
CHANGED
@@ -5,7 +5,7 @@ description: |
|
|
5
5
|
ronin-support-web provides many helper methods for parsing HTML/XML,
|
6
6
|
fetching web pages, and WebSockets.
|
7
7
|
|
8
|
-
license: LGPL-3.0
|
8
|
+
license: LGPL-3.0-or-later
|
9
9
|
authors: Postmodern
|
10
10
|
email: postmodern.mod3@gmail.com
|
11
11
|
homepage: https://ronin-rb.dev/
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-support-web - A web support library for ronin-rb.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2023-
|
5
|
+
# Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-support-web is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -18,7 +18,7 @@
|
|
18
18
|
# along with ronin-support-web. If not, see <https://www.gnu.org/licenses/>.
|
19
19
|
#
|
20
20
|
|
21
|
-
|
21
|
+
require_relative '../agent'
|
22
22
|
|
23
23
|
module Ronin
|
24
24
|
module Support
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-support-web - A web support library for ronin-rb.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2023-
|
5
|
+
# Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-support-web is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -83,6 +83,12 @@ module Ronin
|
|
83
83
|
#
|
84
84
|
# Initializes the Web agent.
|
85
85
|
#
|
86
|
+
# @param [Boolean] follow_redirects
|
87
|
+
# Specifies whether HTTP redirects will automatically be followed.
|
88
|
+
#
|
89
|
+
# @param [Integer] max_redirects
|
90
|
+
# The maximum number of redirects to follow. Defaults to 20.
|
91
|
+
#
|
86
92
|
# @param [String, URI::HTTP, Addressable::URI, nil] proxy
|
87
93
|
# The optional proxy to send requests through.
|
88
94
|
#
|
@@ -1036,6 +1042,12 @@ module Ronin
|
|
1036
1042
|
# @param [URI::HTTP, Addressable::URI, String] url
|
1037
1043
|
# The URL to create the HTTP GET request for.
|
1038
1044
|
#
|
1045
|
+
# @param [Boolean] follow_redirects
|
1046
|
+
# Overrides whether HTTP redirects will automatically be followed.
|
1047
|
+
#
|
1048
|
+
# @param [Integer] max_redirects
|
1049
|
+
# Overrides the maximum number of redirects to follow.
|
1050
|
+
#
|
1039
1051
|
# @!macro request_kwargs
|
1040
1052
|
#
|
1041
1053
|
# @yield [response]
|
@@ -1086,6 +1098,12 @@ module Ronin
|
|
1086
1098
|
# @param [URI::HTTP, Addressable::URI, String] url
|
1087
1099
|
# The URL to create the HTTP GET request for.
|
1088
1100
|
#
|
1101
|
+
# @option kwargs [Boolean] :follow_redirects
|
1102
|
+
# Overrides whether HTTP redirects will automatically be followed.
|
1103
|
+
#
|
1104
|
+
# @option kwargs [Integer] :max_redirects
|
1105
|
+
# Overrides the maximum number of redirects to follow.
|
1106
|
+
#
|
1089
1107
|
# @!macro request_kwargs
|
1090
1108
|
#
|
1091
1109
|
# @return [Nokogiri::HTML::Document]
|
@@ -1119,6 +1137,12 @@ module Ronin
|
|
1119
1137
|
# @param [URI::HTTP, Addressable::URI, String] url
|
1120
1138
|
# The URL to create the HTTP GET request for.
|
1121
1139
|
#
|
1140
|
+
# @option kwargs [Boolean] :follow_redirects
|
1141
|
+
# Overrides whether HTTP redirects will automatically be followed.
|
1142
|
+
#
|
1143
|
+
# @option kwargs [Integer] :max_redirects
|
1144
|
+
# Overrides the maximum number of redirects to follow.
|
1145
|
+
#
|
1122
1146
|
# @!macro request_kwargs
|
1123
1147
|
#
|
1124
1148
|
# @return [Nokogiri::XML::Document]
|
@@ -1152,6 +1176,12 @@ module Ronin
|
|
1152
1176
|
# @param [URI::HTTP, Addressable::URI, String] url
|
1153
1177
|
# The URL to create the HTTP GET request for.
|
1154
1178
|
#
|
1179
|
+
# @option kwargs [Boolean] :follow_redirects
|
1180
|
+
# Overrides whether HTTP redirects will automatically be followed.
|
1181
|
+
#
|
1182
|
+
# @option kwargs [Integer] :max_redirects
|
1183
|
+
# Overrides the maximum number of redirects to follow.
|
1184
|
+
#
|
1155
1185
|
# @!macro request_kwargs
|
1156
1186
|
#
|
1157
1187
|
# @return [Hash{String => Object}, Array]
|
@@ -1186,6 +1216,12 @@ module Ronin
|
|
1186
1216
|
# @param [URI::HTTP, Addressable::URI, String] url
|
1187
1217
|
# The URL to create the HTTP GET request for.
|
1188
1218
|
#
|
1219
|
+
# @param [Boolean] follow_redirects
|
1220
|
+
# Overrides whether HTTP redirects will automatically be followed.
|
1221
|
+
#
|
1222
|
+
# @param [Integer] max_redirects
|
1223
|
+
# Overrides the maximum number of redirects to follow.
|
1224
|
+
#
|
1189
1225
|
# @!macro request_kwargs
|
1190
1226
|
#
|
1191
1227
|
# @yield [response]
|
@@ -1234,6 +1270,12 @@ module Ronin
|
|
1234
1270
|
# @param [URI::HTTP, Addressable::URI, String] url
|
1235
1271
|
# The URL to create the HTTP POST request for.
|
1236
1272
|
#
|
1273
|
+
# @option kwargs [Boolean] :follow_redirects
|
1274
|
+
# Overrides whether HTTP redirects will automatically be followed.
|
1275
|
+
#
|
1276
|
+
# @option kwargs [Integer] :max_redirects
|
1277
|
+
# Overrides the maximum number of redirects to follow.
|
1278
|
+
#
|
1237
1279
|
# @!macro request_kwargs
|
1238
1280
|
#
|
1239
1281
|
# @return [Nokogiri::HTML::Document]
|
@@ -1270,6 +1312,12 @@ module Ronin
|
|
1270
1312
|
# @param [URI::HTTP, Addressable::URI, String] url
|
1271
1313
|
# The URL to create the HTTP POST request for.
|
1272
1314
|
#
|
1315
|
+
# @option kwargs [Boolean] :follow_redirects
|
1316
|
+
# Overrides whether HTTP redirects will automatically be followed.
|
1317
|
+
#
|
1318
|
+
# @option kwargs [Integer] :max_redirects
|
1319
|
+
# Overrides the maximum number of redirects to follow.
|
1320
|
+
#
|
1273
1321
|
# @!macro request_kwargs
|
1274
1322
|
#
|
1275
1323
|
# @return [Nokogiri::XML::Document]
|
@@ -1306,6 +1354,12 @@ module Ronin
|
|
1306
1354
|
# @param [URI::HTTP, Addressable::URI, String] url
|
1307
1355
|
# The URL to create the HTTP POST request for.
|
1308
1356
|
#
|
1357
|
+
# @option kwargs [Boolean] :follow_redirects
|
1358
|
+
# Overrides whether HTTP redirects will automatically be followed.
|
1359
|
+
#
|
1360
|
+
# @option kwargs [Integer] :max_redirects
|
1361
|
+
# Overrides the maximum number of redirects to follow.
|
1362
|
+
#
|
1309
1363
|
# @!macro request_kwargs
|
1310
1364
|
#
|
1311
1365
|
# @return [Hash{String => Object}, Array]
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-support-web - A web support library for ronin-rb.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2023-
|
5
|
+
# Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-support-web is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -18,7 +18,7 @@
|
|
18
18
|
# along with ronin-support-web. If not, see <https://www.gnu.org/licenses/>.
|
19
19
|
#
|
20
20
|
|
21
|
-
|
21
|
+
require_relative '../html'
|
22
22
|
|
23
23
|
module Ronin
|
24
24
|
module Support
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-support-web - A web support library for ronin-rb.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2023-
|
5
|
+
# Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-support-web is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-support-web - A web support library for ronin-rb.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2023-
|
5
|
+
# Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-support-web is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -18,10 +18,10 @@
|
|
18
18
|
# along with ronin-support-web. If not, see <https://www.gnu.org/licenses/>.
|
19
19
|
#
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
21
|
+
require_relative 'html/mixin'
|
22
|
+
require_relative 'xml/mixin'
|
23
|
+
require_relative 'agent/mixin'
|
24
|
+
require_relative 'websocket/mixin'
|
25
25
|
|
26
26
|
module Ronin
|
27
27
|
module Support
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-support-web - A web support library for ronin-rb.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2023-
|
5
|
+
# Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-support-web is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -22,7 +22,7 @@ module Ronin
|
|
22
22
|
module Support
|
23
23
|
module Web
|
24
24
|
# ronin-support-web version
|
25
|
-
VERSION = '0.1.
|
25
|
+
VERSION = '0.1.1'
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-support-web - A web support library for ronin-rb.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2023-
|
5
|
+
# Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-support-web is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -18,8 +18,9 @@
|
|
18
18
|
# along with ronin-support-web. If not, see <https://www.gnu.org/licenses/>.
|
19
19
|
#
|
20
20
|
|
21
|
-
|
22
|
-
|
21
|
+
require_relative 'socket'
|
22
|
+
require_relative 'url_methods'
|
23
|
+
|
23
24
|
require 'ronin/support/network/tcp'
|
24
25
|
require 'ronin/support/network/ssl'
|
25
26
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-support-web - A web support library for ronin-rb.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2023-
|
5
|
+
# Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-support-web is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -18,7 +18,7 @@
|
|
18
18
|
# along with ronin-support-web. If not, see <https://www.gnu.org/licenses/>.
|
19
19
|
#
|
20
20
|
|
21
|
-
|
21
|
+
require_relative '../websocket'
|
22
22
|
|
23
23
|
require 'uri/ws'
|
24
24
|
require 'uri/wss'
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-support-web - A web support library for ronin-rb.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2023-
|
5
|
+
# Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-support-web is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -18,8 +18,9 @@
|
|
18
18
|
# along with ronin-support-web. If not, see <https://www.gnu.org/licenses/>.
|
19
19
|
#
|
20
20
|
|
21
|
-
|
22
|
-
|
21
|
+
require_relative 'socket'
|
22
|
+
require_relative 'url_methods'
|
23
|
+
|
23
24
|
require 'ronin/support/network/tcp'
|
24
25
|
require 'ronin/support/network/ssl'
|
25
26
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-support-web - A web support library for ronin-rb.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2023-
|
5
|
+
# Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-support-web is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -18,7 +18,7 @@
|
|
18
18
|
# along with ronin-support-web. If not, see <https://www.gnu.org/licenses/>.
|
19
19
|
#
|
20
20
|
|
21
|
-
|
21
|
+
require_relative 'url_methods'
|
22
22
|
|
23
23
|
module Ronin
|
24
24
|
module Support
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-support-web - A web support library for ronin-rb.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2023-
|
5
|
+
# Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-support-web is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-support-web - A web support library for ronin-rb.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2023-
|
5
|
+
# Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-support-web is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -18,9 +18,9 @@
|
|
18
18
|
# along with ronin-support-web. If not, see <https://www.gnu.org/licenses/>.
|
19
19
|
#
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
|
21
|
+
require_relative 'websocket/client'
|
22
|
+
require_relative 'websocket/server'
|
23
|
+
require_relative 'websocket/mixin'
|
24
24
|
|
25
25
|
require 'ronin/support/network/tcp'
|
26
26
|
require 'ronin/support/network/ssl'
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-support-web - A web support library for ronin-rb.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2023-
|
5
|
+
# Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-support-web is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -18,7 +18,7 @@
|
|
18
18
|
# along with ronin-support-web. If not, see <https://www.gnu.org/licenses/>.
|
19
19
|
#
|
20
20
|
|
21
|
-
|
21
|
+
require_relative '../xml'
|
22
22
|
|
23
23
|
module Ronin
|
24
24
|
module Support
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-support-web - A web support library for ronin-rb.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2023-
|
5
|
+
# Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-support-web is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
data/lib/ronin/support/web.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-support-web - A web support library for ronin-rb.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2023-
|
5
|
+
# Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-support-web is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -18,10 +18,10 @@
|
|
18
18
|
# along with ronin-support-web. If not, see <https://www.gnu.org/licenses/>.
|
19
19
|
#
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
21
|
+
require_relative 'web/xml'
|
22
|
+
require_relative 'web/html'
|
23
|
+
require_relative 'web/mixin'
|
24
|
+
require_relative 'web/version'
|
25
25
|
|
26
26
|
module Ronin
|
27
27
|
module Support
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ronin-support-web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
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: 2025-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -121,7 +121,7 @@ files:
|
|
121
121
|
- ronin-support-web.gemspec
|
122
122
|
homepage: https://ronin-rb.dev/
|
123
123
|
licenses:
|
124
|
-
- LGPL-3.0
|
124
|
+
- LGPL-3.0-or-later
|
125
125
|
metadata:
|
126
126
|
documentation_uri: https://ronin-rb.dev/docs/ronin-support-web
|
127
127
|
source_code_uri: https://github.com/ronin-rb/ronin-support-web
|
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
143
143
|
- !ruby/object:Gem::Version
|
144
144
|
version: '0'
|
145
145
|
requirements: []
|
146
|
-
rubygems_version: 3.5.
|
146
|
+
rubygems_version: 3.5.22
|
147
147
|
signing_key:
|
148
148
|
specification_version: 4
|
149
149
|
summary: A web support library for ronin-rb.
|