[Source] Easy Webcam Password Decrypter

Post new topic   Reply to topic

View previous topic View next topic Go down

[Source] Easy Webcam Password Decrypter

Post  ~Fleck on Tue Jun 30, 2009 6:41 am

Code:

#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>



#ifdef WIN32
    #include <windows.h>

    void easywebcam_reg(void);
#endif



#define VER        "0.1"
#define BUFFSZ      512
#define KEYPATH    "Software\\VB and VBA Program Settings\\EasyWebCam\\data"



uint8_t *easywebcam_pwd(uint8_t *pwd);



int main(int argc, char *argv[]) {
    uint8_t buff[BUFFSZ];

    setbuf(stdout, NULL);

    fputs("\n"
        "EasyWebCam passwords decoder "VER"\n"
        "by Luigi Auriemma\n"
        "e-mail: aluigi@autistici.org\n"
        "web:    aluigi.org\n"
        "\n", stdout);

    if(argc < 2) {
        printf("\n"
            "Usage: %s [encoded_password]\n"
            "\n", argv[0]);

#ifdef WIN32
        easywebcam_reg();

        printf("\nPress RETURN to quit\n");
        fgetc(stdin);
#else
        exit(1);
#endif
    } else {
        sprintf(buff, "%.*s", sizeof(buff), argv[1]);
        printf("  password:      %s\n", easywebcam_pwd(buff));
    }

    return(0);
}



#ifdef WIN32

int regkey(HKEY hKey, LPCTSTR lpSubKey, LPTSTR lpValueName, uint8_t *buff, int len) {
    HKEY    key;

    buff[0] = 0;

    if(RegOpenKeyEx(hKey, lpSubKey, 0, KEY_READ, &key) != ERROR_SUCCESS) {
        return(-1);
    }
    if(RegQueryValueEx(key, lpValueName, NULL, NULL, buff, (void *)&len) != ERROR_SUCCESS) {
        RegCloseKey(key);
        return(-1);
    }
    RegCloseKey(key);

    return(0);
}



void easywebcam_reg(void) {
    uint8_t buff[BUFFSZ];

    if(!regkey(HKEY_CURRENT_USER, KEYPATH, "ftp",      buff, sizeof(buff)))
        printf("  ftp:          %s\n", buff);
    if(!regkey(HKEY_CURRENT_USER, KEYPATH, "username",  buff, sizeof(buff)))
        printf("  username:      %s\n", buff);
    if(!regkey(HKEY_CURRENT_USER, KEYPATH, "pass",      buff, sizeof(buff)))
        printf("  password:      %s\n", easywebcam_pwd(buff));

    if(!regkey(HKEY_CURRENT_USER, KEYPATH, "wapftp",    buff, sizeof(buff)))
        printf("  wap ftp:      %s\n", buff);
    if(!regkey(HKEY_CURRENT_USER, KEYPATH, "waplogin",  buff, sizeof(buff)))
        printf("  wap username:  %s\n", buff);
    if(!regkey(HKEY_CURRENT_USER, KEYPATH, "wappass",  buff, sizeof(buff)))
        printf("  wap password:  %s\n", easywebcam_pwd(buff));
}

#endif



uint8_t *easywebcam_pwd(uint8_t *pwd) {
    uint8_t    *p;

    for(p = pwd; *p; p++) {
        *p = (*p >> 1) - 2;
    }
    return(pwd);

_________________

Thanks to FusioN for this awesome sig :]

~Fleck
Moderator
Moderator

Posts: 274
Activity: -258
Reputation: 8
Join date: 2009-06-28
Age: 16
Location: 127.0.0.1

Back to top Go down

View previous topic View next topic Back to top


Post new topic   Reply to topic
Permissions of this forum:
You cannot reply to topics in this forum