Commit Graph

27 Commits

Author SHA1 Message Date
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