rubypwn 0.0.17 → 0.0.18

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7344b9d4426b1ce836330b8db9936dff71a082a3
4
- data.tar.gz: 886c37217b0ae638750ffec6542538eb547e5307
3
+ metadata.gz: f3035589a4aa3660f30844388a77a99e8bf0be21
4
+ data.tar.gz: 0053b52f4b0fa703f55e48d97459013ae66cc28e
5
5
  SHA512:
6
- metadata.gz: bbf6010058ecd508277cd147b706f9750b270494f81659701e3e31fb1825ab3f9a4897423289729d1d394a56a4ddcd9e2d6e20d8c4f0ad5eabdefa30b26082a0
7
- data.tar.gz: d55335f5db57c0123ad87bf6a83ce3504379b0d0d64383bcb3fa897785db85000fb570573b11eba17c11569efc897b1b1f9bddf81945d6c46fc18433f758feda
6
+ metadata.gz: ea51cf4b79cfb698c01d3edebd34f6c2e8956f4ca8c7d4a72491f99f7a71523d99d7b2e87401c465ebdeb3e04e54f9b3275c3c12d4e74d65c6b5decc362ada04
7
+ data.tar.gz: 3a1d9732038b66a870ec0a7f0e8ad9813c8034bf1de28067c77219ef80c3a087f40e71ab1540d211f2894800dd628737146226cbba2dff28d42062ddd758b189
@@ -20,6 +20,8 @@ class Exec ::
20
20
  2.2.2 :003 > e.gets
21
21
  Makefile
22
22
  => "Makefile\n"
23
+ 2.2.2 :004 > e = Exec.new "ls", debug: false, color: false
24
+ => #<Exec:0x007f96742814e8>
23
25
 
24
26
  class Netcat ::
25
27
 
@@ -1,5 +1,13 @@
1
1
  class String
2
- require 'pp'
2
+
3
+ def ^( key )
4
+ b1 = self.unpack("C*")
5
+ b2 = key.unpack("C*")
6
+ mul = (b1.length.to_f / b2.length.to_f).ceil
7
+ b2 = b2 * mul
8
+ b1.zip(b2).map{ |a,b| a^b }.pack("C*")
9
+ end
10
+
3
11
  def fmtstr(value, index, **options)
4
12
  # initialize
5
13
  bytes = 1
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'rubypwn'
3
- s.version = '0.0.17'
3
+ s.version = '0.0.18'
4
4
  s.date = '2015-10-28'
5
5
  s.summary = "ruby pwn tools"
6
6
  s.description = <<-DESCRIPTION.strip.gsub(/\s+/, " ")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubypwn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - atdog