Console Application => c++
Code:
#include "stdafx.h"
#include <string.h>
#include <iostream>
#include <Windows.h>
#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#include <io.h>
#include <math.h>
#include <fstream>
#include <sstream>
#include <ctime>
#include <cstdio>
#include <string>
using namespace std;
int hCrt, i;
int $sayi=0;
FILE *hf;
HANDLE hConsole;
Code:
void _inline consolAlloc(){
AllocConsole();
hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
hCrt = _open_osfhandle((long) GetStdHandle(STD_OUTPUT_HANDLE), _O_TEXT);
hf = _fdopen( hCrt, "w" );
*stdout = *hf;
i = setvbuf( stdout, NULL, _IONBF, 0 );
SetConsoleTitle( "Console Title" );
SetConsoleTextAttribute(hConsole, 6);
cout << "Console Loaded.!" << endl;
SetConsoleOutputCP(65001);
}
injected => open CONSOLE APP..