leakedin 0.0.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.
Files changed (3) hide show
  1. data/README.md +48 -0
  2. data/bin/leakedin +16 -0
  3. metadata +64 -0
data/README.md ADDED
@@ -0,0 +1,48 @@
1
+ # leakedin - LinkedIn password hacked checker
2
+
3
+ ### Description
4
+
5
+ 6.5 million LinkedIn passwords (unsalted SHA-1 hashes) were allegedly leaked, and many of those have already been cracked. This command line tool will help to check if your password is hacked.
6
+
7
+ ### Installation
8
+
9
+ $ gem install leakedin
10
+
11
+ ### Usage
12
+
13
+ $ leaked YOURPASSOWORD
14
+
15
+
16
+ ### DISCLAIMER
17
+
18
+ This tool uses http://leakedin.org/ to check your password. Your password is not stored by this tool in any kind.
19
+ Use the tool on your own risk, I'm not responsible for your use.
20
+
21
+ ### Meta
22
+
23
+ * Author : Dimitar Kostov
24
+ * Email : mitko.kostov@gmail.com
25
+ * Website : [http://dimitarkostov.com](http://dimitarkostov.com)
26
+ * Twitter : [http://twitter.com/mytrile](http://twitter.com/mytrile)
27
+
28
+ ### License
29
+
30
+ Copyright (c) 2010 Dimitar Kostov
31
+
32
+ Permission is hereby granted, free of charge, to any person obtaining a copy
33
+ of this software and associated documentation files (the "Software"), to deal
34
+ in the Software without restriction, including without limitation the rights
35
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
36
+ copies of the Software, and to permit persons to whom the Software is
37
+ furnished to do so, subject to the following conditions:
38
+
39
+ The above copyright notice and this permission notice shall be included in
40
+ all copies or substantial portions of the Software.
41
+
42
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
43
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
44
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
45
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
46
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
47
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
48
+ THE SOFTWARE.
data/bin/leakedin ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'digest/sha1'
4
+ require 'open-uri'
5
+ require 'nokogiri'
6
+
7
+ unless ARGV.length == 1
8
+ puts "Usage: $ leakedin MYPASSWORD"
9
+ exit
10
+ else
11
+ password = Digest::SHA1.hexdigest(ARGV[0])
12
+ url = "http://leakedin.org/?check=#{password}"
13
+ doc = Nokogiri::HTML(open(url))
14
+ message = doc.xpath("/html/body/ul/li").text
15
+ puts message
16
+ end
metadata ADDED
@@ -0,0 +1,64 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: leakedin
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Dimitar Kostov
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-06-08 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: nokogiri
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ description: LinkedIn password hacked checker
31
+ email:
32
+ - mitko.kostov@gmail.com
33
+ executables:
34
+ - leakedin
35
+ extensions: []
36
+ extra_rdoc_files: []
37
+ files:
38
+ - README.md
39
+ - bin/leakedin
40
+ homepage: https://github.com/mytrile/leakedin
41
+ licenses: []
42
+ post_install_message:
43
+ rdoc_options: []
44
+ require_paths:
45
+ - lib
46
+ required_ruby_version: !ruby/object:Gem::Requirement
47
+ none: false
48
+ requirements:
49
+ - - ! '>='
50
+ - !ruby/object:Gem::Version
51
+ version: '0'
52
+ required_rubygems_version: !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ! '>='
56
+ - !ruby/object:Gem::Version
57
+ version: '0'
58
+ requirements: []
59
+ rubyforge_project:
60
+ rubygems_version: 1.8.23
61
+ signing_key:
62
+ specification_version: 3
63
+ summary: LinkedIn password hacked checker
64
+ test_files: []