-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpermbin.py
49 lines (39 loc) · 1.19 KB
/
permbin.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/env python3
# Name : permbin.py
# Author : https://github.com/cjoke
# Version : 0.1-rc1
# Releasedate : 20.10.2023
# License : GPL3 (Share)
"""
Before use you will need paste and copy from pyperclip
pip install pyperclip
just copy some text and execute this program.
It will give no output. But, it will give back and store an url
in system memory.
you can then paste your url in a browser and read the content your self or,
share the url with anyone that wants to read your content. Or both.
"""
import subprocess
from pyperclip import paste, copy
class ClipnPaste:
"""
This one just grabs stuff and return it
"""
def __init__(self):
self.data = paste()
def __str__(self):
data = self.data.strip()
return data
class Main:
"""
Grabs stuff from ClipnPaste, uploads and returns an url in system memory
"""
def __init__(self):
data = ClipnPaste()
data = str(data)
cmd = f"echo '{data}' | nc termbin.com 9999"
send = subprocess.check_output(cmd, shell=True)
url = send.decode("utf-8")
copy(url)
if __name__ == "__main__":
Main()