Commit Graph

36 Commits

Author SHA1 Message Date
Lucas V. Araujo
cccf6ba8c0 Perl version with proxy capabilities
* added a perl version

* added a usage statement

* improved perl version with proxy capabilities
2019-12-09 10:55:13 +00:00
Matthias Gessinger
296f4d39e0 Julia version
* Julia version

Add a version for the Julis Programming language.

Required Packages:
  *  HTTP
  *  SHA

Notice that HTTP does a bunch of junk in the background when you first call to it.
Therefore the first call is super slow but all subsequent calls are fairly quick.

* Julia Version

Add lots of comments into the code. Also the program will now inform the user,
that passwords provided as command-line arguments are stored in the history as
plain text and it is therefore recommended to clear the history afterwards.

* Julia Version

Fix a typo and some formatting
2019-12-09 10:53:54 +00:00
Pedro Gomes
40fad8405a PHP version (#34)
* PHP version

* Update pwned.inc.php

Slight optimization.
2019-10-07 11:07:23 +01:00
Feli R
5a4932775b Changed encoding in C# version to UTF8 (#33) 2019-10-07 11:06:42 +01:00
Andre McCurdy
33899e9a50 Support spaces (leading, trailing or embedded) in bash versions (#32)
Also minor unrelated quoting cleanup.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
2019-10-07 11:05:06 +01:00
David Bors
19305f3516 Haskell version. (#30)
Adde haskell version
2019-08-19 09:53:23 +01:00
Alex Povel
36b6f603b4 Two tiny changes (#27)
* Use .ok property instead of status-code check against 200

* Tighter try/except handling\nPutting less code into the try block
2019-07-24 20:40:03 +01:00
Elvis
e1f6c0af2f Create pwned.mos (#26)
macOS bash version
2019-05-31 00:02:04 +01:00
Johannes Skivdal
03297d6b24 Switches to unicode, adds a .gitignore for VS (#23)
Replaces C# ASCII Encoding with Unicode
Added .gitignore file for C# solution VS files.
2019-05-02 18:53:15 +01:00
Thomas Zink
8684ecf17d Bash version 2019-05-02 18:51:24 +01:00
R3ality
453d778452 Adjustments for PowerShell variant (#21)
* Include occurrence count in output

* Rename PowerShell variant to match others

* Remove redundant line, target already uppercase

* Minor syntax fix for null comparison

* Close StreamReader when done

* Wrap in while loop to allow checking multiple passwords
2019-04-22 13:41:47 +01:00
jayssj11
ce68bea871 Go version
* Create pwned.go

golang version

* Update pwned.go
2019-03-23 22:38:45 +00:00
aussiDavid
986a2af1e4 Dockerised python CLI program
* Dockerised python CLI program

* Add all files into the docker image
2019-03-22 13:31:05 +00:00
PascalPirate75
b036453851 Added python GUI and HTML versions
Simple web interface using the API should be mobile compatible.

A simple GUI interface using the original python script as the basis.
2019-03-20 10:20:33 +00:00
Michael Pound
2fa784ba35
Merge pull request #14 from ArkadiuszMichalRys/ArkadiuszMichalRys-typo-fix
Fix typo in readme
2019-03-18 10:04:36 +00:00
Michael Pound
bc32504aa4
Merge pull request #13 from pldg/patch-1
Add prompt to exit the script
2019-03-18 10:04:05 +00:00
Arkadiusz Michał Ryś
1b0af0908d
Fix typo in readme
Add missing 'y' in 'may', and a missing 'r' in 'library' in the readme file.
2019-03-17 15:15:53 +01:00
Luca Poldelmengo
ddbf8d33ef
Add prompt to exit the script
Prevent the script to be closed automatically if you run it by right clicking the file and choose *Run with PowerShell*
2019-03-15 11:47:02 +01:00
Michael Pound
8efd8ffedd
Python 2 and 3 compatible shebang 2019-03-14 20:18:04 +00:00
dmfabritius
ff50927417 C# and PowerShell versions (#8)
* create C# folder

* C# version

* PowerShell version
2019-03-14 16:07:06 +00:00
Jonathan
5aeb5c581e Add shebang (#12) 2019-03-14 14:35:42 +00:00
Toon
3279ad4dd5 Better error handling and output format (#6)
* Update readme: fix small redirection mistake

* Use one output line per password

* More graceful error handling

* Only catch UnicodeErrors
2019-03-14 14:33:15 +00:00
micsthepick
f2048b7d15 Python 2 support (#11)
* consistency of output in python 2

print("string") and print "string" have the same behavior in Python 2 and 3, but print("string", "string") will print a tuple in Python 2

* Add requirement

Update readme to include info on the one required library, requests, including a pip install command.
2019-03-14 12:31:25 +00:00
Michael Pound
af78272fdc
Merge pull request #10 from d-chris/master
changed password encoding to utf-8 for sha-1
2019-03-14 12:30:28 +00:00
d-chris
112748240d
changed password encoding to utf-8 for sha-1
according to api
https://haveibeenpwned.com/API/v2#PwnedPasswords
2019-03-14 11:50:17 +01:00
Michael Pound
521c441a6a
Update README.md
Typo fixes
2019-03-13 10:42:26 +00:00
Michael Pound
2bea07cee7
Merge pull request #2 from mina86/master
Various improvements
2019-03-13 10:35:36 +00:00
Michal Nazarewicz
9e515019be Simplify and document lookup_pwned_api interface
Always return a pair from the lookup_pwned_api so that destructuring
assignment can be safely used when calling the function.  The second
argument being zero indicates the password has not been found in the
pwend database.

While at it, document the function.
2019-03-13 01:38:33 +00:00
Michal Nazarewicz
f252886b95 Handle non-200 status codes explicitly 2019-03-13 01:38:33 +00:00
Michal Nazarewicz
6955575a64 Vary exit status based on whether leaked password was found 2019-03-13 01:38:05 +00:00
Michal Nazarewicz
068f0832f7 Support reading passwords from standard input 2019-03-13 01:37:42 +00:00
Michal Nazarewicz
366b730905 Support checking multiple passwords with a single invocation 2019-03-13 01:27:05 +00:00
Michal Nazarewicz
df6a0f1007 Add ‘__name__ == __main__’ guard so the file can be imported 2019-03-13 01:26:20 +00:00
Michal Nazarewicz
19fd5102cb Remove unnecessary dependency on pyca
Python’s built-in hashlib is capable of calculating SHA1.  There’s
no need to depend on a third party library which may or may not be
available.
2019-03-13 00:39:52 +00:00
Michael Pound
80f2da2f03 Code added 2019-03-12 21:41:07 +00:00
Michael Pound
1025d72d83
Initial commit 2019-03-12 21:38:34 +00:00