Backdoors in popular messaging apps

3 respuestas [Último envío]
Beko
Desconectado/a
se unió: 08/31/2019

https://invidio.us/watch?v=H-OGIKcqp8c

Just saw this video, all I can say is...

If (libre=1)
{
printf(“-----BEGIN PGP MESSAGE-----“/n)
}

Else
{
printf(“You’re boned”/n)
}

nadebula.1984
Desconectado/a
se unió: 05/01/2018

One mistake:

if(libre=1)

Should be:

if(libre==1)

or just:

if(libre)

Beko
Desconectado/a
se unió: 08/31/2019

You're right, it has been a minute since I last used C or coded at all for that matter. It should probably have a return 0 or something at the end too :)

nadebula.1984
Desconectado/a
se unió: 05/01/2018

The return 0; statement is not mandatory in newer C standards (C99 or later). For example:

#include

int main(void)
{
printf("hello world\n");
}

Use gcc --std=c99 -Wall to compile and no warning is displayed. The main() function implicitly returns 0.

Use gcc --std=c89 -Wall to compile and the compiler will warn that the function main() should return a value.