Go to file
kageru 37d5de9d67 finished simple auth system 2017-10-18 12:49:48 +02:00
add_user.py finished simple auth system 2017-10-18 12:49:48 +02:00
config.py no longer doing everything in global scope (was about time, was it?) 2017-10-16 15:37:24 +02:00
LICENSE Create LICENSE 2017-10-14 12:10:53 +02:00
pyshare_receiver.py finished simple auth system 2017-10-18 12:49:48 +02:00
pyshare.py no longer doing everything in global scope (was about time, was it?) 2017-10-16 15:37:24 +02:00
README.md added a very simple receiver that can handle POST requests similar to 0x0 2017-10-17 15:26:00 +02:00
users.py incomplete authentication system (lecture is over) 2017-10-17 16:35:38 +02:00

pyshare

A very simple python script that aims to replace the most basic functionalities (TL Note: the ones I used) of ShareX. This wouldn't be necessary if ShareX had just been developed as a cross-platform project, but I digress.
Needless to say, this is being developed for and tested on Linux. If you're on Windows, just use ShareX.
Only (s)ftp uploads for now, but I might add simple curl commands (like used by 0x0) later on. I should add that the focus will be on a self-hosted server. If you don't care about that, just curl 0x0.st or something.

What works:

  • Taking area screenshots
  • Uploading screenshots to (s)ftp
  • Generating a link from that and putting it into the clipboard

What's planned

  • Local file upload
  • Mirroring url contents on the remote server

Dependencies

pysftp which can be installed via pip:

$ pip install pysftp

escrotum which should be available in your favorite package manager (or pre-installed, depending on your distribution and desktop environment).

Usage

Change all the relevant variables in config.py and execute

$ python3 pyshare

Depending on your window manager, you can bind this to a hotkey. To cancel the capture, simply right-click. The script will then, uh, terminate (which is fancy speak for crash because it really doesn't matter).