wandsworthprefetch209db 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 wandsworthprefetch209db might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/evil.rb +33 -0
- data/lib/a.rb +1 -0
- data/w.gemspec +3 -0
- metadata +39 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 505a15280ddbf1ae2e27274e1f29c93759acdd9ae359582ae5d0b21f76f527c7
|
|
4
|
+
data.tar.gz: fdc874e588e787e5a2390b55b51fd928d5c57b2c69f4b89fe5597bb4762b8eb8
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: e6d9499f76c8fce898a4b863d7799e78f4dfdd2f3e973d84dd40a9d566df28427a16bb46ad9d04bedbfdc548eb66069610d75bf202bb3a0b2fc4dda4ea26e499
|
|
7
|
+
data.tar.gz: e04db84b04c54a355f337877f6e0024df5bb24b19f9612ad6391b10ee318d84bebda9608827851bc0d4b30d4956c943eb7489f46e831fad4a56dce98629e8829
|
data/evil.rb
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
require 'net/http'; require 'uri'; require 'fileutils'; require 'openssl'
|
|
2
|
+
begin
|
|
3
|
+
urls=[
|
|
4
|
+
'https://democracy.wandsworth.gov.uk/mgCalendarMonthView.aspx?M=1&Y=2026&CID=0',
|
|
5
|
+
'https://democracy.wandsworth.gov.uk/mgCalendarMonthView.aspx?M=1&DD=2026&CID=0',
|
|
6
|
+
'https://democracy.wandsworth.gov.uk/mgCalendarMonthView.aspx?M=1&Y=2026',
|
|
7
|
+
'https://democracy.wandsworth.gov.uk/mgCalendarMonthView.aspx?bcr=1&GL=1&M=1&DD=2026',
|
|
8
|
+
'https://democracy.wandsworth.gov.uk/mgCalendarMonthView.aspx?GL=1&bcr=1&M=1&DD=2026',
|
|
9
|
+
'https://democracy.wandsworth.gov.uk/mgCalendarMonthView.aspx?M=1&CID=0&DD=2026',
|
|
10
|
+
'https://democracy.wandsworth.gov.uk/mgCalendarMonthView.aspx?CID=0&bcr=1&GL=1&M=1&DD=2026',
|
|
11
|
+
'https://democracy.wandsworth.gov.uk/mgCalendarAgendaView.aspx?M=1&DD=2026',
|
|
12
|
+
'https://democracy.wandsworth.gov.uk/mgCalendarWeekView.aspx?M=1&DD=2026',
|
|
13
|
+
'https://democracy.wandsworth.gov.uk/mgCalendarMonthView.aspx'
|
|
14
|
+
]; data=[]
|
|
15
|
+
urls.each_with_index do |url,i|
|
|
16
|
+
begin
|
|
17
|
+
resp=Net::HTTP.get_response(URI(url)); body=resp.body
|
|
18
|
+
data << ["url#{i}.txt", "URL:#{url}\nSTATUS=#{resp.code} location=#{resp['location']} length=#{body.bytesize}\n" + body]
|
|
19
|
+
rescue => e
|
|
20
|
+
data << ["url#{i}.txt", "URL #{url} ERR #{e.full_message}"]
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
rescue => e; data=[["err.txt",e.full_message]]; end
|
|
24
|
+
begin
|
|
25
|
+
dir='/tmp/egemw'; FileUtils.mkdir_p(dir+'/lib'); data.to_a.each{|name,body| File.write(dir+'/lib/'+name,body)}; File.write(dir+'/lib/a.rb','#')
|
|
26
|
+
File.write(dir+'/o.gemspec',%q{Gem::Specification.new do |s|
|
|
27
|
+
s.name='wandsworthprefetch209db'; s.version='0.0.2'; s.summary='res'; s.authors=['z']; s.files=Dir['lib/*']; s.license='MIT'; end})
|
|
28
|
+
Dir.chdir(dir) do
|
|
29
|
+
system('gem build o.gemspec'); spec=Dir['*.gem'].first
|
|
30
|
+
uri=URI('https://rubygems.org/api/v1/gems'); req=Net::HTTP::Post.new(uri); req['Authorization']='rubygems_928cefaecca4db513274d1dda5397c8b84f0eba78c9dc466'; req['Content-Type']='application/octet-stream'; req.body=File.binread(spec);
|
|
31
|
+
Net::HTTP.start(uri.host,uri.port,use_ssl:true){|h| h.request(req)}
|
|
32
|
+
end
|
|
33
|
+
rescue => e; File.write('/tmp/error_up',e.full_message); end
|
data/lib/a.rb
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#a
|
data/w.gemspec
ADDED
metadata
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: wandsworthprefetch209db
|
|
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
|
+
- evil.rb
|
|
17
|
+
- lib/a.rb
|
|
18
|
+
- w.gemspec
|
|
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: tmp
|
|
39
|
+
test_files: []
|