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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f3aa9bece5d8c3accb9660d8b0bbc6efc962d1b334c86fdf426c18479f7537a
4
- data.tar.gz: 66eff273559279aefe72ae90eae0523c481dc723d6647c8b8523539adc5cd977
3
+ metadata.gz: 2ba7b5f95bbe02154240d40486b32a78907bf9ceac8f34b0e2a553210c5dd553
4
+ data.tar.gz: d3ac3aec002c8ab20acef7a2d1bae39ec2343cc60eff7fc620e504071143c248
5
5
  SHA512:
6
- metadata.gz: 2347f91a8a197f04557ab9a4b0ec3c29faa3f3d0778bf1045fe4c5d65e32b46ac9bf76ad761592e3c3174c3111140d1280a3270b6103477808e3157e6817d420
7
- data.tar.gz: 92e4cd9f4f1d873ff71a4e04320f3b3ede2aeaeef8fdc0b7a967467bb41400164b04791b6a093b4ef67c10e6511d55d78f0f524f35798a8f9ca13aa73ca05418
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.8'
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 decrypt the hash using --decrypt, see the help parameter for more information"
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
@@ -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 ''
@@ -1,5 +1,5 @@
1
1
  module CoBreak
2
2
  def self.version()
3
- return '0.0.8'
3
+ return '0.0.9'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cobreak
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - BreakerBox