java MesharePrompt
> prompt.
Loaded 2 server(s) from servers.txt. > cat Searching for "cat" across 2 server(s)... [1] 18ee59c0...fbef.jpg (server: http://localhost:8001) filename: cute_cat.jpg description: a very cute cat picture size: 34 bytes [2] 29335551...d622.jpg (server: http://localhost:8002) filename: another_cat.jpg description: another cat picture on server 2 size: 32 bytes 2 result(s) shown. Type a number to download it, or "all" for all of them. > 1 OK: saved files/18ee59c0...fbef.jpg and info/18ee59c0...fbef.json > -exit Bye.
Setup
Drop MesharePrompt.java next to a servers.txt
that lists one server base URL per line, then compile and run with the
standard JDK — nothing else to install.
| Step | Command |
|---|---|
| Compile | javac MesharePrompt.java |
| Run | java MesharePrompt |
Commands
Plain text searches. Everything else is a flag.
| Type | Effect |
|---|---|
| any text | Search every server, results stream in live |
| a number | Download that result (hash-verified) |
all | Download every result from the last search |
-options | Toggle random tries, set result limit |
-getall | Download every file from every server |
-help | Show the command list again |
-exit | Quit |
Behavior
files.txt line that isn't a valid sha256.ext filename is ignored.log/ recording what was downloaded and when.Local layout