transports started
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user