Powered By Blogger

Sunday, March 6, 2011

Hit Counter for ASP.NET

This is a very simple hit counter / page counter to see how many people have visited a web page if you want to show it on a web page. This is a simple user control that is meant to be on one page (i.e., the home page).

The requirements for this are a user control and read/write access to an xml file. Below is the code for the user control counter.ascx

Markup Code:

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="counter.ascx.cs" Inherits="counter" %>

<asp:Label ID="lblCounter" runat="server">asp:Label>

Code for the code behind:

protected void Page_Load(object sender, EventArgs e)

{

this.countMe();

DataSet tmpDs = new DataSet();
tmpDs.ReadXml(Server.MapPath("~/counter.xml"));

lblCounter.Text = tmpDs.Tables[0].Rows[0]["hits"].ToString();

}

private void countMe()

{

DataSet tmpDs = new DataSet();
tmpDs.ReadXml(Server.MapPath("~/counter.xml"));

int hits = Int32.Parse(tmpDs.Tables[0].Rows[0]["hits"].ToString());

hits += 1;

tmpDs.Tables[0].Rows[0]["hits"] = hits.ToString();

tmpDs.WriteXml(Server.MapPath("~/counter.xml"));

}

Then you need to have an xml file in the root directory to make the code work as well. The XML file will look like this:

xml version="1.0" encoding="utf-8" ?>
<
counter
>
<
count
>
<
hits>0hits>
count
>
counter>

This should do it for a simple asp.net hit counter. Not much but it's something simple and clean. I've seen others out there and didn't like them too much and plus all the free ones require some type of advertising to be associated with it. This concept is easy and you can format it however you want!

Facebook Fake Login Page/Fake Login Script !!!

Are you curious to “hackfacebook password” well then this post is just for you,Most people ask me to tell us the easiest way to hack facebookpassword,so here are some ways to hack facebook password:

1.Facebook phishing

2.Keylogging

3.Facebook new features

4.virus

But i will explan you the method which has a great success

Update:Due to recent complains i have elobrated the post and change the login script to hack facebook password please check it out

Today we will focus on the But i will explan you the method which has a great success rate and is very easy to use i.e Phishing or fake login page

Fake login page

A Fake Login Page is a page that exactly resembles the original login page of sites like Yahoo,Gmail etc.

However, these Fake login pages are created just for the purpose of stealing other’s passwords.

First of all download facebook fake login page from here

1.once you have downloded facebook fake login page now extract contents in a folder

2.In that. open “pass.php” and find (CTRL+F) ‘http://www.thecopypasteblog.com‘ then change it to’http://www.Facebook.com

Note:‘http://www.facebook.com‘ is the redirection url,When victim will enter his/her email and password he will redirected to’http://www.facebook.com‘ instead of “http://www.thecopypasteblog.com

Now Save it.

3.Open Fake page in wordpad

4.Now press ctrl+F and search for the term “action=” now change its value to pass.php i.e. action=pass.php

5.Create an id in www.110mb.com,www.ripway.com or t35.com

6.Then upload the contents into a directory

7.For that,after creating an id you should go to file manager and upload all these files.

8.Then just got to Facebook.htm and try out whether its working .

After you type the file , a password file named pass.txt will be created in the same directory .

you can see what username and password you have entered.

9. Distribute the Facebook.HTML URL (ie: yoursite.com/Facebook.HTML) to your friends.When they login from this fake login page, the login.php will save the username and password onto the .TXT file (or any other format) in your site. Download the file to see the password inside it.