Sunday, September 22, 2013

HIDING FILES TRICK 2 - LEARN TO HIDE FILES BEHIND IMAGES


How To Hide File Behind Image ?

1. Select an image to be used for hiding file behind the image.
2. Now select a file to hide behind the image and make it in .RAR format. With the help of the WinRAR.
3. And most important is that paste both the files on desktop. You may do this anywhere instead of desktop if you have some basic understanding of command line.
4. Now open cmd by going to Start > Accessories > Command Prompt and type following commands in it.

          cd desktop

 5. CD stands for change directory by typing above command you change your directory to desktop. After that type command given below. 

Copy /b imagename.jpg + filename.rar finalimage.jpg

Replace imagename.jpg with the name of image you want your file to be hidden behind. Don't forget to add image format (Eg: .jpg,.png,.gif)
Replace filename with name of your file you want to hide. It must be in .rar format.
Finally Replace finalimage.jpg with whatever name you want your final image with hidden files should be
. 
This is the image where your file will be hidden.

6. Now when you will try to open this newly created image it will open as normal image, but to open you hidden file you need follow steps given below.

How To Access Hidden File ?

To access your hidden file you need to open the newly created image in winrar. Just follow simple steps given below to do that.

    1. Open winrar
    2. Now locate your image and open it or simply drag your image in winrar.
    3. Extract the file and done.
    4. Your hidden files would be right there in front of you. !!! 

Password Protect Any Folder Without Any Software

Hey All , I am sure each one of Us is at some point or the other must have used some sort of HIDING softwares to hide things on our machine...SO lets find out today a TRICK to HIDE any thing that too PASSWORD PROTECT it WITHOUT the need of any kind of EXTERNAL SOFTWARE...

STEPS TO BE FOLLOWED :

1. Open Notepad and Copy code given into it.
cls
@ECHO OFF
title tarun
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST MyFolder goto MDMyFolder
:CONFIRM
echo Are you sure to lock this folder? (Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren MyFolder "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock Your Secure Folder
set/p "pass=>"
if NOT %pass%== taaskk goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" MyFolder
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDMyFolder
md MyFolder
echo MyFolder created successfully
goto End
:End

2. Save the notepad file as lock.bat (.bat is must)
3. Now double click on lock.bat and a new folder will be created    with name MyFolder
4. Copy all your data you want to protect in that New folder
5. Now double click on lock.bat and when command promp appears Type Y and press enter.
6. Now MyFolder will be hidden from you view (ensure that DO NOT SHOW HIDDEN FILE SETTINGS IS ACTIVATED ON YOU MACHINE), to access that folder double click on lock.bat
7. It will ask for password enter your password and done. (Default password is: taaskk)
To change the password replace taaskk with  new password in the above code

How To Further Secure ?

You might be thinking that anyone can access the password by opening that lock.bat file in Notepad or any other text editor. To make it more secure hide lock.bat in some secure location after following the above tutorial To access the secured file double click on lock.bat. I would suggest copying lock.bat file into Pendrive and copying it into your computer whenever you required to access to your protected files.

Saturday, September 21, 2013

IP Addressing

Introduction



This document gives you basic information needed in order to configure your router for routing IP, such as how addresses are broken down and how subnetting works. You learn how to assign each interface on the router an IP address with a unique subnet. There are many examples to help tie everything together.

Prerequisites

Requirements

Cisco recommends that you have knowledge of these topics:

Basic understanding of binary and decimal numbers.

Components Used

This document is not restricted to specific software and hardware versions.

Additional Information

If definitions are helpful to you, use these vocabulary terms to get you started:

Address—The unique number ID assigned to one host or interface in a network.

Subnet—A portion of a network sharing a particular subnet address.

Subnet mask—A 32-bit combination used to describe which portion of an address refers to the subnet and which part refers to the host.

Interface—A network connection.

If you have already received your legitimate address(es) from the Internet Network Information Center (InterNIC), you are ready to begin. If you do not plan to connect to the Internet, Cisco strongly suggests that you use reserved addresses from RFC 1918 leavingcisco.com.

Conventions

Refer to Cisco Technical Tips Conventions for more information on document conventions.

Understanding IP Addresses

An IP address is an address used in order to uniquely identify a device on an IP network. The address is made up of 32 binary bits, which can be divisible into a network portion and host portion with the help of a subnet mask. The 32 binary bits are broken into four octets (1 octet = 8 bits). Each octet is converted to decimal and separated by a period (dot). For this reason, an IP address is said to be expressed in dotted decimal format (for example, 172.16.81.100). The value in each octet ranges from 0 to 255 decimal, or 00000000 - 11111111 binary.

Here is how binary octets convert to decimal: The right most bit, or least significant bit, of an octet holds a value of 20. The bit just to the left of that holds a value of 21. This continues until the left-most bit, or most significant bit, which holds a value of 27. So if all binary bits are a one, the decimal equivalent would be 255 as shown here:

    1  1  1  1 1 1 1 1
  128 64 32 16 8 4 2 1 (128+64+32+16+8+4+2+1=255)
Here is a sample octet conversion when not all of the bits are set to 1.

  0  1 0 0 0 0 0 1
  0 64 0 0 0 0 0 1 (0+64+0+0+0+0+0+1=65)
And this is sample shows an IP address represented in both binary and decimal.

        10.       1.      23.      19 (decimal)
  00001010.00000001.00010111.00010011 (binary)
These octets are broken down to provide an addressing scheme that can accommodate large and small networks. There are five different classes of networks, A to E. This document focuses on addressing classes A to C, since classes D and E are reserved and discussion of them is beyond the scope of this document.

Note: Also note that the terms "Class A, Class B" and so on are used in this document to help facilitate the understanding of IP addressing and subnetting. These terms are rarely used in the industry anymore because of the introduction of classless interdomain routing (CIDR).

Given an IP address, its class can be determined from the three high-order bits. Figure 1 shows the significance in the three high order bits and the range of addresses that fall into each class. For informational purposes, Class D and Class E addresses are also shown.

AJAX IMPLEMENTATION in a ASP.NET APPLICATION

Anyone intereseted on having a hear on AJAX implementation in your ASP.NET application..
Lets take a word on this concept which melts of so smoothly into your application that its working would really impress you.

Ever seen a site such as a one which displays live Cricket scores or the one related to Stock Market where equity prices get update on a live feed without you refreshing the entire page. You would have seen only the portion related to the Cricket scores or the Stock prices gets updated. The rest of the page remains as it is. This concept is called as the PARTIAL RENDERING of the page.

So for this Partial Rendering to take place in any of your pages in your ASP.NET application , you need to implement AJAX on the source code for that page in your application. Wondering how to do that ?? Below is your answer...

Implement AJAX using Update Panel 



If you are an ASP.NET developer then you probably are aware of the AJAX Extension tab in Visual Studio (2008 or higher generally) Toolbox and the tab has a few very useful tools to implement AJAX in a web application. We will be implementing AJAX using UpdatePanel and ScriptManager . Both tools are available in the same tab of the Toolbox.

UpdatePanel

Let's learn a few lines about Update Panel. It's nothing but a region that will be updated in asynchronous operations (region which undergoes partial rendering/updation). And this is the beauty of AJAX. The contents of the UpdatePanel will be updated and the outside content will remain the same.

ScriptManager

This is the hero of AJAX implementation in ASP.NET. Before writing any code related to ajax you need to put a ScriptManager tag in the aspx page.

Let's see one example in action.

The following will print the time within an Update Panel:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    //Script manager tag is here
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
   
    // Code outside of Update panel
    Time at Load Time <%= DateTime.Now.ToLongTimeString() %>.
   
    // code inside Update panel
    <asp:UpdatePanel ID="UpdatePanel1"
         runat="server" UpdateMode="Conditional">
    <ContentTemplate>
    Latest Time by refresh <%= DateTime.Now.ToLongTimeString() %>.
    <br /><asp:Button Text="Refresh Time" ID="Button1"
        runat="server"/>
    </ContentTemplate>
    </asp:UpdatePanel> 

    </div>
   
    </form>
</body>
</html>
Here is the output window:




If you try this example in your Development environment and run it then you can find the second date display is updated after each press of the button, because it's within the update panel. But the first label is (First Time display) as it is. OK, you are saying , "this is a very simple example and it's not at all useful in project development". Then I will show you something more useful than this. Let's make a little database operation by AJAX technique.

Fetch Data from Database using AJAX


Here I would like to show how to fetch data from a database and display it within a Grid using AJAX. The basic concept or implementation is the same. I will keep a few controls within the Update Panel and that's all.

Here is my aspx page:

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>           
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
   
   <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:DropDownList ID="DDLAjax" runat="server" Height="16px" Width="117px">
            </asp:DropDownList>
            <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Show"
                Width="95px" />
            <br />
            <asp:GridView ID="GridView1" runat="server">
            </asp:GridView>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>

If you observe the content of my aspx page then you will discover that I have kept one drop down list, one button and one GridView within the UpdatePanel. And our hero (read ScriptManager) is just in the previous line of update panel. Now it's time to observe C# code for the same aspx page.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
namespace YahooProject
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                this.DDLAjax.Items.Add("first");
                this.DDLAjax.Items.Add("second");
            }
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            SqlConnection con = new SqlConnection();
     con.ConnectionString = "Data Source=SERVERNAME;Initial atalog=DATABALENAME;Integrated Security=True";
            con.Open();
            SqlCommand cmd = null;

            if (this.DDLAjax.SelectedItem.Text == "first")
            {
                cmd = new SqlCommand("select * from first",con);
            }
            if (this.DDLAjax.SelectedItem.Text == "second")
            {
                cmd = new SqlCommand("select * from second", con);
            }
            this.GridView1.DataSource = cmd.ExecuteReader();
            this.GridView1.DataBind();
        }
    }
}

Hey; no rocket science here. The user will choose the table name by selecting it from the drop down list and after clicking the button the data from the relevant table will be fetched and bound with the Grid View. And we need to keep in mind only the component within the update panel (here GridView basically) will be updated. 


OK, I hope you got the basic idea of UpdatePanel to implement AJAX. May be you try this out and in case of any further or advanced issues on the concept you can get back to us . Taaskk will be there to sort out the issue.