#include
int main(int argc, char* argv[])
{
SetConsoleTitle(":: Ransomware Detector and Killer v.1 :: 28 Des 2016 :: by Ryan Bekabe ::");
return 0;
}
Showing posts with label CPP. Show all posts
Showing posts with label CPP. Show all posts
Monday, 2 January 2017
C++ Set Caption Name
//C++ Console
Sunday, 27 November 2016
C++ Get Username PC
// Borland C++ 5.0: bcc32.cpp getusername.cpp
// Visual C++ 5.0: cl getusername.cpp advapi32.lib
//
// This sample program is hereby placed in the public domain.
#include
#include
int main()
{
char acUserName[100];
DWORD nUserName = sizeof(acUserName);
if (GetUserName(acUserName, &nUserName)) {
cout << "Bekabe | Username komputer: " << acUserName << "." << endl;
}
else {
cerr << "Bekabe | Gagal melihat username, error pada: " <<
GetLastError() << "." << endl;
}
return 0;
}
// Visual C++ 5.0: cl getusername.cpp advapi32.lib
//
// This sample program is hereby placed in the public domain.
#include
#include
int main()
{
char acUserName[100];
DWORD nUserName = sizeof(acUserName);
if (GetUserName(acUserName, &nUserName)) {
cout << "Bekabe | Username komputer: " << acUserName << "." << endl;
}
else {
cerr << "Bekabe | Gagal melihat username, error pada: " <<
GetLastError() << "." << endl;
}
return 0;
}
Run Other Program with C++ 2008 Console Mode
// run.cpp : BeKaBe - Run Other Program with C++ 2008 Console Mode
// 14:19 27/11/2016
#include "stdafx.h"
#include "iostream"
#include "stdlib.h"
int _tmain(int argc, _TCHAR* argv[])
{
std::cout<<"BeKaBe: Hello Notepad and Regedit!";
system("start C:\\Windows\\system32\\notepad.exe");
system("start C:\\Windows\\regedit.exe");
return 0;
}
Subscribe to:
Posts (Atom)