Our social:

Latest Post

Saturday, 22 September 2012

Self Destructing program in C


This program will destroy itself upon execution. The program will cause the .exe file to be deleted upon execution. That is this program is capable of destroying itself upon execution. Here is the code

#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*/
}


C Program without main function


How to write a C program without a main function?. Is it possible to do that. Yes there can be a C program without a main function. Here’s the code of the program without a main function…

#include<stdio.h>
#define decode(s,t,u,m,p,e,d) m##s##u##t
#define begin decode(a,n,i,m,a,t,e)

int begin()

{
printf(” hello “);
}

Does the above program run without the main function? Yes, the above program runs perfectly fine even without a main function. But how, whats the logic behind it? How can we have a C program working without main?

Here we are using preprocessor directive #define with arguments to give an impression that the program runs without main. But in reality it runs with a hidden main function.

The ‘##‘ operator is called the token pasting or token merging operator. That is we can merge two or more characters with it.

NOTE: A Preprocessor is program which processess the source code before compilation.

Look at the 2nd line of program -

#define decode(s,t,u,m,p,e,d) m##s##u##t

What is the preprocessor doing here. The macro decode(s,t,u,m,p,e,d) is being expanded as “msut” (The ## operator merges m,s,u & t into msut). The logic is when you pass (s,t,u,m,p,e,d) as argument it merges the 4th,1st,3rd & the 2nd characters(tokens)

Now look at the third line of the program -

#define begin decode(a,n,i,m,a,t,e)

Here the preprocessor replaces the macro “begin” with the expansion decode(a,n,i,m,a,t,e). According to the macro definition in the previous line the argument must be expanded so that the 4th,1st,3rd & the 2nd characters must be merged. In the argument (a,n,i,m,a,t,e) 4th,1st,3rd & the 2nd characters are ‘m’,’a’,’i’ & ‘n’.

So the third line “int begin” is replaced by “int main” by the preprocessor before the program is passed on for the compiler. That’s it…

The bottom line is there can never exist a C program without a main function. Here we are just playing a gimmick that makes us beleive the program runs without main function, but actually there exists a hidden main function in the program. Here we are using the proprocessor directive to intelligently replace the word begin” by “main”. In simple words int begin=int main.

Wednesday, 19 September 2012

Top 10 Free Logo Maker

Logo Is most important thing in every business even it is on small base or big level base logo has very importance in it. a logo show the personality of a business for example if you have a web site or blog and you must should design a logo for it a professional logo will cost you expensive so here is the some good and great online tools which will help you to design a free online logo if you will design a logo in Photoshop and Corel Draw its require higher knowledge but these online tools does not require higher knowledge just type your text there a automated logo will show you and allow you to save it without any company water marks.there is alot of free logo maker tools you can use and easily build new logos.


List of top free online logo makers:

1.logo maker
2.online logo maker
3.logo ease
4.logo design engine
5.logoyes
6.free logo services
7.logosnap
8.simwebsol
9.templates box
10.cooltext

Monday, 13 August 2012

HOW TO ACCESS BANNED SITES(mostly for colleges)


Q1) What Method i will be using ?

Ans : I will be using a method called SSH tunneling

Q2) What is SSH ? and What does it exactly do?

Ans : Secure Shell or SSH is a network protocol that allows data to be exchanged using a secure channel between two networked devices and all traffic are encrypted not like ftp or telnet were all the messages are sent in plain text

So if we encrypt our connection even a firewall or a proxy wont know were we connecting .Follow the setps given bellow to make a ssh tunnel

Q3) Things we need ?

Ans : 1. Putty you can download from



2. A SSH account there are lots free ssh services providers try
googling them

Q4) Setting up a SSH Tunnel With Putty ?

Ans : 1. After u download open putty now enter the host name as SSH
account which we created earlier and enter the port as 22


2. Now go To SSH options and open tunnels now Change Source port
to 8080 and click Dynamic. and finally click open

3. Now login with your details .Now we will configure Mozilla firefox to use
SSH connection.


4. Now open Firefox and Go to the "Tools" menu and then Options and
Go to the "Advanced" button, the "Network" tab, and then click
"Settings

5. In the connection settings enter "localhost" as the "Socks Host and
your port number, such as "1080" into the "Port:" field .thats it
now all connections are encrypted thus bypassing firewall or proxy


If you want view the packets u can use wire shark

Sunday, 12 August 2012

NEW HALO 4 GAME WILL LAUNCH ON 6 NOV 2012



Amazing new game coming on this year Halo 4. This game will official launch on 6 November 2012. but you can do pre-order now. The Master Chief returns to battle an ancient evil bent on vengeance and annihilation. Shipwrecked on a mysterious world, faced with new enemies and deadly technology, the universe will never be the same. Enlist aboard the Infinity to experience Halo's original multiplayer and Spartan Ops - innovative episodic fiction-based co-op missions.

Key Features
1. The Reclaimer Saga Begins: Experience the dawn of an epic new Halo adventure, solo or split screen with up to three friends.
2. Go Beyond the Story: Halo 4's Infinity Multiplayer features a vastly expanded suite of multiplayer modes, weapons, vehicles, armor abilities, a new loadout and Spartan IV player progression system.
3. Edge-of-your-seat Entertainment: Immerse yourself in Halo 4's graphics, sound and epic game play including a mysterious and deadly new class of enemies.

Video:



On Game mode of war games This revolutionary battle simulation system is where Spartans go to hone their skills in combat. Through holographic technology and vast pneumatic riser fields, the War Games facility is transformed into a hyper-realistic battlefield, simulating both real and hypothetical combat arenas. Moderated by the War Games AI, Spartans engage in a variety of classic and new game types.

Hal0 4 is a three Game Type:

1. Slayer: The standard Slayer experience of past Halo titles, now with a variety of new features that span across the entire War Games experience.

New features include a scoring system which separates both individual and team performance and a dynamic ordnance drop system, among several other exciting things yet to be revealed.

2. Infinity Slayer:
A new twist on the traditional Slayer experience that now allows Spartans to earn points during the course of a match which can eventually be leveraged to call in ordnance from overhead. Ordnance drops within Infinity Slayer consist of three selectable but randomly generated weapons or power-ups, which can alter the Spartans' speed, shielding, or ability to issue damage.

3. Regicide:
The Spartan in first place is the "king." As the king racks up kills, his or her bounty increases, thereby increasing the points other Spartans gain from killing the king. All other Spartans' heads-up displays and motion sensors give away the king's location at all times during the match, intensely focusing combat wherever the point leader happens to be.

The Limited Edition Halo 4 Console
Embark upon the new Halo Reclaimer saga in style on an Xbox 360 Limited Edition Halo 4 Bundle. Designed in collaboration with 343 Industries, this limited-edition bundle includes a customized Halo 4 Xbox 360 console complete with a 320GB hard drive, exclusive on-off and eject sound effects, two customized controllers, a standard edition Halo 4 game and downloadable Halo 4 content.
The Limited Edition Halo 4 wireless controller
Take control of your destiny with the Xbox 360 Halo 4 Limited Edition Wireless Controller, featuring UNSC artwork designed in collaboration with 343 Industries.





GOOGLE PROJECT GLASS PRICE HAS RELEASED




The concept of this Glass was came on 4th Apr 2012 by Google. Now google has released price of Project Glass. Google project has released their price aprrox $1,500 or £961. Now its available for pre order now and ship will be next year.. Its real amazing Future Technology. Google co-founder Sergey Brin took the stage at the conference for a live demo of Project Glass. Brin was able to talk to a group of skydivers in real-time using the special Google Glasses..

Video:


It will record your video, check your calendar, get weather updates and see messages from your friends..


New Video Skydiving Demo:Project Glass