TrojanCockroach icon indicating copy to clipboard operation
TrojanCockroach copied to clipboard

The code does not compile

Open Mod233 opened this issue 9 years ago • 25 comments

could u please tell me ,which software you choose to compile the code.... u can see, i am a newbies and want to get my hand dirty....

Mod233 avatar Dec 05 '16 09:12 Mod233

The code should compile with any standard compiler.

As I have already stated- "I have also made some nonsense changes in the code", those errors you getting are the result of this change. If you know C, you should be able to easily detect and remove them. Moreover, I have put marks ( :smile: ) there too.

+1 for "i am a newbies and want to get my hand dirty", and I myself am no expert either! Let me know how much your hands got dirty. Happy coding!

MinhasKamal avatar Dec 05 '16 10:12 MinhasKamal

On compiling INFECT The header file <windows.h> is not able to be included. I thought must be due to a different version of the compiler so i removed the '.h' and tried again but no result ,same error again. same for the header file. I then headed to the class library section and found that the windows.h header file was missing. I tried adding it manually but still doesn't works.

hellomevinit avatar Jan 30 '17 14:01 hellomevinit

Tell me your OS and compiler name.

MinhasKamal avatar Jan 30 '17 15:01 MinhasKamal

facing the same problem as @hellomevinit

win7 32-bit OS and VS Express2012

shadhin92 avatar Feb 01 '17 14:02 shadhin92

Follow this link. Let me know if it helps.

MinhasKamal avatar Feb 01 '17 14:02 MinhasKamal

I compiled all the cpps and placed all the files in one folder as shown in the pictures. Then I ran trojancockroach.exe. In the USB drive I can see one folder named "TrojanCockroach" but I do not see any other file besides that (the shortcut is missing).

Another issue is that the shortcut "trojancockroach.lnk" does not copy itself to the startup folder.

I am using Windows 7 in VMware to test this program.

Shahrukh95 avatar Jul 08 '17 20:07 Shahrukh95

@ MinhasKamal Could you please point out the nonsense changes to the code, us newbies are finding a hard time.

I'm using Windows 10 in VC++

Busy-box avatar Oct 26 '17 18:10 Busy-box

So do I need to know C++ to use this? I'm kind of a beginner at programming so I haven't gotten around to learning any C yet.

SpontaneousCookie avatar Dec 03 '17 02:12 SpontaneousCookie

@Shahrukh95 I have not tested the tool in virtual machine, so do not know how it may behave :(

@Busy-box & @SpontaneousCookie You will have to have at least a basic knowledge of C for running the code successfully. Sorry, cannot help you there.

P.S.: Apologies for replying super late.

MinhasKamal avatar Dec 06 '17 03:12 MinhasKamal

Hey @MinhasKamal please tell us the changes that you made to this code. We newbies are have a hell of problems compiling this code!

Or just send the link to the correct code please

maximousblk avatar Jan 05 '18 11:01 maximousblk

Hello @max1m0u5,

You have successfully- forked a project from GitHub, tried to compile it, detected error, and reported issue. I mean- you already know a lot (about programming).

Please try to understand the errors, you are very close :)

MinhasKamal avatar Jan 05 '18 11:01 MinhasKamal

what do you mean by "you already know a lot." _ and please check your gmail and hangout_

@MinhasKamal

maximousblk avatar Jan 05 '18 14:01 maximousblk

hey @Shahrukh95 please send me the code if you have successfully compiled it. I am purely not into c++ but I need this project, PLEASE

Anybody !!! @Mod233 @MinhasKamal @hellomevinit @ahmedshadhin @Busy-box

Or any one in the world PLEASE HELP :exclamation::exclamation::exclamation:

maximousblk avatar Jan 06 '18 14:01 maximousblk

@max1m0u5 I used this project a long time ago. However there were some mistakes like I pointed out in this thread before. If your code is not compiling, I think he just commented out some brackets and even added smily faces in front of them.

Shahrukh95 avatar Jan 06 '18 15:01 Shahrukh95

PLEASE HELP DON'T GIVE RIDDLES

Give me the code please !!! Someone please provide the correct code not riddles. And @Shahrukh95 I know the mistakes are commented but I don't know how to correct them. And also to disturb this issue that much @MinhasKamal

But please provide correct code !!!

maximousblk avatar Jan 07 '18 07:01 maximousblk

@max1m0u5 The mistakes are the kind of thing you learn on your first day of freshman programming class. Given a little research and some effort i'm sure you'll find what you're looking for, but if you can't break this code down then you probably shouldn't have it in the first place.

tbartee19 avatar Jan 09 '18 07:01 tbartee19

I know java, but I don't know C that well. Please help.

JackBenner123 avatar May 04 '18 01:05 JackBenner123

hello . how to use senddata() ? please .

traxanhkho avatar May 13 '18 07:05 traxanhkho

Win10, MINGW64, compile fail image the Gmail is useless so go ahead and do whatever. Do I need a /0 exit?

Fireflaker avatar Jul 02 '18 16:07 Fireflaker

You should stop complaining and learn to fix the code. If any of you had made any effort at all in finding the bugs (Which actually come with a hint in the source code) you would already have it running. Looking at the trace returned by the compiler says the entire story too?

puppetmaster12 avatar Aug 23 '18 16:08 puppetmaster12

Luved from the beginning!! Thanks for reminding me of my C++ classes in college, 20 years ago!!

ftrentini avatar Jan 16 '19 02:01 ftrentini

Another major hint - Look for // :) in the code.

17vali avatar Jan 31 '19 03:01 17vali

I recently started the course and I'm having a hard time finding gaps like those exposed by the author @MinhasKamal, could they help me with this process in making the files executable or teach me with this example?

I started studying at usp (university of sao paulo) and I have several difficulties in the programming areas.

ghost avatar May 01 '19 14:05 ghost

@MinhasKamal compiled, started, got an email too; but then it just stopped, no response at all. I've reduced the computer start time from 20 to 2, so that i can get the mail in a close frequent...

shadhin92 avatar Oct 05 '19 01:10 shadhin92

@shadhin92 Hard to say why that may have happened. If the user does not shutdown the computer, rather hibernates, then that will not be counted.

If it is running in your computer, then please go through the code again and see if you missed any thing.

MinhasKamal avatar Oct 06 '19 02:10 MinhasKamal