ComputerSecurityStudent (CSS) [Login] [Join Now]




|SECURITY TOOLS >> Trojan Horse Creation >> Current Page |Views: 51037

(Trojan Horse 1: Lesson 1)

{ Install a C/C++ Compiler }


Section 0. Background Information
  • Overview
    • This is a simple lab in which I show you how to install the CodeBlocks C/C++ compiler.
    • The following labs in this section will require the CodeBlocks C/C++ compiler.

     

  • What is CodeBlocks?
    • Code::Blocks is a full-featured IDE (Integrated Development Environment) aiming to make the individual developer (and the development team) work in a nice programming environment offering everything he/they would ever need from a program of that kind.
    • Its pluggable architecture allows you, the developer, to add any kind of functionality to the core program, through the use of plugins...
    • http://www.codeblocks.org/

     

  • Subsequent Lab

     

Section 1. Start Up Windows Machine
  1. Booting up WindowsVulerable01
    • Instructions:
      1. Start up VMware Player
      2. Select WindowsVulerable01
      3. Play Virtual Machine
    • Note:
      • For those of you that are not part of my class, WindowsVulernable01 is a Windows XP Machine.
      • Any version of Windows can be used.

     

  2. WindowsVulerable01 Authentication
    • Instructions:
      1. Login as administrator

 

Section 2. Download and Install CodeBlocks
  1. Start Up Internet Explorer.
    • Instructions:
      1. Start --> All Programs --> Internet Explorer
     
  2. Start Up Command Prompt
    • Instructions:
      1. On the WindowVulnerable01 Internet Explorer Web Browser, Go To http://www.codeblocks.org/downloads/binaries#windows
      2. Then Click on the Sourceforge.net link for clockblocks-10.05mingw-setup.exe
      3. Down Here if 10.05 is not longer present

     

  3. Information Bar Message
    • Instructions:
      1. Select OK

     

  4. Security Download Message
    • Instructions:
      1. Select Download File...

     

  5. File Download - Security Warning
    • Instructions:
      1. Click Save

     

  6. Save As
    • Instructions:
      1. Navigate to C:\tools

     

  7. Create New Folder
    • Instructions:
      1. Right Click in the white portion of the tools folder
      2. Select New --> Folder

     

  8. Name the folder
    • Instructions:
      1. Name the folder "Compiler"
      2. Double Click on the Compiler Folder

     

  9. Name the folder
    • Instructions:
      1. Click the Save Button

     

  10. Download Complete Message
    • Instructions:
      1. Click on Open Folder

     

  11. Run as...
    • Instructions:
      1. Right Click on the codeblocks executable
      2. Click on Run as...

     

  12. Open File - Security Warning
    • Instructions:
      1. Click on Run

     

  13. Run As
    • Instructions:
      1. Click on the Current User Radio Button
      2. Check the Protect my computer textbox.
      3. Select OK

     

  14. CodeBlocks Setup
    • Instructions:
      1. Click on Next

     

  15. CodeBlocks Setup
    • Instructions:
      1. Click on I Agree

     

  16. CodeBlocks Setup
    • Instructions:
      1. Make sure MinGW Compiler Suite is selected
      2. Click on Next

     

  17. CodeBlocks Setup
    • Instructions:
      1. Click on Install

     

  18. CodeBlocks Setup
    • Instructions:
      1. Click on YES

     

  19. Compiler auto-detection
    • Instructions:
      1. Click Next

     

  20. Compiler auto-detection
    • Instructions:
      1. Click Finished

     

  21. Compiler auto-detection
    • Instructions:
      1. Click on OK

     

  22. Code::Blocks Files Association Message
    • Instructions:
      1. Select "Yes, associate Code::Blocks with C/C++ files types"
      2. Select OK

     

  23. Check Compiler Settings
    • Instructions:
      1. Settings --> Compiler and debugger...

     

  24. Verify Compiler Location
    • Instructions:
      1. Click on the Toolchain executables TAB
      2. Make sure the Compiler's installation directory points to C:\Program Files\CodeBlocks\MinGW
      3. Click OK

 

Section 3. Proof of Lab
  1. Open a Command Prompt
    • Instructions:
      1. Start --> All Programs --> Accessories --> Command Prompt

     

  2. Proof of Lab
    • Instructions:
      1. cd "C:\Program Files\CodeBlocks"
      2. dir
      3. date
      4. Press the <Enter> Key
      5. echo "Your Name"
        • Replace the string "Your Name" with your actual name.
        • E.g., echo "John Gray"
    • Proof of Lab Instructions:
      1. Do a PrtScn
      2. Paste into a word doc
      3. Upload to Moodle


Help ComputerSecurityStudent
pay for continued research,
resources & bandwidth