thc-hydra 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c68ea9bca1949e538b0711596e43898cc2cbef17
4
+ data.tar.gz: c7efd3859c238f78b787cc616c8a7ea472d7074d
5
+ SHA512:
6
+ metadata.gz: 90a50f320b6c894c5f36131db68c1f6c8c4e40601763316e3e29f468de96c5190273de13a21a0173afc9043c4ad3e5f605f650d3be0e839394022e92e7b4010c
7
+ data.tar.gz: 4727c3522b5b34672a2bbf9ccaf36f78c7bcc90215c18795b01934692a8406c954f39aa2b0358e8e6bef4ad496671c0bd89a7241c4c4c342bde32909fdcf0632
@@ -0,0 +1,30 @@
1
+ # ruby-thc-hydra
2
+
3
+ A Ruby interface to THC-Hydra, a parallelized login cracker.
4
+
5
+ ## Features
6
+
7
+ * Provides a Ruby interface for running THC-Hydra.
8
+
9
+ ## Examples
10
+
11
+ Run THC-Hydra from Ruby:
12
+
13
+ ```
14
+ require 'thc-hydra'
15
+ Hydra::Program.crack do |hydra|
16
+ hydra.d = true
17
+ hydra.l = 'root'
18
+ hydra.p = 'toor'
19
+ hydra.target = 'ssh://127.0.0.1'
20
+ end
21
+ ```
22
+ ## Requirements
23
+
24
+ * [hydra] >= 8,1
25
+ * [rprogram] ~> 0.3
26
+
27
+ ## Install
28
+ ```
29
+ $ gem install ruby-thc-hydra
30
+ ```
@@ -0,0 +1,3 @@
1
+ require 'thc-hydra/task'
2
+ require 'thc-hydra/program'
3
+ require 'thc-hydra/version'
@@ -0,0 +1,18 @@
1
+ require 'thc-hydra/task'
2
+ require 'rprogram/program'
3
+
4
+ module Hydra
5
+ class Program < RProgram::Program
6
+
7
+ name_program 'hydra'
8
+
9
+ def self.crack(options={},&block)
10
+ self.find.crack(options,&block)
11
+ end
12
+
13
+ def crack(options={},&block)
14
+ run_task(Hydra::Task.new(options,&block))
15
+ end
16
+
17
+ end
18
+ end
@@ -0,0 +1,31 @@
1
+ require 'rprogram/task'
2
+ module Hydra
3
+ class Task < RProgram::Task
4
+
5
+ short_option :flag => '-R', :name => :R
6
+ short_option :flag => '-S', :name => :S
7
+ short_option :flag => '-s', :name => :s
8
+ short_option :flag => '-l', :name => :l
9
+ short_option :flag => '-p', :name => :p
10
+ short_option :flag => '-x', :name => :x
11
+ short_option :flag => '-e', :name => :e
12
+ short_option :flag => '-u', :name => :u
13
+ short_option :flag => '-C', :name => :C
14
+ short_option :flag => '-M', :name => :M
15
+ short_option :flag => '-o', :name => :o
16
+ short_option :flag => '-f', :name => :f
17
+ short_option :flag => '-F', :name => :F
18
+ short_option :flag => '-t', :name => :t
19
+ short_option :flag => '-w', :name => :w
20
+ short_option :flag => '-W', :name => :W
21
+ short_option :flag => '-4', :name => :ipv4
22
+ short_option :flag => '-6', :name => :ipv6
23
+ short_option :flag => '-v', :name => :v
24
+ short_option :flag => '-V', :name => :V
25
+ short_option :flag => '-d', :name => :d
26
+ short_option :flag => '-q', :name => :q
27
+ short_option :flag => '-U', :name => :U
28
+
29
+ non_option :tailing => true, :name => :target
30
+ end
31
+ end
@@ -0,0 +1,3 @@
1
+ module Hydra
2
+ VERSION = '0.1.0'
3
+ end
metadata ADDED
@@ -0,0 +1,63 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: thc-hydra
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Victor Mello
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-09-05 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rprogram
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.3'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.3'
27
+ description: Provides a Ruby interface for running THC-Hydra
28
+ email:
29
+ - victornrm@gmail.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - README.md
35
+ - lib/thc-hydra.rb
36
+ - lib/thc-hydra/program.rb
37
+ - lib/thc-hydra/task.rb
38
+ - lib/thc-hydra/version.rb
39
+ homepage: http://github.com/m0nad/ruby-thc-hydra
40
+ licenses: []
41
+ metadata: {}
42
+ post_install_message:
43
+ rdoc_options: []
44
+ require_paths:
45
+ - lib
46
+ required_ruby_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
51
+ required_rubygems_version: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: 1.3.6
56
+ requirements: []
57
+ rubyforge_project:
58
+ rubygems_version: 2.5.1
59
+ signing_key:
60
+ specification_version: 4
61
+ summary: Ruby interface for running THC-Hydra
62
+ test_files: []
63
+ has_rdoc: