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

16
pbincli/transports.py Normal file
View File

@@ -0,0 +1,16 @@
import requests
import json
import urllib
class privatebin(object):
def __init__(self):
self.proxies = {'http': 'http://127.0.0.1:4444'}
self.server = 'http://paste.r4sas.i2p/'
self.headers = {'X-Requested-With': 'JSONHttpRequest'}
def post(self, data):
r = requests.post(url=self.server, headers=self.headers, proxies=self.proxies, data=data)
print(r.request)
print(r.status_code)
print(r.text)