mirror of
https://github.com/r4sas/PBinCLI
synced 2025-03-13 05:41:08 +00:00
* added license
* some fixes
This commit is contained in:
parent
6a6427a134
commit
a90400c54a
17
LICENSE
Normal file
17
LICENSE
Normal file
@ -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.
|
@ -34,3 +34,8 @@ It must be formated like `pasteID#passphrase`. Example:
|
|||||||
More info you can find by typing
|
More info you can find by typing
|
||||||
|
|
||||||
$ python pbincli.py {send,get} -h
|
$ 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.
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
#! /usr/bin/env python
|
#! /usr/bin/env python
|
||||||
import os
|
import os, sys, argparse
|
||||||
import sys
|
|
||||||
import argparse
|
|
||||||
|
|
||||||
import pbincli.actions
|
import pbincli.actions
|
||||||
from pbincli.utils import PBinCLIException
|
from pbincli.utils import PBinCLIException
|
||||||
|
|
||||||
|
@ -1,14 +1,16 @@
|
|||||||
import json, hashlib, ntpath, os, sys
|
import json, hashlib, ntpath, os, sys
|
||||||
import pbincli.actions, pbincli.sjcl_simple
|
import pbincli.actions, pbincli.sjcl_simple, pbincli.settings
|
||||||
import pbincli.settings
|
|
||||||
|
|
||||||
from base64 import b64encode, b64decode
|
from base64 import b64encode, b64decode
|
||||||
from mimetypes import guess_type
|
from mimetypes import guess_type
|
||||||
from pbincli.transports import privatebin
|
from pbincli.transports import privatebin
|
||||||
from pbincli.utils import PBinCLIException, check_readable, check_writable, json_load_byteified
|
from pbincli.utils import PBinCLIException, check_readable, check_writable, json_load_byteified
|
||||||
|
|
||||||
|
|
||||||
|
""" Initialise settings """
|
||||||
pbincli.settings.init()
|
pbincli.settings.init()
|
||||||
|
|
||||||
|
|
||||||
def path_leaf(path):
|
def path_leaf(path):
|
||||||
head, tail = ntpath.split(path)
|
head, tail = ntpath.split(path)
|
||||||
return tail or ntpath.basename(head)
|
return tail or ntpath.basename(head)
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
def init():
|
def init():
|
||||||
global server, proxies, useproxy
|
global server, proxies, useproxy
|
||||||
|
|
||||||
"""Edit that variables"""
|
""" Edit that variables """
|
||||||
server = "https://privatebin.net/"
|
server = "http://paste.r4sas.i2p/"
|
||||||
proxies = {'http': 'http://127.0.0.1:4444'}
|
proxies = {'http': 'http://127.0.0.1:4444'}
|
||||||
useproxy = False
|
|
||||||
|
""" True/False """
|
||||||
|
useproxy = True
|
||||||
|
|
||||||
""" There is nothing more to do :D """
|
""" There is nothing more to do :D """
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import json
|
import json, os
|
||||||
import os
|
|
||||||
|
|
||||||
|
|
||||||
class PBinCLIException(Exception):
|
class PBinCLIException(Exception):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user