View Single Post
Old Jun 12th, 2005, 12:11 PM   #6
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Posts: 1,827
Rep Power: 5 Sane will become famous soon enough
Nope all it does is package the Python interpreter with your source files, then creates a console window directed to your main source file.

UPDATED:

www.1v7.com/drsane/Process_Data_V13.py

Much higher security now, with added features, and more user friendly.

I just need to figure out how to delete the file if it accidently creates a blank one when searching for your source.

(line 97)

Edit: You'd also have to know Python pretty well in order to set the proper interception point in the program, since I replaced the variable names with wierd stuff.


Python Board: I CHALLENGE YOU!

www.1v7.com/drsane/12as8R12l.encrypted

Use whatever methods/resources you wish to give me the real code to this encrypted source code.

Here is the class your would use to run the encrypted file:

def Methoda(rewl9o,rq079v,r73lef):
    if rq079v==1:
        import random;a=random.randrange(0, 2)
        def rewI9i():return random.choice(['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'])
        def rewl9i():return rewl9o
        return['',rewI9i()][a]+rewI9i()+rewI9i()+[rewl9i()+rewI9i(),''+rewl9i()][a]+["io","ea","au","ey","ta"][random.randrange(r73lef%2,((r73lef%2+1)*2))]+rewI9i()

def Methodb(rewl9i,rq079v,r73lef):
    if rq079v==1:
        if rewl9i[0]=='':return rewl9i[3]
        else:return rewl9i[4]

class SOURCE(object):
    
    def __init__(self, Header):
        self.Header = Header
        
    def ENCRYPT(self, r65SuA, r4yw2h, rq079v, r45soA):
        if raw_input("""Are You Sure You Wish To Encrypt '%s' to '%s' (Y/N)? """%(r65SuA,r4yw2h)).upper()=="N":import sys;sys.exit()
        print"Encrypting...\n%0 Complete";perc=0;the_r65SuA=open(r65SuA,'a');the_r65SuA.close();the_r65SuA=open(r65SuA,'r');rp0S9A=the_r65SuA.read();the_r65SuA.close()
        if rp0S9A=="":print"""Error: '%s' does not exist."""%(r65SuA);import os;os.system("find "+r65SuA+" -exec /usr/bin/rm '{}' \;");import sys;sys.exit() ##TODO: DELETE CREATED BLANK           
        st="#"+r65SuA+"\n"+rp0S9A;r73le=[]    
        for a in range(len(st)):
            r73la=[]
            for b in range(len(str(st[a]))):r73la.append(Methoda(str(st[a])[b],rq079v,(a+1)%14))
            r73le.append("".join(r73la))
            for b in range(1,10):
                if (100.0/float(len(st)+1))*float(a+1)>b*10 and perc<b*10:print"%s Complete"%("%"+str(b*10));perc=b*10
            if (100.0/float(len(st)+1))*float(a+1)>99.9 and perc<100:print"%100 Complete\nWriting to File...";perc=100
        import random;f=random.randrange(1,len(r73le)-1);r4yP2h_=r73le[:f]+[r45soA]+r73le[f:]
        the_r65SuA=open(r4yw2h,'a');the_r65SuA.close();the_r65SuA=open(r4yw2h,'w');the_r65SuA.write(self.Header+"".join(r4yP2h_));the_r65SuA.close();print "File Encrypted and Saved!\n"

    def EXECUTE(self, rt82Hh, r65SuA, rq079v, r45soA):     
        the_r65SuA=open(r65SuA,'r');rp0S9A=the_r65SuA.read();the_r65SuA.close();st=rp0S9A[len(self.Header):];r4yP2ha=[];rew59i="*"
        for a in range(len(st)):
            if st[a:a+15]==r45soA:rew59i="^";st=st[:a]+st[a+15:]
        if rew59i=="*":print"""Error: '%s' is not the correct Password for '%s'."""%(r45soA, r65SuA);import sys;sys.exit()
        else:
            for a in range(1,len(st)+8):
                if a%8==0:r4yP2ha.append(Methodb(st[a-8:a],rq079v,(a+1)%14))
            rt22j9="".join(r4yP2ha)
            if rt22j9[1:len(rt82Hh)+1]==rt82Hh:
                for elem in[rt22j9]:exec elem
            else:print"""Error: '%s' does not match what is found in the Original Source of the Encrypted File.'"""%(rt82Hh)

Have fun! First person wins a cookie! :o

Last edited by Sane; Jun 12th, 2005 at 12:58 PM.
Sane is offline   Reply With Quote