1 RAM addresses
2 VirtualAllocEx()
MapUserPhysicalPages()
mmGetPhysicalAddress()
ThongLT - letrthong@gmail.com
www.duartes.org
#if defined(_WIN64) // 64-bit programs run only on Win64 #elif defined(_WIN32) // 32-bit programs run on both 32-bit and 64-bit Windows #else // Win64 does not support Win16 #endif
#include <iostream>
#include <Windows.h>
using namespace std;
DWORD WINAPI Thread1(LPVOID lpParameter)
{
SYSTEMTIME time1;
WORD flag = 0;
int count = 0;
while(true)
{
GetLocalTime(&time1);
if(flag != time1.wSecond)
{
count++;
if(count >60)
{
break;
}
cout<<time1.wHour<<" : "<< time1.wMinute <<" : "<<time1.wSecond<<endl;
}
flag = time1.wSecond;
}
return 0;
}
bool TimerInterrupt(HANDLE& task1)
{
DWORD Threadid;
task1 = CreateThread(
NULL,
0,
Thread1,
NULL,
NULL,
&Threadid
);
if(task1 == NULL)
{
cout<<"Could not create Thread"<<endl;
return false ;
}
return true;
}
int main()
{
HANDLE task;
if (TimerInterrupt(task) == true)
{
cout<<"start new thread ."<<endl;
WaitForSingleObject(task,INFINITE);
cout<<" close thread ."<<endl;
CloseHandle(task);
}
return 0;
} //ThongLT-letrthong@gmail.com
"wmic process | sort"
"00:05:69"; //vmware1
"00:0C:29"; //vmware2
"00:50:56"; //vmware3
"00:1C:42"; //parallels1
"00:03:FF"; //microsoft virtual pc
"00:0F:4B"; //virtual iron 4
"00:16:3E"; //red hat xen , oracle vm , xen source, novell xen
"08:00:27"; //virtualbox
Win32_ComputerSystem.Manufacturer Win32_ComputerSystem.Model Microsoft Corporation Virtual Machine VMware, Inc. VMware Virtual Platform Red Hat KVM innotek GmbH VirtualBox
//==========================================================================
MAC address .
get real mac addres : pinfo->Type == MIB_IF_TYPE_ETHERNET
string pnp = obj["PNPDeviceID"].ToString();
if (pnp.Contains("PCI\\"))
//--------------------------------------------------------------------------
http://www.installsetupconfig.com/win32programming/
generating-hardware-based-computerid
http://blogs.vmware.com/teamfusion/2008/10/vmware-fusion-3-2.html
# No package available
yum search g++
For Example : yum search gcc-c++
8. To folder : passwd
passwd {userName}
10 . open dpf fileyum install xpdf11 .Shutdown - Reboot :
step 1 : "yum update"
step 2 : "yum install gcc make kernel-devel perl kernel-PAE-devel"
step 3 : extracted files
step 4 : cd pathName
step 5 : "/vmware-install.pl"
13. installing codeblocks
14 installing gitsu yum install codeblocks
su
yum install git-core
15 . Installing Echipseyum -y install eclipse
16. Upgrade the newest on Fedorasudo yum install fedora-upgrade
17 KDeveloper18 File in Linuxyum install kdevelop
touch filename.txt
cat > myfile.txtvi galfit.feedme
Press i //Do required editing
Press Esc
:wq //for exiting and saving
:q! //for exiting without saving
good linksh file.sh
bash file.shhttps://fedoraproject.org/wiki/Upgrading_Fedora_using_yum
sudo apt-get install nmap
sudo apt-get remove nmap
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install
gcc
25 Useful Basic Commands of APT-GET