Thread: system() clear password (XP)

  1. #1

    system() clear password (XP)

    I'm writing this program (for Windows XP), and I need to be able to reset my password to nothing (in other words, clear it) using the system() function.....

    I know how to change it using: system("net user USERNAME PASSWORD"), but if I leave PASSWORD blank it just gives info on the user....

    How do I get rid of the password or set it equal to nothing?

    Thanx....
    "Cryptographically secure linear feedback shift register based stream ciphers" -- a phrase that'll get any party started.

  2. #2
    Registered User
    Join Date
    May 2004
    Posts
    19
    Ummm, why would you want to do this? So you can set other peoples passwords to nothing when you run the program from a floppy?

  3. #3
    lol, no, I'm doing something on my computer, and sometimes I need a password active, sometimes not, and I get a tad bit tired of forever going to the user control panel....

    And setting their password to nothing wouldn't even help me, since I'd already have to be on their system to do it
    "Cryptographically secure linear feedback shift register based stream ciphers" -- a phrase that'll get any party started.

  4. #4
    Registered User kinghajj's Avatar
    Join Date
    Jun 2003
    Posts
    218
    you would probably need to find the appropriate function on MSDN...
    check http://msdn.microsoft.com/archive/
    01011001 01101111 01110101 00100000 01110100 01101111 01101111 1101011 00100000 01110100 01101000 01101001 01110011 00100000 01101101 01110101 01100011 01101000 00100000 01110100 01101000 01101101 01100101 00100000 01110100 01101111 00100000 01110010 01100101 01100001 01100100 00100000 01011001 01101000 01101001 01110011 00111111 00100000 01000100 01100001 01101101 01101110 00100001 00000000

  5. #5
    I got the answer.....

    Thanx for the help
    "Cryptographically secure linear feedback shift register based stream ciphers" -- a phrase that'll get any party started.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem building Quake source
    By Silvercord in forum Game Programming
    Replies: 16
    Last Post: 07-11-2010, 09:13 AM
  2. Linking a plotter to a PC (XP system used)
    By Frandy in forum Windows Programming
    Replies: 4
    Last Post: 09-14-2004, 07:24 AM
  3. written command line password generator
    By lepricaun in forum C Programming
    Replies: 15
    Last Post: 08-17-2004, 08:42 PM
  4. Password prompt in unix w/o \b
    By rafe in forum C++ Programming
    Replies: 1
    Last Post: 10-09-2002, 08:54 AM
  5. WINRAR password recovery
    By Commander in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 06-30-2002, 09:04 PM