ExtremeHacking
Today : | Time : | safemode : ON
> / Main Website / Cyber Surakha Abhiyan / Hackers Charity / Linkedin / facebook / twitter /
Name Author Perms Com Modified Label

Small program written in C to change the Windows Password. Unknown rwxr-xr-x 0 5/10/2013

Filename Small program written in C to change the Windows Password.
Permission rw-r--r--
Author Unknown
Date and Time 5/10/2013
Label
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
 

Cyber Suraksha Abhiyan | Sadik Shaikh © 2015 Sadik Shaikh | CEH V9 | ETHICAL HACKING Course Training Institute in India-Pune
Extreme Hacking Template design by Sadik Shaikh | Cyber Suraksha Abhiyan