password_crack 0.2.1 → 0.2.2

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: 57385994a289e89b99ae1b2cf5a349ebbb67163b
4
- data.tar.gz: 932b8885f6cd808bac0bc4427fce1fe7cea20e0b
3
+ metadata.gz: 5320734fd054114b517ff4003701532fa5630fdc
4
+ data.tar.gz: a2c0f1680e549c934463cfb7c128f1df75f8b332
5
5
  SHA512:
6
- metadata.gz: 056eaf5dde668d7e8b7483469ce52ff836e404ba73ebdf35694a5f9acdb66edac35cf9b09ecd5c4d5002564e42fdf1da3d6daaa4ab15dde0bc51486793891c8e
7
- data.tar.gz: 972cf447e80cb1ae6b020aa25c7ec4d0b3fa750295a67debe2f033f0b9c0911c2a8d9ee917d38f934f0a71fbc15d816eb4a8077291b90e6d26b94f806529f0dc
6
+ metadata.gz: 3564e7a812a6025572f1d7b110c32557cd2320308f7d94c9f8374ef394c85e34a1b8b78c9222c698d5cbdd7fd7f647d498065f29f45ffcc147f9d7d0aeaba460
7
+ data.tar.gz: b1180d526f91b6b07365517d0621bf04e4c5dc6fa6fc6cc8f250db3888dd92ae9e44fd8dc9fd01a891b8a3a97b2d81bf05bd825f74f8230064b974fd289727dc
@@ -1,3 +1,3 @@
1
1
  module PasswordCrack
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -79,6 +79,7 @@ module PasswordCrack
79
79
  iMd516 = (md5Password.length==16)
80
80
 
81
81
  d = Dict.new dict_name,'md5'
82
+
82
83
  File.open(d.create).each_line() do |l|
83
84
 
84
85
  (md5,pass) = l.split "\t"
@@ -247,8 +248,12 @@ module PasswordCrack
247
248
 
248
249
 
249
250
  def write pathname,content
250
- File.write pathname,content
251
- p 'create new file: '+pathname
251
+ File.open(pathname, "wb") do |file|
252
+
253
+ file.write content
254
+ end
255
+
256
+ p 'create new file: '+pathname
252
257
 
253
258
  end
254
259
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: password_crack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - luax