Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ACID Creation: Program
#1
Ok ok.... so I made this program that'll be able to make standardized Access Code ID's and is interchangeable with Remote ACID's (rACID). Basically what it does is create a code on the server side to give to people who are allowed access to specific server resources.

I am currently working on the server/client side scripting. Until then familiarise yourself with this program:
Code:
import random, hashlib, sys, time

arg_1 = (sys.argv[1])
try:
    arg_2 = (sys.argv[2])
except IndexError:
    arg_2 = None
    pass
if arg_2 != None and arg_2 != '-y':
    print 'ERROR: invalid argument\nTry `-y` to veiw the standard ACID encryption value'
    sys.exit(0)
try:
    1+int(arg_1)
except ValueError:
    print "ERROR: requires a numeric argument..."
    sys.exit(0)
if int(arg_1) > 18:
    print 'ERROR: max range is 18'
    sys.exit(0)
d = '#'
i = 1
while i <= int(sys.argv[1]) :
    digit = random.randrange(0, 9, 1)
    alphArray = ['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']
    array = [digit,alphArray]
    choice = random.choice(array)
    if choice is digit:
        d = d+str(digit)
    else:
        alpha = random.choice(alphArray)
        d = d+alpha
    i = i+1

print '\n'+d
if arg_2 == '-y':
    print str('%'+hashlib.new('sha256',d).hexdigest()+'%\n')
Do what thou wilt shall be the whole of the Law. Love is the law, love under will.
.::The Rights of Man::.
Reply
#2
interesting Tongue
[Image: steamaccount.png]
I live my life a quarter mile at a time.
For those ten seconds or least I'm free, nothing else matter.
Reply
#3
r u making a rat??
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)