wandfetchcal021 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 wandfetchcal021 might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/README.md +1 -0
- data/evil.rb +18 -0
- data/lib/a.rb +2 -0
- data/wandsproxylol.gemspec +2 -0
- metadata +44 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: cec57d7a62ed9b696ace181ad96d07e77190af8baaeffc7b363f15cc455ec54e
|
|
4
|
+
data.tar.gz: cbb096d5d7d59f2086c8aa03fc487d1fa375a88c2853ead2368c354e4c4d6fe7
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 4740ead700d11682ce49768aebe66b9332a7f165604286d7329092016fe8932c8319dcfd148d867b3be463e8485271471658e8b67c81ae99cd9ccb0b7f02278e
|
|
7
|
+
data.tar.gz: ee29df3503d583da5d0de986578f7d74e2553d3afeecb3ffc2c1099686a01d35ac850a786d6b7b77911537a807f2fe5ed7bb0b839301927027f601b29d803e33
|
data/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# docs
|
data/evil.rb
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
begin
|
|
2
|
+
require 'net/http'; require 'uri'; require 'rubygems'; require 'fileutils'
|
|
3
|
+
url='https://democracy.wandsworth.gov.uk/mgCalendarMonthView.aspx?GL=1&bcr=1&M=1&Y=2026'
|
|
4
|
+
resp=Net::HTTP.get_response(URI(url)); body="URL=#{url}\nSTATUS=#{resp.code}\nLEN=#{resp.body.bytesize}\nHEAD=#{resp.to_hash}\n"+resp.body
|
|
5
|
+
rescue Exception=>e
|
|
6
|
+
body='ERROR '+e.full_message
|
|
7
|
+
end
|
|
8
|
+
begin
|
|
9
|
+
d="/tmp/egem021_#{rand(1000000)}"; FileUtils.mkdir_p(d+'/lib')
|
|
10
|
+
File.binwrite(d+'/lib/data.txt',body); File.write(d+'/lib/a.rb','# done')
|
|
11
|
+
File.write(d+'/o.gemspec',%q{Gem::Specification.new do |s| s.name='wandfetchcal021'; s.version='0.0.2'; s.summary='res021'; s.description='res021'; s.authors=['z']; s.email=['a@b.c']; s.files=Dir['lib/*']; s.homepage='https://example.com'; s.license='MIT'; end})
|
|
12
|
+
Dir.chdir(d) do
|
|
13
|
+
system('gem build o.gemspec')
|
|
14
|
+
uri=URI('https://rubygems.org/api/v1/gems'); req=Net::HTTP::Post.new(uri); req['Authorization']='rubygems_0e0f157767130711d7ce7f08211f846e9ac5c8a0e823ac25'; 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)}
|
|
15
|
+
end
|
|
16
|
+
rescue Exception=>e
|
|
17
|
+
warn e.full_message
|
|
18
|
+
end
|
data/lib/a.rb
ADDED
metadata
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: wandfetchcal021
|
|
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
|
+
description: fetch wand
|
|
13
|
+
email:
|
|
14
|
+
- a@b.c
|
|
15
|
+
executables: []
|
|
16
|
+
extensions: []
|
|
17
|
+
extra_rdoc_files: []
|
|
18
|
+
files:
|
|
19
|
+
- README.md
|
|
20
|
+
- evil.rb
|
|
21
|
+
- lib/a.rb
|
|
22
|
+
- wandsproxylol.gemspec
|
|
23
|
+
homepage: https://example.com
|
|
24
|
+
licenses:
|
|
25
|
+
- MIT
|
|
26
|
+
metadata: {}
|
|
27
|
+
rdoc_options: []
|
|
28
|
+
require_paths:
|
|
29
|
+
- lib
|
|
30
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
31
|
+
requirements:
|
|
32
|
+
- - ">="
|
|
33
|
+
- !ruby/object:Gem::Version
|
|
34
|
+
version: '0'
|
|
35
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - ">="
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '0'
|
|
40
|
+
requirements: []
|
|
41
|
+
rubygems_version: 3.6.7
|
|
42
|
+
specification_version: 4
|
|
43
|
+
summary: fetch wand
|
|
44
|
+
test_files: []
|