Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Xractz
- #IndoSec
- from requests import Session
- import re, sys, json
- s = Session()
- print("Save File by Xractz - IndoSec\nThis tool is useful for saving your files.\n")
- file = input("File : ")
- url = "https://anonfile.com/api/upload"
- headers = {
- 'x-requested-with':'XMLHttpRequest',
- }
- try:
- files = open(file,'r')
- except:
- print("\n\t* File Not Found! *")
- sys.exit()
- f = {
- 'file':(file, files)
- }
- cek = s.post(url, headers=headers, files=f).text
- hasil = json.loads(cek)
- print("\nUrl : ",hasil['data']['file']['url']['short'])
- print("Size : ",hasil['data']['file']['metadata']['size']['readable'])
Advertisement
Add Comment
Please, Sign In to add comment