CybersecStack
  • CybersecStack
  • pentest environment: windows
    • Compiling
    • Windows Defender
  • pentest environment: linux
    • Unattended Kali Linux installation
  • Web application security
    • Client Side Request Forgery
    • Server Side Request Forgery
    • PHP
  • Active Directory
    • ADCS PrivEsc: Certificate Templates
Powered by GitBook
On this page

Was this helpful?

  1. pentest environment: windows

Compiling

Cheat-sheet for compiling on windows

PreviousCybersecStackNextWindows Defender

Last updated 3 years ago

Was this helpful?

Path examples for environment variables

C:\Windows\Microsoft.NET\Framework\v4.0.30319\
C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\

Command line

csc.exe -o program.exe csharp.cs
x86_64-w64-mingw32-g++.exe -o program.exe cplusplus64.cpp
i686-w64-mingw32-g++.exe -o program.exe cplusplus32.cpp
x86_64-w64-mingw32-gcc.exe -o program.exe cfile64.c
i686-w64-mingw32-gcc.exe -o program.exe cfile32.c
msbuild.exe project.csproj

Dependencies

  • (csc.exe)

  • (x86_64-* and i686-*)

  • (msbuild.exe)

Microsoft .NET Framework
Mingw-w64
Microsoft build tools