Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Read the Windows Registry from Chrome Extension

I built a browser extension with Firebreath a couple of years ago, but now I realized that it isn't working anymore on Chrome because it doesn't support NPAPI anymore.

The extension reads the Windows Registry and returns a value.

Does anyone know what can I use to do the same in Chrome these days?

EDIT: After hours of work, I'm able to run the extension and the host app, but everytime I try to receive data, I get undefined.

This is my code:

int main(int argc, char* argv[]) {
    char message[] = "{\"t\": \"t\"}";

    unsigned int len = strlen(message);
    _setmode(_fileno(stdout), _O_BINARY);
    _setmode(_fileno(stdin),  _O_BINARY);

    printf("%c%c%c%c", (char) 10, (char) 0, (char) 0, (char) 0);

    printf("%s", message);

    return 0;
}

What am I doing wrong?

like image 462
user5046765 Avatar asked Oct 18 '25 19:10

user5046765


1 Answers

Native Messaging is the only thing that would be able to do what you want.

like image 183
taxilian Avatar answered Oct 21 '25 09:10

taxilian