Hashes.com Python CLI

Plum

Moderator
Staff member
Moderator
Trusted
Contributor
Feedback: 11 / 0 / 0
Joined
Dec 30, 2019
Messages
4,336
Reaction score
5,146
Credits
12,582
Here is a simple python command line interface to interact with the hashes.com escrow service.

Dependencies:
Python3
PrettyTable library

Usage:
Just run "python3 hashes.py" to launch the console.


Screenshots:

Main console screen.
1ZTe2Hh.png

Get all jobs in escrow sorted by price (high to low).
OE01vNh.png

Get jobs in escrow by algorithm ID and also sort by price (high to low).
3lyBGx5.png

Download multiple job IDs and print to console using -p flag.
kOAjBUH.png

Download all jobs by algorithm ID and download to file using -f flag.
PMWYRIz.png

Update #1
- Added -r flag to get jobs command. This will display results in reverse order.
- Added stats command to get current escrow stats
- Added algs command to display list of algorithms currently supported by hashes.com
- Added exit command to exit console
- Added clear command support for Windows machines
- Changed some initial code to clean things up

Update #2
- Added all algorithms that hashes.com currently supports to the valid algorithms list.
- Added login command to create a logged in session.
- Added history command to get your escrow history. *
- Added upload command to upload founds to hashes.com. *
- Added logout function to destroy logged in session.

Key:
* = Must be logged in to execute

To login you simply need to type "login youremail@mail.com" you will then be prompted to enter your password just like any other terminal.
Screen Shot 2020-02-15 at 6.08.38 PM.png

Once you enter your password it will provide you with a link to the captcha to fill in.
Screen Shot 2020-02-15 at 6.09.19 PM.png

Upon a successful login you are then able to execute commands that require you to be logged in.

Update #2.1
- Added all algorithms that hashes.com currently supports to the valid algorithms list.

Update #3
- Added all algorithms that hashes.com currently supports to the valid algorithms list.
- Added support for selecting multiple algorithm IDs with the "get jobs" and "stats" command. (See screenshots below)

Screen Shot 2020-03-04 at 6.16.43 PM.png

Screen Shot 2020-03-04 at 6.17.03 PM.png


Quick tip: you can shorthand the command flags.
Instead of "get jobs -algid 0" you can simply use "get jobs -a 0" etc.

 
Last edited:

Plum

Moderator
Staff member
Moderator
Trusted
Contributor
Feedback: 11 / 0 / 0
Joined
Dec 30, 2019
Messages
4,336
Reaction score
5,146
Credits
12,582
Update #1 added.
- Added -r flag to get jobs command. This will display results in reverse order.
- Added stats command to get current escrow stats
- Added algs command to display list of algorithms currently supported by hashes.com
- Added exit command to exit console
- Added clear command support for Windows machines
- Changed some initial code to clean things up
 
Last edited:

Plum

Moderator
Staff member
Moderator
Trusted
Contributor
Feedback: 11 / 0 / 0
Joined
Dec 30, 2019
Messages
4,336
Reaction score
5,146
Credits
12,582
Update #2 added.
- Added all algorithms that hashes.com currently supports to the valid algorithms list.
- Added login command to create a logged in session.
- Added history command to get your escrow history. *
- Added upload command to upload founds to hashes.com. *
- Added logout function to destroy logged in session.

Key:
* = Must be logged in to execute
 

Plum

Moderator
Staff member
Moderator
Trusted
Contributor
Feedback: 11 / 0 / 0
Joined
Dec 30, 2019
Messages
4,336
Reaction score
5,146
Credits
12,582
Update #3 added.
- Added all algorithms that hashes.com currently supports to the valid algorithms list.
- Added support for selecting multiple algorithm IDs with the "get jobs" and "stats" command.
 

Plum

Moderator
Staff member
Moderator
Trusted
Contributor
Feedback: 11 / 0 / 0
Joined
Dec 30, 2019
Messages
4,336
Reaction score
5,146
Credits
12,582
Update #4 added.
- Added all algorithms that hashes.com currently supports to the valid algorithms list.

Cannot edit original post so I will upload the most recent version here. I'll probably be just throwing this on github the next release.
 

Plum

Moderator
Staff member
Moderator
Trusted
Contributor
Feedback: 11 / 0 / 0
Joined
Dec 30, 2019
Messages
4,336
Reaction score
5,146
Credits
12,582
Update #4.1
- Fixed a bug that caused login issues which affected viewing history and uploading founds.

Please let me know if you find any other bugs.
 
Last edited:

Plum

Moderator
Staff member
Moderator
Trusted
Contributor
Feedback: 11 / 0 / 0
Joined
Dec 30, 2019
Messages
4,336
Reaction score
5,146
Credits
12,582

Plum

Moderator
Staff member
Moderator
Trusted
Contributor
Feedback: 11 / 0 / 0
Joined
Dec 30, 2019
Messages
4,336
Reaction score
5,146
Credits
12,582
Update #5
- Added option to save session to load after closing the script.

The login function now has two flags (-email, -rememberme). If the rememberme flag is used it will save your current session to the session.txt file. You will then have the option to load the session when you start the CLI. Keep in mind the session.txt file is not encrypted at all and contains the session data for hashes.com. However it does NOT contain your password. If people want I can implement an option to encrypt the session file with AES or something.

New login method
Screen Shot 2020-05-10 at 9.20.22 PM.png

If session file is located upon start you will be asked if you would like to load that session.
Screen Shot 2020-05-10 at 9.21.07 PM.png

As always if you find any bugs please reach out to me.

 
Last edited:

Plum

Moderator
Staff member
Moderator
Trusted
Contributor
Feedback: 11 / 0 / 0
Joined
Dec 30, 2019
Messages
4,336
Reaction score
5,146
Credits
12,582

Plum

Moderator
Staff member
Moderator
Trusted
Contributor
Feedback: 11 / 0 / 0
Joined
Dec 30, 2019
Messages
4,336
Reaction score
5,146
Credits
12,582

Plum

Moderator
Staff member
Moderator
Trusted
Contributor
Feedback: 11 / 0 / 0
Joined
Dec 30, 2019
Messages
4,336
Reaction score
5,146
Credits
12,582
Update #8
-Updated login function to work with new captcha image system

It looks like the captcha system on hashes.com has changed at some point recently. Before this update you would be linked to the captcha image to enter in. However now the captcha is stored in a data URI string. What this means is instead of clicking a URL to get the code. The image will be downloaded and you will have to access the image directly from your computer. No other changes were made in this update.

As always if you have any issues or bugs please let me know.

 

Plum

Moderator
Staff member
Moderator
Trusted
Contributor
Feedback: 11 / 0 / 0
Joined
Dec 30, 2019
Messages
4,336
Reaction score
5,146
Credits
12,582

Plum

Moderator
Staff member
Moderator
Trusted
Contributor
Feedback: 11 / 0 / 0
Joined
Dec 30, 2019
Messages
4,336
Reaction score
5,146
Credits
12,582

Plum

Moderator
Staff member
Moderator
Trusted
Contributor
Feedback: 11 / 0 / 0
Joined
Dec 30, 2019
Messages
4,336
Reaction score
5,146
Credits
12,582

Plum

Moderator
Staff member
Moderator
Trusted
Contributor
Feedback: 11 / 0 / 0
Joined
Dec 30, 2019
Messages
4,336
Reaction score
5,146
Credits
12,582

Plum

Moderator
Staff member
Moderator
Trusted
Contributor
Feedback: 11 / 0 / 0
Joined
Dec 30, 2019
Messages
4,336
Reaction score
5,146
Credits
12,582

Plum

Moderator
Staff member
Moderator
Trusted
Contributor
Feedback: 11 / 0 / 0
Joined
Dec 30, 2019
Messages
4,336
Reaction score
5,146
Credits
12,582

Plum

Moderator
Staff member
Moderator
Trusted
Contributor
Feedback: 11 / 0 / 0
Joined
Dec 30, 2019
Messages
4,336
Reaction score
5,146
Credits
12,582
Top