cobreak 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cobreak.gemspec +1 -1
- data/lib/cobreak/force.rb +3 -1
- data/lib/cobreak/optionpr.rb +17 -0
- data/lib/cobreak/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ba7b5f95bbe02154240d40486b32a78907bf9ceac8f34b0e2a553210c5dd553
|
4
|
+
data.tar.gz: d3ac3aec002c8ab20acef7a2d1bae39ec2343cc60eff7fc620e504071143c248
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6af73bb62f17ebc2611c2fdec3b3df6e71b7c4c17496a2057ff52b9e60ccd89e30c965ca82ac1d78d2004159eade0eb67d7068eaf77f8780908b05e50a95303e
|
7
|
+
data.tar.gz: 1e3d4e82fbcd1cb43f2b0b23305dd90b9453ce12fd88de8d4eaf40a9af58e46514f3a8324dab7cd63848d570637c727a832ab6b05175cb53d5f5df6258348db3
|
data/cobreak.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |info|
|
2
2
|
info.name = 'cobreak'
|
3
|
-
info.version = '0.0.
|
3
|
+
info.version = '0.0.9'
|
4
4
|
info.executables << "cobreak"
|
5
5
|
info.description = "The CoBreak script is an cipher and cryptography tool"
|
6
6
|
info.add_development_dependency "bundler", "~> 1.5"
|
data/lib/cobreak/force.rb
CHANGED
@@ -18,7 +18,7 @@ class Forze_brute
|
|
18
18
|
arr << dato
|
19
19
|
if (ha == arr)
|
20
20
|
puts "\e[1;32m[\e[0m+\e[1;32m]\e[0m Hash already existing in the database: #{dato}"
|
21
|
-
puts "\e[1;32m[\e[0m+\e[1;32m]\e[0m
|
21
|
+
puts "\e[1;32m[\e[0m+\e[1;32m]\e[0m show the hash using --show, see the help parameter for more information"
|
22
22
|
exit
|
23
23
|
end
|
24
24
|
end
|
@@ -91,6 +91,8 @@ class Forze_brute
|
|
91
91
|
if (forzechars.crypt.hexdigest(chars.chomp)) == (forzechars.dato)
|
92
92
|
puts "\e[1;32m[\e[0m+\e[1;32m]\e[0m Decrypted Text: #{chars}"
|
93
93
|
puts "\e[1;32m[\e[0m+\e[1;32m]\e[0m Hash Cracking #{Time.now - forzechars.time} seconds"
|
94
|
+
$datBas::database(forzechars.dato)
|
95
|
+
DB::database(forzechars.crypt.hexdigest(chars), File.join(Gem.path[1], "gems", "cobreak-#{CoBreak.version}", 'lib', 'cobreak', 'show', "#{forzechars.type}.db"))
|
94
96
|
exit
|
95
97
|
end
|
96
98
|
end
|
data/lib/cobreak/optionpr.rb
CHANGED
@@ -26,6 +26,23 @@ module CoBreak
|
|
26
26
|
param.on('-w', '--wordlist=WORDLIST', 'Wordlist mode, read words from FILE or stadin (default: diccionario.txt)'){|wordlist| options.wordlist = wordlist}
|
27
27
|
param.on('--show=[FORMAT]', String, 'show decrypted specific hash'){|de_en| options.decrypt = de_en}
|
28
28
|
param.on('-i', '--input FILE or TEXT', String, 'take file or text to carry out the process'){|alg| options.algo = alg}
|
29
|
+
param.on('--usage', 'show examples of use of this tool')do
|
30
|
+
puts "usage: cobreak [--mode] [--options] [--input] text or file"
|
31
|
+
puts ""
|
32
|
+
puts "cipher:"
|
33
|
+
puts ""
|
34
|
+
puts "cobreak --encoding=[TYPE] --input text or file"
|
35
|
+
puts "cobreak --decoding=[TYPE] --input text or file"
|
36
|
+
puts ""
|
37
|
+
puts "note that the cesar cipher mode has to have a number in front to know the rotations"
|
38
|
+
puts "examples: --encoding=cesar 5 --input hola"
|
39
|
+
puts ""
|
40
|
+
puts "bruteforce:"
|
41
|
+
puts ""
|
42
|
+
puts "cobreak --bruteforce=[FORMAT] --wordlist=[WORDLIST] --input text or file"
|
43
|
+
puts "cobreak --bruteforce=[FORMAT] --chars [CHARACTERS] --range MIN MAX --input text or file"
|
44
|
+
puts ""
|
45
|
+
end
|
29
46
|
param.on_tail('-v', '--version', 'show version'){puts "CoBreak version #{CoBreak.version}"; exit}
|
30
47
|
param.on_tail('-h', '--help', 'command to view help parameters'){puts param; exit}
|
31
48
|
param.separator ''
|
data/lib/cobreak/version.rb
CHANGED