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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 85213a1b1e562aa81fb63546868f7af9136a6418
4
- data.tar.gz: b3684dc62e6594b7bafd3624c23b15e74cf74755
3
+ metadata.gz: 3823c6116f61cd73464f5d8dc17bf0dca6c4e452
4
+ data.tar.gz: 4fc45202f00dc27852d689acb1574ca51e36870b
5
5
  SHA512:
6
- metadata.gz: a793ffe28f11107cc867375a72c648de7c3d834566e1c0aaede509b7688cc5251d939de777b95ed7ac3fd9e917b174d8de85db061ffe585c465d9f0f2a43e939
7
- data.tar.gz: 91fdbff3207a395cc3ba2c1e87d74d608f0671093d0285dcf5374b5432a103307524c3e24dd858bc9d7254507cc4cdf62e2a860512477019da3d5b145f8bfb74
6
+ metadata.gz: 908e6ca50de40607704d70583a7b5e1b469762dc17233b9263317ce755b919ad7abb5bc238cbe3a5d1d3ce8ddfb85bfb973f8e386de56ea0e93d932bb7b38fc4
7
+ data.tar.gz: a91c7923b7564f6f0b5517195fd45ac3c8b20bdd2caee48f41610eba4e52a03f96155af6d1b47db0578e84635a6c7b4bfc8035124aa1263704b2dc6341e91dfc
@@ -29,9 +29,7 @@ module Xploit
29
29
  end
30
30
  end
31
31
 
32
- def send(data, debug = false)
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, debug = false)
47
- send(msg + "\n", debug = debug)
44
+ def sendline(msg)
45
+ send(msg + "\n")
48
46
  end
49
47
 
50
- def recv(n = nil, delim = nil, debug = false)
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, debug = false)
76
- self.recv(n = nil, delim, debug)
72
+ def recvuntil(delim)
73
+ self.recv(n = nil, delim)
77
74
  end
78
75
 
79
- def recvline(debug = false)
80
- recvuntil("\n", debug)
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, @debug)
87
- puts self.recv(n = nil, delim = nil, debug = @debug)
83
+ self.send(s)
84
+ puts self.recv(n = nil, delim = nil)
88
85
  end
89
86
  end
90
87
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Xploit
4
4
 
5
- VERSION = "0.1.2"
5
+ VERSION = "0.1.3"
6
6
 
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xploit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chihiro Hasegawa