Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multi Password box example easygui
02-01-2010, 05:35 AM (This post was last modified: 02-01-2010 06:05 AM by codecaine.)
Post: #1
Multi Password box example easygui
Code:
from easygui import *

msg = "Enter Login Information";
title = "Codecaine's Enterprise";
fieldNames = ["Username", "Password"];
fieldValues = [];

#set fieldValues from the multi passwordbox the last fileName is always the password box
fieldValues = multpasswordbox(msg,title,fieldNames);

#assigning the username and password to USERNAME and PASSWORD variables
USERNAME, PASSWORD = fieldValues[0], fieldValues[1];

#check if user enter the correct username and password
if USERNAME == "codecaine" and PASSWORD == "mypassword":
    msgbox("Access Granted");
else:
    msgbox("Access Denied");


Attached File(s)
.zip  multipassword.zip (Size: 19.35 KB / Downloads: 3)
Visit this user's website Find all posts by this user
Quote this message in a reply
02-01-2010, 04:00 PM
Post: #2
RE: Multi Password box example easygui
Is that fieldValues[1] code for hiding password with dots ???

There's a fine line between genius and insanity. I have erased this line.
Oscar Levant
There's a fine line between an administrator and black hat hacker. I have erased this line.
Dr DEBCOL
Visit this user's website Find all posts by this user
Quote this message in a reply
02-01-2010, 04:33 PM
Post: #3
RE: Multi Password box example easygui
no it is the index of the list where the password was saved.
Visit this user's website Find all posts by this user
Quote this message in a reply
02-01-2010, 04:55 PM
Post: #4
RE: Multi Password box example easygui
Yeah THX i didn't see it declared up. I thought it is password hiding !

There's a fine line between genius and insanity. I have erased this line.
Oscar Levant
There's a fine line between an administrator and black hat hacker. I have erased this line.
Dr DEBCOL
Visit this user's website Find all posts by this user
Quote this message in a reply
02-01-2010, 05:47 PM
Post: #5
RE: Multi Password box example easygui
After you've password has being verfied you will want to zero your memory:
http://msdn.microsoft.com/en-us/library/...85%29.aspx
This will prevent people creating memory pointers to grab passwords.
Never coded in Python so don't know if this is possible in Python.

My website
http://www.DarkHook.net

Programming Languages:
  • C++ Win32
  • MASM
Interests:
  • Reverse Engineering
  • Security
  • GameHacking
Find all posts by this user
Quote this message in a reply
02-01-2010, 07:17 PM (This post was last modified: 02-01-2010 07:17 PM by drdebcol.)
Post: #6
RE: Multi Password box example easygui
Very good point PoZHx !

There's a fine line between genius and insanity. I have erased this line.
Oscar Levant
There's a fine line between an administrator and black hat hacker. I have erased this line.
Dr DEBCOL
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


 Quick Theme: