xploit 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xploit/sock.rb +10 -13
- data/lib/xploit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3823c6116f61cd73464f5d8dc17bf0dca6c4e452
|
4
|
+
data.tar.gz: 4fc45202f00dc27852d689acb1574ca51e36870b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 908e6ca50de40607704d70583a7b5e1b469762dc17233b9263317ce755b919ad7abb5bc238cbe3a5d1d3ce8ddfb85bfb973f8e386de56ea0e93d932bb7b38fc4
|
7
|
+
data.tar.gz: a91c7923b7564f6f0b5517195fd45ac3c8b20bdd2caee48f41610eba4e52a03f96155af6d1b47db0578e84635a6c7b4bfc8035124aa1263704b2dc6341e91dfc
|
data/lib/xploit/sock.rb
CHANGED
@@ -29,9 +29,7 @@ module Xploit
|
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
|
-
def send(data
|
33
|
-
|
34
|
-
@debug = debug
|
32
|
+
def send(data)
|
35
33
|
|
36
34
|
puts "[\e[34m SEND \e[0m]" if @debug
|
37
35
|
len = @sock.write(data)
|
@@ -43,13 +41,12 @@ module Xploit
|
|
43
41
|
|
44
42
|
end
|
45
43
|
|
46
|
-
def sendline(msg
|
47
|
-
send(msg + "\n"
|
44
|
+
def sendline(msg)
|
45
|
+
send(msg + "\n")
|
48
46
|
end
|
49
47
|
|
50
|
-
def recv(n = nil, delim = nil
|
48
|
+
def recv(n = nil, delim = nil)
|
51
49
|
|
52
|
-
@debug = debug
|
53
50
|
puts "[ \e[35mRECV\e[0m ]" if @debug
|
54
51
|
|
55
52
|
unless n.nil?
|
@@ -72,19 +69,19 @@ module Xploit
|
|
72
69
|
|
73
70
|
end
|
74
71
|
|
75
|
-
def recvuntil(delim
|
76
|
-
self.recv(n = nil, delim
|
72
|
+
def recvuntil(delim)
|
73
|
+
self.recv(n = nil, delim)
|
77
74
|
end
|
78
75
|
|
79
|
-
def recvline(
|
80
|
-
recvuntil("\n"
|
76
|
+
def recvline()
|
77
|
+
recvuntil("\n")
|
81
78
|
end
|
82
79
|
|
83
80
|
def shell
|
84
81
|
STDOUT.sync = true
|
85
82
|
while s = STDIN.gets
|
86
|
-
self.send(s
|
87
|
-
puts self.recv(n = nil, delim = nil
|
83
|
+
self.send(s)
|
84
|
+
puts self.recv(n = nil, delim = nil)
|
88
85
|
end
|
89
86
|
end
|
90
87
|
|
data/lib/xploit/version.rb
CHANGED