Browse Source

* added license

* some fixes
dependabot/add-v2-config-file
R4SAS 8 years ago
parent
commit
a90400c54a
  1. 17
      LICENSE
  2. 5
      README.md
  3. 5
      pbincli.py
  4. 6
      pbincli/actions.py
  5. 6
      pbincli/settings.py
  6. 3
      pbincli/utils.py

17
LICENSE

@ -0,0 +1,17 @@ @@ -0,0 +1,17 @@
DWTFYWWI LICENSE
Version 1, January 2006
Copyright (C) 2006 Ævar Arnfjörð Bjarmason
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the DWTFYWWI or Do
Whatever The Fuck You Want With It license is intended to guarantee
your freedom to share and change the software--to make sure the
software is free for all its users.
DWTFYWWI LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. The author grants everyone permission to do whatever the fuck they
want with the software, whatever the fuck that may be.

5
README.md

@ -34,3 +34,8 @@ It must be formated like `pasteID#passphrase`. Example: @@ -34,3 +34,8 @@ It must be formated like `pasteID#passphrase`. Example:
More info you can find by typing
$ python pbincli.py {send,get} -h
License
-------
This project is licensed under the DWTFYWWI license, which can be found in the file
LICENSE in the root of the project source code.

5
pbincli.py

@ -1,8 +1,5 @@ @@ -1,8 +1,5 @@
#! /usr/bin/env python
import os
import sys
import argparse
import os, sys, argparse
import pbincli.actions
from pbincli.utils import PBinCLIException

6
pbincli/actions.py

@ -1,14 +1,16 @@ @@ -1,14 +1,16 @@
import json, hashlib, ntpath, os, sys
import pbincli.actions, pbincli.sjcl_simple
import pbincli.settings
import pbincli.actions, pbincli.sjcl_simple, pbincli.settings
from base64 import b64encode, b64decode
from mimetypes import guess_type
from pbincli.transports import privatebin
from pbincli.utils import PBinCLIException, check_readable, check_writable, json_load_byteified
""" Initialise settings """
pbincli.settings.init()
def path_leaf(path):
head, tail = ntpath.split(path)
return tail or ntpath.basename(head)

6
pbincli/settings.py

@ -2,9 +2,11 @@ def init(): @@ -2,9 +2,11 @@ def init():
global server, proxies, useproxy
""" Edit that variables """
server = "https://privatebin.net/"
server = "http://paste.r4sas.i2p/"
proxies = {'http': 'http://127.0.0.1:4444'}
useproxy = False
""" True/False """
useproxy = True
""" There is nothing more to do :D """

3
pbincli/utils.py

@ -1,5 +1,4 @@ @@ -1,5 +1,4 @@
import json
import os
import json, os
class PBinCLIException(Exception):

Loading…
Cancel
Save