Skip to main content

Distribute and retrieve files using DNS

Project description

# dnsbin-cli
[![Build Status](https://travis-ci.org/thomas-maurice/dnsbin-cli.svg?branch=v0.0.1)](https://travis-ci.org/thomas-maurice/dnsbin-cli)

This is the commandline for the dnsbin project (https://github.com/thomas-maurice/dnsbin)

# Using the commandline
To use the command line you need to install few packages using pip :
```bash
pip install requests dnspython clifactory
```
## Posting a file
```bash
./dnsbin.py post someserver.tld file_name
87597b44-d913-4740-9091-d9bd62b8f422
```

Note that if the file is not ascii only, it will be encoded
before being uploaded.

Done ! Your paste has id `87597b44-d913-4740-9091-d9bd62b8f422`

## Getting a paste
```bash
./dnsbin.py get someserver.tld 87597b44-d913-4740-9091-d9bd62b8f422
Paste is 15 chunks long
* Getting 1.87597b44-d913-4740-9091-d9bd62b8f422 chunk
* Getting 2.87597b44-d913-4740-9091-d9bd62b8f422 chunk
... Some more chunks ...
* Getting 14.87597b44-d913-4740-9091-d9bd62b8f422 chunk
* Getting 15.87597b44-d913-4740-9091-d9bd62b8f422 chunk
Your paste :
... The text you did paste ! ...
```

That was easy :)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dnsbin-cli-0.0.2.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file dnsbin-cli-0.0.2.tar.gz.

File metadata

  • Download URL: dnsbin-cli-0.0.2.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dnsbin-cli-0.0.2.tar.gz
Algorithm Hash digest
SHA256 fc0571ea119acc4243180dd8512cf7c8d16a706b2ab1b2ed1fe565a22e0845e1
MD5 29e30233bf7ebf61d3537edbf62cbca7
BLAKE2b-256 8a6e6df016be579c7b9a1916461c1705cd75db8d366f3101b7c88debb549f858

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page