url_reveal22 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 9caba694a1989ced5be263ed647f10805bfa069360c304f43e045cc0e7205316
4
+ data.tar.gz: 28a2e8b18faca57f62565ac0affd4133111de5016f77d1c70d2af65fa6c3109b
5
+ SHA512:
6
+ metadata.gz: a474584aa9313f17a376f3c8100b82952ea25fe5e1251d51d3526550b3add9573450e1b3aba14519a58f01ddf248c7d87c8a940563dd35d2b8b50ecd4c17db35
7
+ data.tar.gz: 8a16cc85988d4bfbd22159eced5846c3474c708ffc495e692c097ae02ba328bcc959647894552c11cc78b77723183dba8a731dad3320abcb35b78c103e50f8b5
checksums.yaml.gz.sig ADDED
@@ -0,0 +1,5 @@
1
+ }�1�>?X(���5����Ѕy_�h�X�)��L;����.h���/ѫ �j� �s1T�:�-�Ydb��l��,�#(͗G�˫��:1אߤ������}�����s7�'X3��
2
+ ��hѻ �s�6{�����Vt"��0����«�j|�@StM닦���c
3
+ �z����-H2Q�@�ƻ�$���.�����^���D'��hd���N�G:.�p.�d
4
+ +5�$��(��~�SNw6��-e9k"��r��#�(��\��녺��p�:����U�Gp�ÿ�2
5
+ �n�)���qswrѝ�K���<�f׷ɏsxя7 �g�}S�XqO�O���ݣ��8����/� �����������X�(�ޓ�c����Ld�
@@ -0,0 +1,30 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # file: url_reveal22.rb
4
+
5
+ # description: Reveals a URL given 1 or more URL redirects including handling
6
+ # the use of passive cookies which could affect the final URL revealed.
7
+
8
+ require 'mechanize'
9
+
10
+ class URL
11
+
12
+ def self.reveal(url, wait: 1)
13
+
14
+ a = Mechanize.new
15
+
16
+ begin
17
+ page = a.get(url)
18
+ rescue
19
+ end
20
+
21
+ sleep wait
22
+ a.get(url).uri.to_s
23
+
24
+ end
25
+
26
+ end
27
+
28
+ if __FILE__ == $0 then
29
+ URL.reveal ARGS[0]
30
+ end
data.tar.gz.sig ADDED
Binary file
metadata ADDED
@@ -0,0 +1,91 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: url_reveal22
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - James Robertson
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIEXjCCAsagAwIBAgIBATANBgkqhkiG9w0BAQsFADAsMSowKAYDVQQDDCFnZW1t
14
+ YXN0ZXIvREM9amFtZXNyb2JlcnRzb24vREM9ZXUwHhcNMjIwNTEyMDcxNTQwWhcN
15
+ MjMwNTEyMDcxNTQwWjAsMSowKAYDVQQDDCFnZW1tYXN0ZXIvREM9amFtZXNyb2Jl
16
+ cnRzb24vREM9ZXUwggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQDHg2Ye
17
+ wYHnp4ffDcv5IKDOkX+j33E6Udb9YjFyae7zK97UqfHqnuP+WnUiMOLsbyNyned3
18
+ fgN24Kr7cEMS9n+kZduJS18MmxlsdsxGeMJe+pA/pV9qhEOxflr1K8Ag6UBKk9qx
19
+ CrAcqGwXmXT3iUelPf8PthF8PqGyAE8GROqWICCP64fbR7/qknrGFU391FRS/fS/
20
+ rsLyA08OC/lzp8+09Wv/uY0YO9Zp+Dwb/6mTcAFML+Q5hqIYce+nnFg8INvSSWf3
21
+ IbmWbtlKfgIzSCZNdME/FZYT153YKVfoB/MyOFiYEOparbEgdgDd2Xnu/SVnXVjc
22
+ YngRNGgYdxtHIL4LRC/2nqhZ0occV4YivLT4fMSqemVGLmr8cAt3fwVEwA50kRFr
23
+ ig3+Yb5oJM5+rfIQ9kpBjqLn6FqUsKGBJBjp/V5UkFzhuVqP+qXGNl6TI0vRX6BZ
24
+ G5z/IhzGeHAMzE6cgMt4ft0UhSojEptxY/nsfzZs3y57c1nQFRAwS484/5kCAwEA
25
+ AaOBijCBhzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQUWeExdcZ2
26
+ D0unmYixLuh6c5wmz/YwJgYDVR0RBB8wHYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0
27
+ c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1hc3RlckBqYW1lc3JvYmVydHNvbi5ldTAN
28
+ BgkqhkiG9w0BAQsFAAOCAYEAnnhD+j/nvaoNmBoN+1H1cLPiX7+5ayQYJ5jyb1tW
29
+ PNTFQ69v6cOvb6zN/kQ1GXQqe1Ya2SXXWbfyTLGqCX0aQxDk3CURmPNhnWPOWW3E
30
+ cPYNia4LkAVmhZfrzZGUnZZz99rOSyaRd7V8FQMFfpPA232REv+IWNMHTniKdx3T
31
+ uwkA9hZxFFuX6mhIA+CaL+UOCGUMWwHqmw/T/Qm+FCP9vETsXH2gymtnBpa3D7wF
32
+ ZmgG8yRUGx+kW9mfPKle6VCzbth7QMKTe1eeJ8EX2wdutWeUTL4l0wQWV/m9S1y3
33
+ 1VDBwnskd+Wgrpv9daODsBxXELX+gGIrJ6VmeYxHJWr+62Ue1hDOcx0VJN88jeYJ
34
+ kwm5pIbFITLKe8qljScTIiepsM9b1JL2zR1fbRnmx+ZgQ8Wg89YlT1C7OAkhI021
35
+ XTC/LmMAYmNiSwy7ps8LfcSk6z9HriKwzY9b0vZFIxIkW3g0HU/xxl66efrOK0+C
36
+ OJEaNmhjNJ6g2o5Syzg3im3x
37
+ -----END CERTIFICATE-----
38
+ date: 2022-05-12 00:00:00.000000000 Z
39
+ dependencies:
40
+ - !ruby/object:Gem::Dependency
41
+ name: mechanize
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '2.8'
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: 2.8.4
50
+ type: :runtime
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - "~>"
55
+ - !ruby/object:Gem::Version
56
+ version: '2.8'
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: 2.8.4
60
+ description:
61
+ email: digital.robertson@gmail.com
62
+ executables: []
63
+ extensions: []
64
+ extra_rdoc_files: []
65
+ files:
66
+ - lib/url_reveal22.rb
67
+ homepage: https://github.com/jrobertson/url_reveal22
68
+ licenses:
69
+ - MIT
70
+ metadata: {}
71
+ post_install_message:
72
+ rdoc_options: []
73
+ require_paths:
74
+ - lib
75
+ required_ruby_version: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
80
+ required_rubygems_version: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: '0'
85
+ requirements: []
86
+ rubygems_version: 3.2.22
87
+ signing_key:
88
+ specification_version: 4
89
+ summary: Reveals a URL given 1 or more URL redirects including handling the use of
90
+ passive cookies which could affect the final URL revealed.
91
+ test_files: []
metadata.gz.sig ADDED
@@ -0,0 +1 @@
1
+ �� ��+y� �Y_ӳ7o�+��|��ڦ����0Mfʢ �į� �<Q�R�\ ���,����7,B!�:�߹ۋ���Oq5Bq<\����y|�7��7ߓ� (�"� ʨ΃�֮I<��