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 +4 -4
- data/lib/password_crack/version.rb +1 -1
- data/lib/password_crack.rb +7 -2
- 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: 5320734fd054114b517ff4003701532fa5630fdc
|
4
|
+
data.tar.gz: a2c0f1680e549c934463cfb7c128f1df75f8b332
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3564e7a812a6025572f1d7b110c32557cd2320308f7d94c9f8374ef394c85e34a1b8b78c9222c698d5cbdd7fd7f647d498065f29f45ffcc147f9d7d0aeaba460
|
7
|
+
data.tar.gz: b1180d526f91b6b07365517d0621bf04e4c5dc6fa6fc6cc8f250db3888dd92ae9e44fd8dc9fd01a891b8a3a97b2d81bf05bd825f74f8230064b974fd289727dc
|
data/lib/password_crack.rb
CHANGED
@@ -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
|
-
|
251
|
-
|
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
|
|