ruby_hashcat 0.1.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2c286aa072c03557223988ccf6eade124886d53b
4
+ data.tar.gz: 28779dfe11470f30dfb0f45fc33529b96ef96dd3
5
+ SHA512:
6
+ metadata.gz: 5119b150abc594cbdbd37ac9a6e5019654666fff494182df2aa478effd95bd1a02c33aefe23cee4125fa7e087a05463b9ffa62d73fdb7d8bc12409440dad8882
7
+ data.tar.gz: 35f21e6729c9a04961bd350d2950263e356cbd9ff09798073e129d3ec5090fed21774b53785bc6e4db7d7dc0c7db759a7dd5c1563b95f03163e77bcc60d8a363
data/.gitignore ADDED
@@ -0,0 +1,22 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ *.bundle
19
+ *.so
20
+ *.o
21
+ *.a
22
+ mkmf.log
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in ruby_hashcat.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Coleton Pierson
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # RubyHashcat
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'ruby_hashcat'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install ruby_hashcat
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Contributing
24
+
25
+ 1. Fork it ( https://github.com/[my-github-username]/ruby_hashcat/fork )
26
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
27
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
28
+ 4. Push to the branch (`git push origin my-new-feature`)
29
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
@@ -0,0 +1,17 @@
1
+ require 'rprogram/program'
2
+
3
+ module RubyHashcat
4
+ class Program < RProgram::Program
5
+
6
+ # Add a top-level method which finds and runs the program.
7
+ def self.crack(options={}, &block)
8
+ self.find.crack(options,&block)
9
+ end
10
+
11
+ # Add a method which runs the program with hashcat_task
12
+ def crack(options={},&block)
13
+ run_task(HashcatTask.new(options,&block))
14
+ end
15
+
16
+ end
17
+ end
@@ -0,0 +1,99 @@
1
+ require 'rprogram/task'
2
+
3
+ module RubyHashcat
4
+ class HashcatTask < RProgram::Task
5
+
6
+ # General:
7
+ short_option :flag => '-m', :name => :hash_type
8
+ short_option :flag => '-a', :name => :attack_mode
9
+ short_option :flag => '-V', :name => :version
10
+ long_option :flag => '--quiet', :name => :quiet
11
+
12
+ # Benchmark:
13
+ short_option :flag => '-b', :name => :benchmark
14
+
15
+ # Misc:
16
+ long_option :flag => '--hex-charset', :name => :hex_charset
17
+ long_option :flag => '--hex-salt', :name => :hex_salt
18
+ long_option :flag => '--hex-wordlist', :name => :hex_wordlist
19
+ long_option :flag => '--force', :name => :force
20
+ long_option :flag => '--status', :name => :status
21
+ long_option :flag => '--status-timer', :equals => true, :name => :status_timer
22
+ long_option :flag => '--status-automat', :name => :status_automat
23
+ long_option :flag => '--loopback', :name => :loopback
24
+ long_option :flag => '--weak-hash-threshold', :equals => true, :name => :weak_hash_threshold
25
+
26
+ # Markov:
27
+ long_option :flag => '--markov-hcstat', :equals => true, :name => :markov_hcstat
28
+ long_option :flag => '--markov-disable', :name => :markov_disable
29
+ long_option :flag => '--markov-classic', :name => :markov_classic
30
+ short_option :flag => '-t', :name => :markov_threshold
31
+
32
+ # Session:
33
+ long_option :flag => '--runtime', :equals => true, :name => :runtime
34
+ long_option :flag => '--session', :equals => true, :name => :session_name
35
+ long_option :flag => '--restore', :name => :restore
36
+ long_option :flag => '--restore-disable', :name => :restore_disable
37
+
38
+ # Files:
39
+ short_option :flag => '-o', :name => :outfile
40
+ long_option :flag => '--outfile-format', :equals => true, :name => :outfile_format
41
+ long_option :flag => '--outfile-autohex-disable', :name => :outfile_autohex_disable
42
+ long_option :flag => '--outfile-check-timer', :name => :outfile_check_timer
43
+ short_option :flag => '-p', :name => :separator
44
+ long_option :flag => '--show', :name => :show
45
+ long_option :flag => '--left', :name => :left
46
+ long_option :flag => '--username', :name => :username
47
+ long_option :flag => '--remove', :name => :remove
48
+ long_option :flag => '--remove-timer', :equals => true, :name => :remove_timer
49
+ long_option :flag => '--potfile-disable', :name => :potfile_disable
50
+ long_option :flag => '--debug-mode', :equals => true, :name => :debug_mode
51
+ long_option :flag => '--debug-file', :equals => true, :name => :debug_file
52
+ long_option :flag => '--induction-dir', :equals => true, :name => :induction_dir
53
+ long_option :flag => '--outfile-check-dir', :equals => true, :name => :outfile_check_dir
54
+ long_option :flag => '--logfile-disable', :name => :logfile_disable
55
+
56
+ # Resources:
57
+ short_option :flag => '-c', :name => :segment_size
58
+ long_option :flag => '--bitmap-max', :equals => true, :name => :bitmap_max
59
+ long_option :flag => '--cpu-affinity', :equals => true, :name => :cpu_affinity
60
+ long_option :flag => '--gpu-async', :name => :gpu_async
61
+ short_option :flag => '-d', :name => :gpu_devices
62
+ short_option :flag => '-w', :name => :workload_profile
63
+ short_option :flag => '-n', :name => :gpu_accel
64
+ short_option :flag => '-u', :name => :gpu_loops
65
+ long_option :flag => '--gpu-temp-disable', :name => :gpu_temp_disable
66
+ long_option :flag => '--gpu-temp-abort', :equals => true, :name => :gpu_temp_abort
67
+ long_option :flag => '--gpu-temp-retain', :equals => true, :name => :gpu_temp_retain
68
+ long_option :flag => '--powertune-disable', :name => :powertune_disable
69
+
70
+ # Distributed:
71
+ short_option :flag => '-s', :name => :skip
72
+ short_option :flag => '-l', :name => :limit
73
+ long_option :flag => '--keyspace', :name => :keyspace
74
+
75
+ # Rules:
76
+ short_option :flag => '-j', :name => :rule_left
77
+ short_option :flag => '-k', :name => :rule_right
78
+ short_option :flag => '-r', :name => :rules, :multiple => true, :separator => ' -r '
79
+ short_option :flag => '-g', :name => :generate_rules
80
+ long_option :flag => '--generate-rules-func-min', :equals => true, :name => :generate_rules_func_min
81
+ long_option :flag => '--generate-rules-func-max', :equals => true, :name => :generate_rules_func_max
82
+ long_option :flag => '--generate-rules-seed', :equals => true, :name => :generate_rules_seed
83
+
84
+ # Custom charsets:
85
+ short_option :flag => '-1', :name => :custom_charset1
86
+ short_option :flag => '-2', :name => :custom_charset2
87
+ short_option :flag => '-3', :name => :custom_charset3
88
+ short_option :flag => '-4', :name => :custom_charset4
89
+
90
+ # Increment:
91
+ short_option :flag => '-i', :name => :increment
92
+ long_option :flag => '--increment-min', :equals => true, :name => :increment_min
93
+ long_option :flag => '--increment-max', :equals => true, :name => :increment_max
94
+
95
+ non_option :tailing => true, :name => :hash
96
+ non_option :tailing => true, :name => :charset
97
+ non_option :tailing => true, :name => :wordlist
98
+ end
99
+ end
@@ -0,0 +1,3 @@
1
+ module RubyHashcat
2
+ VERSION = '0.1.1'
3
+ end
@@ -0,0 +1,3 @@
1
+ require 'ruby_hashcat/program'
2
+ require 'ruby_hashcat/task'
3
+ require 'ruby_hashcat/version'
@@ -0,0 +1,25 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'ruby_hashcat/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'ruby_hashcat'
8
+ spec.version = RubyHashcat::VERSION
9
+ spec.authors = ['Coleton Pierson']
10
+ spec.email = ['coleton.pierson@gmail.com']
11
+ spec.summary = %q{Simple command line wrapper for oclHashcat.}
12
+ spec.description = %q{Command line wrapper created to launch hash cracking jobs with oclHashcat.}
13
+ spec.homepage = 'http://coletonpierson.com'
14
+ spec.license = 'MIT'
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ['lib']
20
+
21
+ spec.add_development_dependency 'bundler', '~> 1.6'
22
+ spec.add_development_dependency 'rake', '~> 10.1'
23
+ spec.add_runtime_dependency 'rprogram', '~> 0.3'
24
+
25
+ end
metadata ADDED
@@ -0,0 +1,96 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ruby_hashcat
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Coleton Pierson
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-06-28 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.6'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.6'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.1'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.1'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rprogram
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.3'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.3'
55
+ description: Command line wrapper created to launch hash cracking jobs with oclHashcat.
56
+ email:
57
+ - coleton.pierson@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - Gemfile
64
+ - LICENSE.txt
65
+ - README.md
66
+ - Rakefile
67
+ - lib/ruby_hashcat.rb
68
+ - lib/ruby_hashcat/program.rb
69
+ - lib/ruby_hashcat/task.rb
70
+ - lib/ruby_hashcat/version.rb
71
+ - ruby_hashcat.gemspec
72
+ homepage: http://coletonpierson.com
73
+ licenses:
74
+ - MIT
75
+ metadata: {}
76
+ post_install_message:
77
+ rdoc_options: []
78
+ require_paths:
79
+ - lib
80
+ required_ruby_version: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: '0'
85
+ required_rubygems_version: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ requirements: []
91
+ rubyforge_project:
92
+ rubygems_version: 2.2.2
93
+ signing_key:
94
+ specification_version: 4
95
+ summary: Simple command line wrapper for oclHashcat.
96
+ test_files: []