transports started

This commit is contained in:
r4sas
2017-02-19 13:26:22 +03:00
parent 8014c386ac
commit 0343e318fb
4 changed files with 24 additions and 4 deletions

View File

@@ -4,6 +4,7 @@ import pbincli.actions
from Crypto.Hash import SHA256
from Crypto.Random import get_random_bytes
from pbincli.sjcl_gcm import SJCL
from pbincli.transports import privatebin
from pbincli.utils import PBinCLIException, check_readable, check_writable
from zlib import compress
@@ -23,5 +24,7 @@ def send(args):
password = passphrase + p.hexdigest().encode("UTF-8")
data = SJCL().encrypt(file, password)
request = "data={}&expire={}&formatter={}&burnafterreading={}&opendiscussion={}".format(data, args.expire, args.format, int(args.burn), int(args.discus))
'''Here we must run function post from pbincli.transports'''
print(data)
print(request)
privatebin().post(request)