|
|
|
@ -2,7 +2,8 @@
|
|
|
|
|
|
|
|
|
|
import argparse
|
|
|
|
|
import os, sys
|
|
|
|
|
from IPython.lib import passwd
|
|
|
|
|
# from IPython.lib import passwd
|
|
|
|
|
from hashlib import sha1
|
|
|
|
|
from jinja2 import Environment, FileSystemLoader
|
|
|
|
|
from random import shuffle
|
|
|
|
|
from csv import writer
|
|
|
|
@ -38,7 +39,8 @@ for username in usernames:
|
|
|
|
|
userdata = {}
|
|
|
|
|
userdata['username'] = username
|
|
|
|
|
userdata['password'] = password
|
|
|
|
|
userdata['password_sha1'] = passwd(password)
|
|
|
|
|
# userdata['password_sha1'] = passwd(password)
|
|
|
|
|
userdata['password_sha1'] = sha1(password)
|
|
|
|
|
userdata['port'] = curport
|
|
|
|
|
userdata['servername'] = servername
|
|
|
|
|
users.append(userdata)
|
|
|
|
|