XP home network password

vdub12

New Member
Reaction score
2
This is a quick and sloppy autoit script I made to allow XP home to remember passwords.

I plan to make it better by using an ini to save an encrypted password but for now it can just be compiled on a case by case basis.

Hope this helps everyone.

Code:
Run("cmd /c net use Y: /delete", "", @SW_HIDE)
Run("cmd /c net use Z: /delete", "", @SW_HIDE)
Run("cmd /c net use Y: \\server\share /user:username password", "", @SW_HIDE)
Run("cmd /c net use Z: \\server\share /user:username password", "", @SW_HIDE)
 
Last edited:
Stupid question, but what are the parts in bold for?


Run("cmd /c net use Y: \\server\share /user:username password", "", @SW_HIDE)
Run("cmd /c net use Z: \\server\share /user:username password", "", @SW_HIDE)

I've used similar scripts from batch scripts, and for XP I always include the persist flags as well.
 
Stupid question, but what are the parts in bold for?


Run("cmd /c net use Y: \\server\share /user:username password", "", @SW_HIDE)
Run("cmd /c net use Z: \\server\share /user:username password", "", @SW_HIDE)

I've used similar scripts from batch scripts, and for XP I always include the persist flags as well.

/c indicates that you are running a command in the command line.

I'm guessing the empty quotes are for title and the SW_HIDE is to prevent the command prompt window from showing.
 
/c indicates that you are running a command in the command line.

I'm guessing the empty quotes are for title and the SW_HIDE is to prevent the command prompt window from showing.

Correct.

I didn't want a CMD window to open. This script will run completely invisible to the system booting up. If you remove the "SW_HIDE" you will see a CMD window open for each command.
 
I just use the net use commands in a batch script.

You can do that to but then your passwords would be in a txt file for any hacker to get. This way they can be compiled in to an executable. Still not secure but at least its more secure. I plan to make this script use an ini file that uses an encrypted password. I will have another program that will generate the ini file and the program in boot up will be able to decrypt the password from the ini file.

As it stands right now you can probably use a resource editor to get the password out of the executable. I have not tried it but I am sure its possible.
 
Back
Top