Saturday, December 31, 2011

Delete Temparary Files

Click on Start button and click on 'RUN' and type :


RECENT

TEMP

%TEMP%


And Delete All Files

System Lock

If you want to lock in System
  • Start
  • Go to Run
  • Type syskey
  • Click on Update
  • Click Password Startup and
  • Type password and click ok button
You have Protect your own PC.

Calculator in C#

Description

This is a simple calculator program that was written using Visual Studio.NET and C#. The calculator is a good program to learn how to use mouse and keyboard events. To use this code, create a new C# Windows Application project and paste this code in.

// Source Code starts
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
namespace Calculator1
{
/// <summary>
/// This is a simple calculator program.
/// Author: Bhavesh Odedra
/// Date: 9/7/2011
/// Email: bhaveshodedra@rocketmail.com
///
/// This is my first venture into C# so some of the techniques might seem quick and dirty.
/// If there is a more efficient way of doing something (i.e. Making sure that hitting Enter
/// fires doEquals()) please let me know. I hope that you will learn as much from this
/// program as I did about C# controls and events.
///
/// Bhavesh Odedra
///
/// </summary>
public class Calculator1 : System.Windows.Forms.Form
{
#region Constructor
public Calculator1()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
}
#endregion
#region Global Variables
private System.Windows.Forms.Button btnAdd;
public System.Windows.Forms.TextBox txtResult;
private System.Windows.Forms.Button btn1;
private System.Windows.Forms.Button btn2;
private System.Windows.Forms.Button btn3;
private System.Windows.Forms.Button btn4;
private System.Windows.Forms.Button btn5;
private System.Windows.Forms.Button btn6;
private System.Windows.Forms.Button btn7;
private System.Windows.Forms.Button btn8;
private System.Windows.Forms.Button btn9;
private System.Windows.Forms.Button btn0;
private System.Windows.Forms.Button btnSubtract;
private System.Windows.Forms.Button btnMultiply;
private System.Windows.Forms.Button btnDivide;
private System.Windows.Forms.Button btnEquals;
private System.Windows.Forms.Button btnClear;
private System.Windows.Forms.Button btnNegative;
private System.Windows.Forms.Button btnDecimal;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
/// <summary>
/// These are global variables defined for use in the calculator
/// <summary>
private int opMain = 0; /// Stores the value of the operation (1-4)
private double mainNum1 = 0; ///Stores the value of the first number
private double mainNum2 = 0; ///Stores the value of the second number
private bool isSecond = false; //Boolean value used to determine if input is the second or first number.
private bool isDone = false; ///Boolean value used to determine if the equals key was pressed.
private bool isDecimal = false; //Boolean value used to determine if there is a decimal in the number.
#endregion
#region Dispose
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#endregion
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// Most of these just set the controls and the properties for them. There are some event handlers that I will explain as I go along.
/// <summary>
private void InitializeComponent()
{
this.btn2 = new System.Windows.Forms.Button();
this.btn3 = new System.Windows.Forms.Button();
this.btn0 = new System.Windows.Forms.Button();
this.btn1 = new System.Windows.Forms.Button();
this.btn6 = new System.Windows.Forms.Button();
this.btn7 = new System.Windows.Forms.Button();
this.btn4 = new System.Windows.Forms.Button();
this.btnDivide = new System.Windows.Forms.Button();
this.btn9 = new System.Windows.Forms.Button();
this.btnAdd = new System.Windows.Forms.Button();
this.btnSubtract = new System.Windows.Forms.Button();
this.btnDecimal = new System.Windows.Forms.Button();
this.btnClear = new System.Windows.Forms.Button();
this.txtResult = new System.Windows.Forms.TextBox();
this.btnMultiply = new System.Windows.Forms.Button();
this.btn5 = new System.Windows.Forms.Button();
this.btn8 = new System.Windows.Forms.Button();
this.btnEquals = new System.Windows.Forms.Button();
this.btnNegative = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// btn2
//
this.btn2.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(0)),((System.Byte)(0)),((System.Byte)(192)));
this.btn2.Location = new System.Drawing.Point(48, 40);
this.btn2.Name = "btn2";
this.btn2.Size = new System.Drawing.Size(32, 32);
this.btn2.TabIndex = 13;
this.btn2.TabStop = false;
this.btn2.Text = "2";
this.btn2.Click += new System.EventHandler(this.btn2_Click);
//
// btn3
//
this.btn3.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(0)),((System.Byte)(0)),((System.Byte)(192)));
this.btn3.Location = new System.Drawing.Point(88, 40);
this.btn3.Name = "btn3";
this.btn3.Size = new System.Drawing.Size(32, 32);
this.btn3.TabIndex = 12;
this.btn3.TabStop = false;
this.btn3.Text = "3";
this.btn3.Click += new System.EventHandler(this.btn3_Click);
//
// btn0
//
this.btn0.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(0)),((System.Byte)(0)), ((System.Byte)(192)));
this.btn0.Location = new System.Drawing.Point(48, 160);
this.btn0.Name = "btn0";
this.btn0.Size = new System.Drawing.Size(32, 32);
this.btn0.TabIndex = 5;
this.btn0.TabStop = false;
this.btn0.Text = "0";
this.btn0.Click += new System.EventHandler(this.btn0_Click);
//
// btn1
//
this.btn1.ForeColor = ystem.Drawing.Color.FromArgb(((System.Byte)(0)),((System.Byte)(0)),((System.Byte)(192)));
this.btn1.Location = new System.Drawing.Point(8, 40);
this.btn1.Name = "btn1";
this.btn1.Size = new System.Drawing.Size(32, 32);
this.btn1.TabIndex = 14;
this.btn1.TabStop = false;
this.btn1.Text = "1";
this.btn1.Click += new System.EventHandler(this.btn1_Click_1);
//
// btn6
//
this.btn6.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(0)),((System.Byte)(0)),((System.Byte)(192)));
this.btn6.Location = new System.Drawing.Point(88, 80);
this.btn6.Name = "btn6";
this.btn6.Size = new System.Drawing.Size(32, 32);
this.btn6.TabIndex = 9;
this.btn6.TabStop = false;
this.btn6.Text = "6";
this.btn6.Click += new System.EventHandler(this.btn6_Click);
//
//btn7
//
this.btn7.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(0)),((System.Byte)(0)),((System.Byte)(192)));
this.btn7.Location = new System.Drawing.Point(8, 120);
this.btn7.Name = "btn7";
this.btn7.Size = new System.Drawing.Size(32, 32);
this.btn7.TabIndex = 8;
this.btn7.TabStop = false;
this.btn7.Text = "7";
this.btn7.Click += new System.EventHandler(this.btn7_Click);
//
// btn4
//
this.btn4.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(0)),((System.Byte)(0)),((System.Byte)(192)));
this.btn4.Location = new System.Drawing.Point(8, 80);
this.btn4.Name = "btn4";
this.btn4.Size = new System.Drawing.Size(32, 32);
this.btn4.TabIndex = 11;
this.btn4.TabStop = false;
this.btn4.Text = "4";
this.btn4.Click += new System.EventHandler(this.btn4_Click);
//
// btnDivide
//
this.btnDivide.Location = new System.Drawing.Point(136, 160);
this.btnDivide.Name = "btnDivide";
this.btnDivide.Size = new System.Drawing.Size(32, 32);
this.btnDivide.TabIndex = 2;
this.btnDivide.TabStop = false;
this.btnDivide.Text = "/";
this.btnDivide.Click += new System.EventHandler(this.btnDivide_Click);
//
// btn9
//
this.btn9.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(0)),((System.Byte)(0)),((System.Byte)(192)));
this.btn9.Location = new System.Drawing.Point(88, 120);
this.btn9.Name = "btn9";
this.btn9.Size = new System.Drawing.Size(32, 32);
this.btn9.TabIndex = 6;
this.btn9.TabStop = false;
this.btn9.Text = "9";
this.btn9.Click += new System.EventHandler(this.btn9_Click);
//
// btnAdd
//
this.btnAdd.Location = new System.Drawing.Point(136, 40);
this.btnAdd.Name = "btnAdd";
this.btnAdd.Size = new System.Drawing.Size(32, 32);
this.btnAdd.TabIndex = 15;
this.btnAdd.TabStop = false;
this.btnAdd.Text = "+";
this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
//
// btnSubtract
//
this.btnSubtract.Location = new System.Drawing.Point(136, 80);
this.btnSubtract.Name = "btnSubtract";
this.btnSubtract.Size = new System.Drawing.Size(32, 32);
this.btnSubtract.TabIndex = 4;
this.btnSubtract.TabStop = false;
this.btnSubtract.Text = "-";
this.btnSubtract.Click += new System.EventHandler(this.btnSubtract_Click);
//
// btnDecimal
//
this.btnDecimal.Location = new System.Drawing.Point(88, 200);
this.btnDecimal.Name = "btnDecimal";
this.btnDecimal.Size = new System.Drawing.Size(32, 32);
this.btnDecimal.TabIndex = 17;
this.btnDecimal.TabStop = false;
this.btnDecimal.Text = ".";
this.btnDecimal.Click += new System.EventHandler(this.btnDecimal_Click);
//
// btnClear
//
this.btnClear.ForeColor = System.Drawing.Color.Red;
this.btnClear.Location = new System.Drawing.Point(8, 200);
this.btnClear.Name = "btnClear";
this.btnClear.Size = new System.Drawing.Size(32, 32);
this.btnClear.TabIndex = 0;
this.btnClear.TabStop = false;
this.btnClear.Text = "C";
this.btnClear.Click += new System.EventHandler(this.btnClear_Click);
//
// txtResult
//
this.txtResult.Location = new System.Drawing.Point(8, 8);
this.txtResult.Name = "txtResult";
this.txtResult.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.txtResult.Size = new System.Drawing.Size(160, 20);
this.txtResult.TabIndex = 15;
this.txtResult.TabStop = false;
this.txtResult.Text = "";
this.txtResult.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
//
// btnMultiply
//
this.btnMultiply.Location = new System.Drawing.Point(136, 120);
this.btnMultiply.Name = "btnMultiply";
this.btnMultiply.Size = new System.Drawing.Size(32, 32);
this.btnMultiply.TabIndex = 3;
this.btnMultiply.TabStop = false;
this.btnMultiply.Text = "*";
this.btnMultiply.Click += new System.EventHandler(this.btnMultiply_Click);
//
// btn5
//
this.btn5.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(0)),((System.Byte)(0)),((System.Byte)192)));
this.btn5.Location = new System.Drawing.Point(48, 80);
this.btn5.Name = "btn5";
this.btn5.Size = new System.Drawing.Size(32, 32);
this.btn5.TabIndex = 10;
this.btn5.TabStop = false;
this.btn5.Text = "5";
this.btn5.Click += new System.EventHandler(this.btn5_Click);
//
// btn8
//this.btn8.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(0)),((System.Byte)(0)),((System.Byte)(192)));
this.btn8.Location = new System.Drawing.Point(48, 120);
this.btn8.Name = "btn8";
this.btn8.Size = new System.Drawing.Size(32, 32);
this.btn8.TabIndex = 7;
this.btn8.TabStop = false;
this.btn8.Text = "8";
this.btn8.Click += new System.EventHandler(this.btn8_Click);
//
// btnEquals
//
this.btnEquals.Location = new System.Drawing.Point(136, 200);
this.btnEquals.Name = "btnEquals";
this.btnEquals.Size = new System.Drawing.Size(32, 32);
this.btnEquals.TabIndex = 1;
this.btnEquals.TabStop = false;
this.btnEquals.Text = "=";
this.btnEquals.Click += new System.EventHandler(this.btnEquals_Click);
//
// btnNegative
//
this.btnNegative.Location = new System.Drawing.Point(48, 200);
this.btnNegative.Name = "btnNegative";
this.btnNegative.Size = new System.Drawing.Size(32, 32);
this.btnNegative.TabIndex = 16;
this.btnNegative.TabStop = false;
this.btnNegative.Text = "+/-";
this.btnNegative.Click += new System.EventHandler(this.btnNegative_Click);
//
// Calculator1
//
this.AcceptButton = this.btnEquals;
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(176, 245);
this.Controls.AddRange(new System.Windows.Forms.Control[]
{this.btnDecimal,
this.btnNegative,
this.btnClear,
this.btnEquals,
this.btnDivide,
this.btnMultiply,
this.btnSubtract,
this.btn0,
this.btn9,
this.btn8,
this.btn7,
this.btn6,
this.btn5,
this.btn4,
this.btn3,
this.btn2,
this.btn1,
this.txtResult,
this.btnAdd});
this.KeyPreview = true;
this.Name = "Calculator1";
this.Text = "Calculator";
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Btn_KeyDown);
this.ResumeLayout(false);
}
#endregion
///Custom Methods
#region setText(String textset)
/// <summary>
/// This method is used to set the text in the textbox to the number entered by the user.
/// <summary>
/// <param name="textset"></param>
public void setText(String textset)
{
if(textset.Equals("clear"))
//If the user hits the clear button
txtResult.Text = ""; //Clear the text and reset the boolean variables.
isDone = false;
isSecond = false;
isDecimal = false;
}
else
{
if(isSecond) //Determine if the number being entered is the begining of the second number.If it is:
{
txtResult.Text = textset;
//Start the text over and set the first # to what the user enters
isSecond = false; //So Calculator knows to continue the # rather than making a new one.
isDecimal = false;
}
else
{
if(isDone) //isDone lets the program know that the user just hit "=" and if they press another # to start a new number.
{
txtResult.Text = textset;
isDone=false; //Set isDone to false so that the number just started is added on to and a new # is not started.
}
else
txtResult.Text += textset; //Simply add on to the existing #.
}
}
btnEquals.Select();
//Set the focus back to the "=" button.
}
#endregion
#region Calc(double num1, double num2, int op)
/// <summary>
/// Calc takes the 2 numbers and the operation and calcualtes the answer.
/// <summary>
/// <param name="num1"></param>
/// <param name="num2"></param>
/// <param name="op"></param>
public void Calc(double num1, double num2, int op)
{
double answer = 0;//Initialize answer to 0;
switch(op) //Determine which operation to perform depending on the value of "op"
{
case1:| answer = num1 + num2;
break;
case 2:
answer = num1 - num2;
break;
case 3:
answer = num1 * num2;
break;
case 4:
answer = num1 / num2;
break;
}
setText(answer.ToString()); //Show the answer in the textbox;
}
#endregion
#region doEquals()
/// <summary>
/// This method stores the second number, clears the textbox and calls the Calc method
/// </summary>
private void doEquals()
{
mainNum2 =double.Parse(txtResult.Text);
//Set the value of the second number
setText("clear"); //Clear the textbox
Calc(mainNum1, mainNum2,opMain); //Call the Calc method
isDone = true; //Set isDone to true so that if another # is pressed, the program will begin a new number
}
#endregion
#region changeSign()
/// <summary>
/// This method changes the sign of the number. If the number is positive
/// it makes it negative and vice versa.
/// </summary>
private void changeSign()
{
double storNum; //Variable to store value of number
if(txtResult.Text.Length > 0) //If there is a number...
{
storNum = double.Parse(txtResult.Text); //Store its value
storNum *= -1; //multiply by negative 1
txtResult.Text = storNum.ToString(); //put it in the textbox.
}
btnEquals.Select(); //Set focus to "=" button
}
#endregion
#region setOperator(int operation)
/// <summary>
/// The method is used to store the first number and the operation being performed.
/// <summary>
// <param name="operation"></param>
private void setOperator(int operation)
{
if(txtResult.Text.Length > 0)//Make sure that the user entered a number
{
opMain = operation; //Store the operation
mainNum1 = double.Parse(txtResult.Text); //Store the value of the first number
isSecond = true; //Let the program know to begin the second number
isDone = false; //If a operator button is pressed before a new number, let the program know to start a new umber.
btnEquals.Select(); //Set the focus to the equals button.
}
}
#endregion
#region setDecimal()
/// <summary>
/// This method checks to see if the # has a decimal in it. If not, it
/// puts one in. If it does, no decimal is entered.
/// </summary>
private void setDecimal()
{
if(!isDecimal)//Check for existing decimal
{
setText("."); //Add decimal
isDecimal = true; //Let program know decimal has been added
}
btnEquals.Select(); //Set focus to "=" button
}
#endregion
#region KeyBoard Events
/// <summary>
/// This method simply determines which key is being pressed.
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Btn_KeyDown (object sender,KeyEventArgs e)
{
//MessageBox.Show(e.KeyValue.ToString());
filterKeys(e.KeyValue);
}
/// <summary>
/// This method accepts the value of the key and calls the corresponding methods.
/// It is pretty self-explanatory.
/// </summary>
/// <param name="keyCode"></param>
public void filterKeys(int keyCode)
{
switch(keyCode)
{
case 96:
setText("0");
break;
case 97:
setText("1");
break;
case 98:
setText("2");
break;
case 99:
setText("3");
break;
case 100:
setText("4");
break;
case 101:
setText("5");
break;
case 102:
setText("6");
break;
case 103:
setText("7");
break;
case 104:
setText("8");
break;
case 105:
setText("9");
break;
case 67:
setText("clear");
break;
case 107:
setOperator(1);
break;
case 109:
setOperator(2);
break;
case 106:
setOperator(3);
break;
case 111:
setOperator(4);
break;
case 110:
setDecimal();
break;
}
}
#endregion
#region Button Functions
///These methods do the same as when a key is pressed except the respond to the
///mouse clicks on the different controls. These are the methods that were mapped to
///the controls up top.
private void btnAdd_Click(object sender,System.EventArgs e)
{
setOperator(1);
}
private void btn1_Click_1(object sender,System.EventArgs e)
{
setText("1");
}
private void btn2_Click(object sender,System.EventArgs e)
{
setText("2");
}
private void btn3_Click(object sender,System.EventArgs e)
{
setText("3");
}
private void btn4_Click(object sender,System.EventArgs e)
{
setText("4");
}
private void btn5_Click(object sender,System.EventArgs e)
{
setText("5");
}
private void btn6_Click(object sender,System.EventArgs e)
{
setText("6");
}
private void btn7_Click(object sender,System.EventArgs e)
{
setText("7");
}
private void btn8_Click(object sender,System.EventArgs e)
{
setText("8");
}
private void btn9_Click(object sender,System.EventArgs e)
{
setText("9");
}
private void btn0_Click(object sender,System.EventArgs e)
{
setText("0");
}
private void btnEquals_Click(object sender,System.EventArgs e)
{
doEquals();
}
private void btnClear_Click(object sender,System.EventArgs e)
{
isSecond = false;
setText("clear");
}
private void btnSubtract_Click(object sender,System.EventArgs e)
{
setOperator(2);
}
private void btnMultiply_Click(object sender,System.EventArgs e)
{
setOperator(3);
}
private void btnDivide_Click(object sender,System.EventArgs e)
{
setOperator(4);
}
private void btnNegative_Click(object sender,System.EventArgs e)
{
changeSign();
}
private void btnDecimal_Click(object sender,System.EventArgs e)
{
setDecimal();
}
#endregion
#region Main()
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
deApplication.Run(new Calculator1());
}
#endregion
}nevermind
}
// Source Code End

Saturday, August 20, 2011

How To Use Newsgroups



 Here's a couple of good links to tutorials for newsgroups I use them a lot and find them very fast and loaded with good stuf


http://www.smr-usenet.com/tutor/smartpar3.shtml


the best newsreader I've found (but not the only one recommended)


http://www.shemes.com/index.php?p=features


The best way to search newsgroups


http://www.newzbin.com/


Not all ISP will carry the best binary groups it varies from one provider to another there are some pay newsservers out there with good retention time and a large number of groups.Anyway happy hunting.

Run Commands to access the control panel



appwiz.cpl =  Add/Remove Programs control
timedate.cpl =  Date/Time Properties control
desk.cpl =  Display Properties control
findfast.cpl         =  FindFast control
fonts =  Fonts Folder control
inetcpl.cpl =  Internet Properties control
main.cpl keyboard =  Keyboard Properties control
main.cpl =  Mouse Properties control
mmsys.cpl =  Multimedia Properties control
netcpl.cpl =  Network Properties control
password.cpl =  Password Properties control
printers =  Printers Folder control
mmsys.cpl sounds =  Sound Properties control
sysdm.cpl =  System Properties control

Keep Folders Hidden



First create a new folder somewhere on your hard drive.

When you name it hold down "Alt" and press "0160" this will create and invisible space so it will apper as if it has no name.

Then right click in and select "Properties" select the tab "coustimize" and select "change icon" scroll along and you should a few blanc spaces click on any one and click ok when you hav saved the settings the folder will be invisible to hide all your personal files

Disable Windows Logo Key




Caught A Virus?



If you've let your guard down--or even if you haven't--it can be hard to tell if your PC is infected. Here's what to do if you suspect the worst.


Heard this one before? You must run antivirus software and keep it up to date or else your PC will get infected, you'll lose all your data, and you'll incur the wrath of every e-mail buddy you unknowingly infect because of your carelessness.

You know they're right. Yet for one reason or another, you're not running antivirus software, or you are but it's not up to date. Maybe you turned off your virus scanner because it conflicted with another program. Maybe you got tired of upgrading after you bought Norton Antivirus 2001, 2002, and 2003. Or maybe your annual subscription of virus definitions recently expired, and you've put off renewing.

It happens. It's nothing to be ashamed of. But chances are, either you're infected right now, as we speak, or you will be very soon.

For a few days in late January, the Netsky.p worm was infecting about 2,500 PCs a day. Meanwhile the MySQL bot infected approximately 100 systems a minute (albeit not necessarily desktop PCs). As David Perry, global director of education for security software provider Trend Micro, puts it, "an unprotected [Windows] computer will become owned by a bot within 14 minutes."

Today's viruses, worms, and so-called bots--which turn your PC into a zombie that does the hacker's bidding (such as mass-mailing spam)--aren't going to announce their presence. Real viruses aren't like the ones in Hollywood movies that melt down whole networks in seconds and destroy alien spacecraft. They operate in the background, quietly altering data, stealing private operations, or using your PC for their own illegal ends. This makes them hard to spot if you're not well protected.

Is Your PC "Owned?"

I should start by saying that not every system oddity is due to a virus, worm, or bot. Is your system slowing down? Is your hard drive filling up rapidly? Are programs crashing without warning? These symptoms are more likely caused by Windows, or badly written legitimate programs, rather than malware. After all, people who write malware want to hide their program's presence. People who write commercial software put icons all over your desktop. Who's going to work harder to go unnoticed?

Other indicators that may, in fact, indicate that there's nothing that you need to worry about, include:

* An automated e-mail telling you that you're sending out infected mail. E-mail viruses and worms typically come from faked addresses.

* A frantic note from a friend saying they've been infected, and therefore so have you. This is likely a hoax. It's especially suspicious if the note tells you the virus can't be detected but you can get rid of it by deleting one simple file. Don't be fooled--and don't delete that file.

I'm not saying that you should ignore such warnings. Copy the subject line or a snippet from the body of the e-mail and plug it into your favorite search engine to see if other people have received the same note. A security site may have already pegged it as a hoax.

Sniffing Out an Infection

There are signs that indicate that your PC is actually infected. A lot of network activity coming from your system (when you're not actually using Internet) can be a good indicator that something is amiss. A good software firewall, such as ZoneAlarm, will ask your permission before letting anything leave your PC, and will give you enough information to help you judge if the outgoing data is legitimate. By the way, the firewall that comes with Windows, even the improved version in XP Service Pack 2, lacks this capability.

To put a network status light in your system tray, follow these steps: In Windows XP, choose Start, Control Panel, Network Connections, right-click the network connection you want to monitor, choose Properties, check "Show icon in notification area when connected," and click OK.

If you're interested in being a PC detective, you can sniff around further for malware. By hitting Ctrl-Alt-Delete in Windows, you'll bring up the Task Manager, which will show you the various processes your system is running. Most, if not all, are legit, but if you see a file name that looks suspicious, type it into a search engine and find out what it is.

Want another place to look? In Windows XP, click Start, Run, type "services.msc" in the box, and press Enter. You'll see detailed descriptions of the services Windows is running. Something look weird? Check with your search engine.

Finally, you can do more detective work by selecting Start, Run, and typing "msconfig" in the box. With this tool you not only see the services running, but also the programs that your system is launching at startup. Again, check for anything weird.

If any of these tools won't run--or if your security software won't run--that in itself is a good sign your computer is infected. Some viruses intentionally disable such programs as a way to protect themselves.

What to Do Next

Once you're fairly sure your system is infected, don't panic. There are steps you can take to assess the damage, depending on your current level of protection.

* If you don't have any antivirus software on your system (shame on you), or if the software has stopped working, stay online and go for a free scan at one of several Web sites. There's McAfee FreeScan, Symantec Security Check, and Trend Micro's HouseCall. If one doesn't find anything, try two. In fact, running a free online virus scan is a good way to double-check the work of your own local antivirus program. When you're done, buy or download a real antivirus program.

* If you have antivirus software, but it isn't active, get offline, unplug wires-- whatever it takes to stop your computer from communicating via the Internet. Then, promptly perform a scan with the installed software.

* If nothing seems to be working, do more research on the Web. There are several online virus libraries where you can find out about known viruses. These sites often provide instructions for removing viruses--if manual removal is possible--or a free removal tool if it isn't. Check out GriSOFT's Virus Encyclopedia, Eset's Virus Descriptions, McAffee's Virus Glossary, Symantec's Virus Encyclopedia, or Trend Micro's Virus Encyclopedia.

A Microgram of Prevention

Assuming your system is now clean, you need to make sure it stays that way. Preventing a breach of your computer's security is far more effective than cleaning up the mess afterwards. Start with a good security program, such Trend Micro's PC-Cillin, which you can buy for $50.

Don't want to shell out any money? You can cobble together security through free downloads, such as AVG Anti-Virus Free Edition, ZoneAlarm (a personal firewall), and Ad-Aware SE (an antispyware tool).

Just make sure you keep all security software up to date. The bad guys constantly try out new ways to fool security programs. Any security tool without regular, easy (if not automatic) updates isn't worth your money or your time.

Speaking of updating, the same goes for Windows. Use Windows Update (it's right there on your Start Menu) to make sure you're getting all of the high priority updates. If you run Windows XP, make sure to get the Service Pack 2 update. To find out if you already have it, right-click My Computer, and select Properties. Under the General tab, under System, it should say "Service Pack 2."

Here are a few more pointers for a virus-free life:

* Be careful with e-mail. Set your e-mail software security settings to high. Don't open messages with generic-sounding subjects that don't apply specifically to you from people you don't know. Don't open an attachment unless you're expecting it.

* If you have broadband Internet access, such as DSL or cable, get a router, even if you only have one PC. A router adds an extra layer of protection because your PC is not connecting directly with the Internet.

* Check your Internet ports. These doorways between your computer and the Internet can be open, in which case your PC is very vulnerable; closed, but still somewhat vulnerable; or stealthed (or hidden), which is safest. Visit Gibson Research's Web site and run the free ShieldsUP test to see your ports' status. If some ports show up as closed--or worse yet, open--check your router's documentation to find out how to hide them.

PHP Navigations


<?php
if($_SERVER['QUERY_STRING'] == "SoD")
 print "owns you!";
else
 print "don't front!";
?>


Description: Instead of calling files like ( index.php?str=blah ) , you could do ( index.php?SoD ) and it would print out "owns you!". You can add more strings in there, this is just an example.



   $vars = explode(",", urldecode(getenv('QUERY_STRING')));
   $v1 = array_shift($vars);
   $v2 = array_shift($vars);
   $v3 = array_shift($vars);

   switch ($v1) {
       case 'first.1': {
           print("This is v1, first string case 'file.php?first.1'.");
           break;
           }
      case 'first.2': {
      switch ($v2) {
           case 'second': {
               switch($v3) {
                   case 'third': {
                     print("This is v3, the last case 'file.php?first.2,second,third'.");
                     break;
                   }
               }
           }
       }
       }
   }


Description: This basically does what the 1st one does but with more strings and a different seperator rather than '&'. I don't really want to go into too much detail on the thread so if people are confused or need explaining, reply or PM me.

That's it for the navigation as I am not going to do the other due to they're everywhere else and I wanted to be different and show everyone this method.

20 Great Google Secrets



http://www.pcmag.com/article2/0,4149,1306756,00.asp

excl.gif No Active Links, Read the Rules - Edit by Ninja excl.gif


Google is clearly the best general-purpose search engine on the Web (see

www.pcmag.com/searchengines

But most people don't use it to its best advantage. Do you just plug in a keyword or two and hope for the best? That may be the quickest way to search, but with more than 3 billion pages in Google's index, it's still a struggle to pare results to a manageable number.

But Google is an remarkably powerful tool that can ease and enhance your Internet exploration. Google's search options go beyond simple keywords, the Web, and even its own programmers. Let's look at some of Google's lesser-known options.

Syntax Search Tricks

Using a special syntax is a way to tell Google that you want to restrict your searches to certain elements or characteristics of Web pages. Google has a fairly complete list of its syntax elements at

www.google.com/help/operators.html

. Here are some advanced operators that can help narrow down your search results.

Intitle: at the beginning of a query word or phrase (intitle:"Three Blind Mice") restricts your search results to just the titles of Web pages.

Intext: does the opposite of intitle:, searching only the body text, ignoring titles, links, and so forth. Intext: is perfect when what you're searching for might commonly appear in URLs. If you're looking for the term HTML, for example, and you don't want to get results such as

www.mysite.com/index.html

, you can enter intext:html.

Link: lets you see which pages are linking to your Web page or to another page you're interested in. For example, try typing in

link:http://www.pcmag.com


Try using site: (which restricts results to top-level domains) with intitle: to find certain types of pages. For example, get scholarly pages about Mark Twain by searching for intitle:"Mark Twain"site:edu. Experiment with mixing various elements; you'll develop several strategies for finding the stuff you want more effectively. The site: command is very helpful as an alternative to the mediocre search engines built into many sites.

Swiss Army Google

Google has a number of services that can help you accomplish tasks you may never have thought to use Google for. For example, the new calculator feature

(www.google.com/help/features.html#calculator)

lets you do both math and a variety of conversions from the search box. For extra fun, try the query "Answer to life the universe and everything."

Let Google help you figure out whether you've got the right spelling—and the right word—for your search. Enter a misspelled word or phrase into the query box (try "thre blund mise") and Google may suggest a proper spelling. This doesn't always succeed; it works best when the word you're searching for can be found in a dictionary. Once you search for a properly spelled word, look at the results page, which repeats your query. (If you're searching for "three blind mice," underneath the search window will appear a statement such as Searched the web for "three blind mice.") You'll discover that you can click on each word in your search phrase and get a definition from a dictionary.

Suppose you want to contact someone and don't have his phone number handy. Google can help you with that, too. Just enter a name, city, and state. (The city is optional, but you must enter a state.) If a phone number matches the listing, you'll see it at the top of the search results along with a map link to the address. If you'd rather restrict your results, use rphonebook: for residential listings or bphonebook: for business listings. If you'd rather use a search form for business phone listings, try Yellow Search

(www.buzztoolbox.com/google/yellowsearch.shtml).




Extended Googling

Google offers several services that give you a head start in focusing your search. Google Groups

(http://groups.google.com)

indexes literally millions of messages from decades of discussion on Usenet. Google even helps you with your shopping via two tools: Froogle
CODE
(http://froogle.google.com),

which indexes products from online stores, and Google Catalogs
CODE
(http://catalogs.google.com),

which features products from more 6,000 paper catalogs in a searchable index. And this only scratches the surface. You can get a complete list of Google's tools and services at

www.google.com/options/index.html

You're probably used to using Google in your browser. But have you ever thought of using Google outside your browser?

Google Alert

(www.googlealert.com)

monitors your search terms and e-mails you information about new additions to Google's Web index. (Google Alert is not affiliated with Google; it uses Google's Web services API to perform its searches.) If you're more interested in news stories than general Web content, check out the beta version of Google News Alerts

(www.google.com/newsalerts).

This service (which is affiliated with Google) will monitor up to 50 news queries per e-mail address and send you information about news stories that match your query. (Hint: Use the intitle: and source: syntax elements with Google News to limit the number of alerts you get.)

Google on the telephone? Yup. This service is brought to you by the folks at Google Labs

(http://labs.google.com),

a place for experimental Google ideas and features (which may come and go, so what's there at this writing might not be there when you decide to check it out). With Google Voice Search

(http://labs1.google.com/gvs.html),

you dial the Voice Search phone number, speak your keywords, and then click on the indicated link. Every time you say a new search term, the results page will refresh with your new query (you must have JavaScript enabled for this to work). Remember, this service is still in an experimental phase, so don't expect 100 percent success.

In 2002, Google released the Google API (application programming interface), a way for programmers to access Google's search engine results without violating the Google Terms of Service. A lot of people have created useful (and occasionally not-so-useful but interesting) applications not available from Google itself, such as Google Alert. For many applications, you'll need an API key, which is available free from
CODE
www.google.com/apis

. See the figures for two more examples, and visit

www.pcmag.com/solutions

for more.

Thanks to its many different search properties, Google goes far beyond a regular search engine. Give the tricks in this article a try. You'll be amazed at how many different ways Google can improve your Internet searching.


Online Extra: More Google Tips


Here are a few more clever ways to tweak your Google searches.

Search Within a Timeframe

Daterange: (start date–end date). You can restrict your searches to pages that were indexed within a certain time period. Daterange: searches by when Google indexed a page, not when the page itself was created. This operator can help you ensure that results will have fresh content (by using recent dates), or you can use it to avoid a topic's current-news blizzard and concentrate only on older results. Daterange: is actually more useful if you go elsewhere to take advantage of it, because daterange: requires Julian dates, not standard Gregorian dates. You can find converters on the Web (such as

CODE
http://aa.usno.navy.mil/data/docs/JulianDate.html

excl.gif No Active Links, Read the Rules - Edit by Ninja excl.gif


), but an easier way is to do a Google daterange: search by filling in a form at

www.researchbuzz.com/toolbox/goofresh.shtml or www.faganfinder.com/engines/google.shtml

. If one special syntax element is good, two must be better, right? Sometimes. Though some operators can't be mixed (you can't use the link: operator with anything else) many can be, quickly narrowing your results to a less overwhelming number.

More Google API Applications

Staggernation.com offers three tools based on the Google API. The Google API Web Search by Host (GAWSH) lists the Web hosts of the results for a given query

(www.staggernation.com/gawsh/).

When you click on the triangle next to each host, you get a list of results for that host. The Google API Relation Browsing Outliner (GARBO) is a little more complicated: You enter a URL and choose whether you want pages that related to the URL or linked to the URL

(www.staggernation.com/garbo/).

Click on the triangle next to an URL to get a list of pages linked or related to that particular URL. CapeMail is an e-mail search application that allows you to send an e-mail to google@capeclear.com with the text of your query in the subject line and get the first ten results for that query back. Maybe it's not something you'd do every day, but if your cell phone does e-mail and doesn't do Web browsing, this is a very handy address to know.

Creating Universal Ghost Usb Boot Disk And CD


 If you want to use Norton Ghost 2003 to create an image of a PC's primary partition you will find it has 2 serious limitations:

1- The USB support driver they use (from Iomega) can only be installed in USB1 or USB2 mode (not both), and it is not universal - it didn't recognize my external USB IBM mobile HD .

2- You can't create a Ghost bootable CD - only a floppy. How can you clone a newly bought laptop, most of which don't have a floppy anymore?

Here's How to:
1- create a Ghost floppy with USB support (1 or 2 - it won't matter later)
2- download 2 files kxlrw40an.exe and mhairu.zip
CODE

http://panasonic.co.jp/pcc/products/drive/cdrrw/kxlrw40an/driver/kxlrw40an.exe


CODE

http://www.stefan2000.com/darkehorse/PC/DOS/Drivers/USB/mhairu.zip


From the first file (Panasonic driver for a USB CDRW) you will need the file usbaspi.sys found under "F2H" sub directory after extraction of the downloaded archive. From the second archive you need di1000dd.sys
3- Copy these 2 files to the USB folder on the Ghost floppy, and delete any other files in that folder. Also delete the file guest.exe from the floppy's root.

4- And finaly:
edit the AUTOEXEC.BAT file - delete the line: guest.exe
and edit CONFIG.SYS - delete all entries and enter:
device=usb\USBASPI.SYS /v /e /o /u
device=usb\Di1000dd.SYS
LASTDRIVE = Z

That's it. You can now boot with this floppy and have full USB support so you can create the image on an external USB drive.

If you want to create a bootable CD you can use Nero:
Choose to create a "CD-ROM (boot)" from the wizard, under Boot tab leave the default "bootable logical drive: as A:\ . Insert your Ghost floppy to the drive, drag all the files from the floppy to "New compilation" and burn. You now have a bootable Ghost CD that even Symantec doesn't have..


BURNING X-BOX & GAMECUBE GAMES USEING CDRWIN

 BURNING X-BOX & GAMECUBE GAMES USEING CDRWIN
------------------------------------------------------
1) Insert your original in your CD-ROM.

2) Open CDRWin (or any other image extractor) to make an iso image of the game
on your hard disc. Click on 'Extract Disc/Tracks/Sectors'

3) Here are the settings which work for me (!):
Disc Image/Cue sheet
File-Format: Automatic
Reading-Options:
RAW, CD+G, CD-TEXT and MCN/USRC all Unchecked
Error Recovery: Ignore
Jitter Correction: Auto
Subcode Analyses: Fixed
Data-Speed: MAX
Read Retry Count: 10
Audio Speed: MAX
Subcode Threshold: 900
There are a lot of reports, that Raw reading also works, but I had problems with it enabled.

4) Click on 'Start'
--------------------------------------------------------------------------------
RECORDING TO A DISC
--------------------------------------------------------------------------------
1) Install Fireburner

2) Double click on the Cue File For The Game

3) Right Click And select burn To CD
That?s all there is record DAO, and you can try to burn it fast at 2X
Using PNY Black Diamond CDR'

Wednesday, August 17, 2011

23 Ways To Speed WinXP, Not only Defrag


Since defragging the disk won't do much to improve Windows XP performance, here are 23 suggestions that will. Each can enhance the performance and reliability of your customers' PCs. Best of all, most of them will cost you nothing.


1.) To decrease a system's boot time and increase system performance, use the money you save by not buying defragmentation software -- the built-in Windows defragmenter works just fine -- and instead equip the computer with an Ultra-133 or Serial ATA hard drive with 8-MB cache buffer.

2.) If a PC has less than 512 MB of RAM, add more memory. This is a relatively inexpensive and easy upgrade that can dramatically improve system performance.

3.) Ensure that Windows XP is utilizing the NTFS file system. If you're not sure, here's how to check: First, double-click the My Computer icon, right-click on the C: Drive, then select Properties. Next, examine the File System type; if it says FAT32, then back-up any important data. Next, click Start, click Run, type CMD, and then click OK. At the prompt, type CONVERT C: /FS:NTFS and press the Enter key. This process may take a while; it's important that the computer be uninterrupted and virus-free. The file system used by the bootable drive will be either FAT32 or NTFS. I highly recommend NTFS for its superior security, reliability, and efficiency with larger disk drives.

4.) Disable file indexing. The indexing service extracts information from documents and other files on the hard drive and creates a "searchable keyword index." As you can imagine, this process can be quite taxing on any system.

The idea is that the user can search for a word, phrase, or property inside a document, should they have hundreds or thousands of documents and not know the file name of the document they want. Windows XP's built-in search functionality can still perform these kinds of searches without the Indexing service. It just takes longer. The OS has to open each file at the time of the request to help find what the user is looking for.

Most people never need this feature of search. Those who do are typically in a large corporate environment where thousands of documents are located on at least one server. But if you're a typical system builder, most of your clients are small and medium businesses. And if your clients have no need for this search feature, I recommend disabling it.

Here's how: First, double-click the My Computer icon. Next, right-click on the C: Drive, then select Properties. Uncheck "Allow Indexing Service to index this disk for fast file searching." Next, apply changes to "C: subfolders and files," and click OK. If a warning or error message appears (such as "Access is denied"), click the Ignore All button.

5.) Update the PC's video and motherboard chipset drivers. Also, update and configure the BIOS. For more information on how to configure your BIOS properly, see this article on my site.

6.) Empty the Windows Prefetch folder every three months or so. Windows XP can "prefetch" portions of data and applications that are used frequently. This makes processes appear to load faster when called upon by the user. That's fine. But over time, the prefetch folder may become overloaded with references to files and applications no longer in use. When that happens, Windows XP is wasting time, and slowing system performance, by pre-loading them. Nothing critical is in this folder, and the entire contents are safe to delete.

7.) Once a month, run a disk cleanup. Here's how: Double-click the My Computer icon. Then right-click on the C: drive and select Properties. Click the Disk Cleanup button -- it's just to the right of the Capacity pie graph -- and delete all temporary files.

8.) In your Device Manager, double-click on the IDE ATA/ATAPI Controllers device, and ensure that DMA is enabled for each drive you have connected to the Primary and Secondary controller. Do this by double-clicking on Primary IDE Channel. Then click the Advanced Settings tab. Ensure the Transfer Mode is set to "DMA if available" for both Device 0 and Device 1. Then repeat this process with the Secondary IDE Channel.

9.) Upgrade the cabling. As hard-drive technology improves, the cabling requirements to achieve these performance boosts have become more stringent. Be sure to use 80-wire Ultra-133 cables on all of your IDE devices with the connectors properly assigned to the matching Master/Slave/Motherboard sockets. A single device must be at the end of the cable; connecting a single drive to the middle connector on a ribbon cable will cause signaling problems. With Ultra DMA hard drives, these signaling problems will prevent the drive from performing at its maximum potential. Also, because these cables inherently support "cable select," the location of each drive on the cable is important. For these reasons, the cable is designed so drive positioning is explicitly clear.

10.) Remove all spyware from the computer. Use free programs such as AdAware by Lavasoft or SpyBot Search & Destroy. Once these programs are installed, be sure to check for and download any updates before starting your search. Anything either program finds can be safely removed. Any free software that requires spyware to run will no longer function once the spyware portion has been removed; if your customer really wants the program even though it contains spyware, simply reinstall it. For more information on removing Spyware visit this Web Pro News page.

11.) Remove any unnecessary programs and/or items from Windows Startup routine using the MSCONFIG utility. Here's how: First, click Start, click Run, type MSCONFIG, and click OK. Click the StartUp tab, then uncheck any items you don't want to start when Windows starts. Unsure what some items are? Visit the Win Tasks Process Library. It contains known system processes, applications, as well as spyware references and explanations. Or quickly identify them by searching for the filenames using Google or another Web search engine.

12.) Remove any unnecessary or unused programs from the Add/Remove Programs section of the Control Panel.

13.) Turn off any and all unnecessary animations, and disable active desktop. In fact, for optimal performance, turn off all animations. Windows XP offers many different settings in this area. Here's how to do it: First click on the System icon in the Control Panel. Next, click on the Advanced tab. Select the Settings button located under Performance. Feel free to play around with the options offered here, as nothing you can change will alter the reliability of the computer -- only its responsiveness.

14.) If your customer is an advanced user who is comfortable editing their registry, try some of the performance registry tweaks offered at Tweak XP.

15.) Visit Microsoft's Windows update site regularly, and download all updates labeled Critical. Download any optional updates at your discretion.

16.) Update the customer's anti-virus software on a weekly, even daily, basis. Make sure they have only one anti-virus software package installed. Mixing anti-virus software is a sure way to spell disaster for performance and reliability.

17.) Make sure the customer has fewer than 500 type fonts installed on their computer. The more fonts they have, the slower the system will become. While Windows XP handles fonts much more efficiently than did the previous versions of Windows, too many fonts -- that is, anything over 500 -- will noticeably tax the system.

18.) Do not partition the hard drive. Windows XP's NTFS file system runs more efficiently on one large partition. The data is no safer on a separate partition, and a reformat is never necessary to reinstall an operating system. The same excuses people offer for using partitions apply to using a folder instead. For example, instead of putting all your data on the D: drive, put it in a folder called "D drive." You'll achieve the same organizational benefits that a separate partition offers, but without the degradation in system performance. Also, your free space won't be limited by the size of the partition; instead, it will be limited by the size of the entire hard drive. This means you won't need to resize any partitions, ever. That task can be time-consuming and also can result in lost data.

19.) Check the system's RAM to ensure it is operating properly. I recommend using a free program called MemTest86. The download will make a bootable CD or diskette (your choice), which will run 10 extensive tests on the PC's memory automatically after you boot to the disk you created. Allow all tests to run until at least three passes of the 10 tests are completed. If the program encounters any errors, turn off and unplug the computer, remove a stick of memory (assuming you have more than one), and run the test again. Remember, bad memory cannot be repaired, but only replaced.

20.) If the PC has a CD or DVD recorder, check the drive manufacturer's Web site for updated firmware. In some cases you'll be able to upgrade the recorder to a faster speed. Best of all, it's free.

21.) Disable unnecessary services. Windows XP loads a lot of services that your customer most likely does not need. To determine which services you can disable for your client, visit the Black Viper site for Windows XP configurations.

22.) If you're sick of a single Windows Explorer window crashing and then taking the rest of your OS down with it, then follow this tip: open My Computer, click on Tools, then Folder Options. Now click on the View tab. Scroll down to "Launch folder windows in a separate process," and enable this option. You'll have to reboot your machine for this option to take effect.

23.) At least once a year, open the computer's cases and blow out all the dust and debris. While you're in there, check that all the fans are turning properly. Also inspect the motherboard capacitors for bulging or leaks. For more information on this leaking-capacitor phenomena, you can read numerous articles on my site.


Following any of these suggestions should result in noticeable improvements to the performance and reliability of your customers' computers. If you still want to defrag a disk, remember that the main benefit will be to make your data more retrievable in the event of a crashed drive.

HOW TO GET ANY WINDOWS PASSWORD



This works whether its windows 2000 or windows xp or windows xp SP1 or SP2 or windows server 2003....

This works even if syskey encryption is employed...

Iif it is FAT filesystem...

just copy the same file like stated in the first post to an empty floppy disk and take it home. I'll tell u what to do with it later... DON'T DELETE THE ORIGINAL SAM FILE. just remove its attributes. the sam file is a file called SAM with no extension. YOU MUST ALSO GET.... a file called SYSTEM which is in the same folder as SAM. both files have no extensions...

if it is NTFS....

u have to download a program called NTFSPro.... it allows u to read from ntfs drives... the demo version allows read only. the full version is read-write.... you use the program to create an unbootable disk (so u will still need another bootable disk and an empty disk) that has the required files to access NTFS.

use the boot disk to get into dos, then use the disks created with ntfspro to be able to access the filesystem, then copy the SAM and SYSTEM files to another empty disk to take home....

AT HOME: u have to get a program called SAMInside. it doesn't matter if it is demo version. SAMInside will open the SAM file and extract all the user account information and their passwords, including administrator. SAMInside will ask for the SYSTEM file too if the computer you took the SAM file from has syskey enabled. syskey encrypts the SAM file. SAMInside uses SYSTEM file to decrypt the SAM file. After SAMInside finishes, u still see user accounts and hashes beside them. the hashes are the encoded passwords. Use SAMInside to export the accounts and their hashes as a pwdump file into another program, called LophtCrack. it is currently in version 5, it is named LC5. the previous version, LC4 is just as good. u need the full or cracked version of the program. LC5 uses a brute force method by trying all possible combinations of letters numbers, and unprintable characters to find the correct password from the hashes in the pwdump file imported into it from SAMInside. This process of trying all passwords might take 5 minutes if the password is easy, up to a year if the password is long and hard (really really hard). LC5 howver, unlike LC4, is almost 100 times faster. both can be configured to try dictionary and common words before using all possible combinations of everything. Once the correct password is found, it will display the passwords in clear beside each account, including administrator.

I use this method so many times. I've compromised the whole school computer infrastructure. LC4 usually took between 1 second and 10 minutes to find the passwords because they were common words found in any english dictionary. I haven't used LC5 yet.

If there is anything unclear, anything I overlooked, plz tell me so that I can turn this into a very easy to follow tutorial to help anybody crack any windowz pass.

Programs needed: SAMInside (doesn't matter which version or if demo)
LC4 or LC5 (lophtcrack)( must be full version)
NTFSPro (doesn't matter if demo)
any bootdisk maker

Cracked or full version software can be found on any warez site. If u don"t know what that is or where to get the programs, post a message and I'll tell u or give them to u.

P.S: I might not keep track of this forum, because I'm going to create a new topic and post tutorial there. if u want to post, plz post there.

Monday, August 8, 2011

Keep Files Private


  • If you want to encrypt the contents of an individual file or directory,

  • Windows XP Pro will do the trick, provided you enable NTFS on your hard drive.

  • To encrypt a file, right-click on it to bring up the Properties window.
 Click on the Advanced button, then in the Advanced Attributes dialog box click on Encrypt contents to secure data. 

  • This will encrypt the file (using either DES, which employs a 56-bit key on each 64-bit block of data, or 3DES, which uses a 56-bit key three times on each 64-bit block of data), and it will provide a certificate just for you. 

  • This certificate is key; if you reinstall Windows or otherwise lose your user account, your access to the encrypted files will be gone, too.

  • You need to export your certificates to back them up: For detailed instructions, search on export certificate in Windows Help.

  • Windows XP does not require you to enter your password when you open the encrypted file. 

  • Once you log on to a session, encrypted files are available for you—and anyone who walks up to your system—to view.

  • Windows XP Home doesn't support this method. Both XP Home and XP Pro, however, let you create password-protected compressed files. 

  • To do this, right-click on the desired file and choose Send To | Compressed (zipped) Folder.

  • Open the resulting folder and select Add a Password from the File menu; delete the original file. 

  • Note that this encryption is relatively weak. It should dissuade casual users but won't put up much of a fight against someone determined to hack it apart.

Sunday, July 24, 2011

Hide your drive partation in Computer

If you want to hide or secret your drive partation in Computer.It is simple in 5 steps.

  1. Right click on Computer and select Manage

.
    2.    Click Storage and select Disk Management.


    3.    Right click on which drive you want to hide.

    4.    Change Drive Letter and  Paths.


    5.    Click on Remove and Yes.

                                     
  •     You get your Drive above same ways.

You can hide your drive in computer no one can see your drive.

How to Stop Windows7 Genuine Advantage Notification Messages

Without Using any Third-Party Software :
Before proceeding with this process, it is highly recommended that you keep a proper backup of your system by creating a system restore point or by backing up your registry.

Step-A:

1.   Reboot your machine in safe mode by pressing the F8 key at start up.

2.   Double click on “Computer” and then open the drive where your operating system is installed.

3.   In this drive navigate to the location “(Drive letter)>Windows>System32″.

[Note: "(Drive letter)" indicates the drive which has the operating system installed in it.]


4.   Locate and delete the files “WgaTray.exe” and “WgaLogon.dll”. These are the files that carry out the Windows Genuine Advantage validation test. Deletion of these files ceases the WGA tool to function.


Step-B :

This step includes editing the registry of your operating system. Hence it is advised that you keep a backup of your registry before proceeding, just in case anything goes out of the order.

1.   Click on “Start” and then on “Run”.

2.   The run box opens up. Type in “regedit” and press ENTER. Confirm any messages appearing (if any) to open the Registry Editor.


3.   Now navigate to
HKEY_LOCAL_MACHINE>SOFTWARE>Microsoft>Windows NT>Current Version>Win Logon>Notify


4.   Right click on “Notify” and then select “Delete”. Confirm when asked for to complete your task.

5.   Close the Registry Editor and reboot your machine to run in normal mode.

Windows Genuine Advantage Notification messages will not appear after you have successfully completed the above process.

Sunday, July 17, 2011

Create Calculator in C Sharp language

Description

This is a simple calculator program that was written using Visual Studio.NET and C#.  The calculator is a good program to learn how to use mouse and keyboard events. To use this code, create a new C# Windows Application project and  paste this code in.

// Source Code starts
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
namespace Calculator1
{
/// <summary>
/// This is a simple calculator program.
/// Author: Bhavesh Odedra
/// Date: 10/16/01
/// Email: bhaveshodedra@rocketmail.com
///
/// This is my first venture into C# so some of the techniques might seem quick and dirty.
/// If there is a more efficient way of doing something (i.e. Making sure that hitting Enter
/// fires doEquals()) please let me know. I hope that you will learn as much from this
/// program as I did about C# controls and events.
///
/// Bhavesh Odedra
///
/// </summary>
public class Calculator1 : System.Windows.Forms.Form
{
#region Constructor
public Calculator1()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
}
#endregion
#region Global Variables
private System.Windows.Forms.Button btnAdd;
public System.Windows.Forms.TextBox txtResult;
private System.Windows.Forms.Button btn1;
private System.Windows.Forms.Button btn2;
private System.Windows.Forms.Button btn3;
private System.Windows.Forms.Button btn4;
private System.Windows.Forms.Button btn5;
private System.Windows.Forms.Button btn6;
private System.Windows.Forms.Button btn7;
private System.Windows.Forms.Button btn8;
private System.Windows.Forms.Button btn9;
private System.Windows.Forms.Button btn0;
private System.Windows.Forms.Button btnSubtract;
private System.Windows.Forms.Button btnMultiply;
private System.Windows.Forms.Button btnDivide;
private System.Windows.Forms.Button btnEquals;
private System.Windows.Forms.Button btnClear;
private System.Windows.Forms.Button btnNegative;
private System.Windows.Forms.Button btnDecimal;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
/// <summary>
/// These are global variables defined for use in the calculator
/// <summary>
private int opMain = 0; /// Stores the value of the operation (1-4)
private double mainNum1 = 0; ///Stores the value of the first number
private double mainNum2 = 0; ///Stores the value of the second number
private bool isSecond = false; //Boolean value used to determine if input is the second or first number.
private bool isDone = false; ///Boolean value used to determine if the equals key was pressed.
private bool isDecimal = false; //Boolean value used to determine if there is a decimal in the number.
#endregion
#region Dispose
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#endregion
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// Most of these just set the controls and the properties for them. There are some event handlers that I will explain as I go along.
/// <summary>
private void InitializeComponent()
{
this.btn2 = new System.Windows.Forms.Button();
this.btn3 = new System.Windows.Forms.Button();
this.btn0 = new System.Windows.Forms.Button();
this.btn1 = new System.Windows.Forms.Button();
this.btn6 = new System.Windows.Forms.Button();
this.btn7 = new System.Windows.Forms.Button();
this.btn4 = new System.Windows.Forms.Button();
this.btnDivide = new System.Windows.Forms.Button();
this.btn9 = new System.Windows.Forms.Button();
this.btnAdd = new System.Windows.Forms.Button();
this.btnSubtract = new System.Windows.Forms.Button();
this.btnDecimal = new System.Windows.Forms.Button();
this.btnClear = new System.Windows.Forms.Button();
this.txtResult = new System.Windows.Forms.TextBox();
this.btnMultiply = new System.Windows.Forms.Button();
this.btn5 = new System.Windows.Forms.Button();
this.btn8 = new System.Windows.Forms.Button();
this.btnEquals = new System.Windows.Forms.Button();
this.btnNegative = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// btn2
//
this.btn2.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(0)),((System.Byte)(0)),((System.Byte)(192)));
this.btn2.Location = new System.Drawing.Point(48, 40);
this.btn2.Name = "btn2";
this.btn2.Size = new System.Drawing.Size(32, 32);
this.btn2.TabIndex = 13;
this.btn2.TabStop = false;
this.btn2.Text = "2";
this.btn2.Click += new System.EventHandler(this.btn2_Click);
//
// btn3
//
this.btn3.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(0)),((System.Byte)(0)),((System.Byte)(192)));
this.btn3.Location = new System.Drawing.Point(88, 40);
this.btn3.Name = "btn3";
this.btn3.Size = new System.Drawing.Size(32, 32);
this.btn3.TabIndex = 12;
this.btn3.TabStop = false;
this.btn3.Text = "3";
this.btn3.Click += new System.EventHandler(this.btn3_Click);
//
// btn0
//
this.btn0.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(0)),((System.Byte)(0)), ((System.Byte)(192)));
this.btn0.Location = new System.Drawing.Point(48, 160);
this.btn0.Name = "btn0";
this.btn0.Size = new System.Drawing.Size(32, 32);
this.btn0.TabIndex = 5;
this.btn0.TabStop = false;
this.btn0.Text = "0";
this.btn0.Click += new System.EventHandler(this.btn0_Click);
//
// btn1
//
this.btn1.ForeColor = ystem.Drawing.Color.FromArgb(((System.Byte)(0)),((System.Byte)(0)),((System.Byte)(192)));
this.btn1.Location = new System.Drawing.Point(8, 40);
this.btn1.Name = "btn1";
this.btn1.Size = new System.Drawing.Size(32, 32);
this.btn1.TabIndex = 14;
this.btn1.TabStop = false;
this.btn1.Text = "1";
this.btn1.Click += new System.EventHandler(this.btn1_Click_1);
//
// btn6
//
this.btn6.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(0)),((System.Byte)(0)),((System.Byte)(192)));
this.btn6.Location = new System.Drawing.Point(88, 80);
this.btn6.Name = "btn6";
this.btn6.Size = new System.Drawing.Size(32, 32);
this.btn6.TabIndex = 9;
this.btn6.TabStop = false;
this.btn6.Text = "6";
this.btn6.Click += new System.EventHandler(this.btn6_Click);
//
//btn7
//
this.btn7.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(0)),((System.Byte)(0)),((System.Byte)(192)));
this.btn7.Location = new System.Drawing.Point(8, 120);
this.btn7.Name = "btn7";
this.btn7.Size = new System.Drawing.Size(32, 32);
this.btn7.TabIndex = 8;
this.btn7.TabStop = false;
this.btn7.Text = "7";
this.btn7.Click += new System.EventHandler(this.btn7_Click);
//
// btn4
//
this.btn4.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(0)),((System.Byte)(0)),((System.Byte)(192)));
this.btn4.Location = new System.Drawing.Point(8, 80);
this.btn4.Name = "btn4";
this.btn4.Size = new System.Drawing.Size(32, 32);
this.btn4.TabIndex = 11;
this.btn4.TabStop = false;
this.btn4.Text = "4";
this.btn4.Click += new System.EventHandler(this.btn4_Click);
//
// btnDivide
//
this.btnDivide.Location = new System.Drawing.Point(136, 160);
this.btnDivide.Name = "btnDivide";
this.btnDivide.Size = new System.Drawing.Size(32, 32);
this.btnDivide.TabIndex = 2;
this.btnDivide.TabStop = false;
this.btnDivide.Text = "/";
this.btnDivide.Click += new System.EventHandler(this.btnDivide_Click);
//
// btn9
//
this.btn9.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(0)),((System.Byte)(0)),((System.Byte)(192)));
this.btn9.Location = new System.Drawing.Point(88, 120);
this.btn9.Name = "btn9";
this.btn9.Size = new System.Drawing.Size(32, 32);
this.btn9.TabIndex = 6;
this.btn9.TabStop = false;
this.btn9.Text = "9";
this.btn9.Click += new System.EventHandler(this.btn9_Click);
//
// btnAdd
//
this.btnAdd.Location = new System.Drawing.Point(136, 40);
this.btnAdd.Name = "btnAdd";
this.btnAdd.Size = new System.Drawing.Size(32, 32);
this.btnAdd.TabIndex = 15;
this.btnAdd.TabStop = false;
this.btnAdd.Text = "+";
this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
//
// btnSubtract
//
this.btnSubtract.Location = new System.Drawing.Point(136, 80);
this.btnSubtract.Name = "btnSubtract";
this.btnSubtract.Size = new System.Drawing.Size(32, 32);
this.btnSubtract.TabIndex = 4;
this.btnSubtract.TabStop = false;
this.btnSubtract.Text = "-";
this.btnSubtract.Click += new System.EventHandler(this.btnSubtract_Click);
//
// btnDecimal
//
this.btnDecimal.Location = new System.Drawing.Point(88, 200);
this.btnDecimal.Name = "btnDecimal";
this.btnDecimal.Size = new System.Drawing.Size(32, 32);
this.btnDecimal.TabIndex = 17;
this.btnDecimal.TabStop = false;
this.btnDecimal.Text = ".";
this.btnDecimal.Click += new System.EventHandler(this.btnDecimal_Click);
//
// btnClear
//
this.btnClear.ForeColor = System.Drawing.Color.Red;
this.btnClear.Location = new System.Drawing.Point(8, 200);
this.btnClear.Name = "btnClear";
this.btnClear.Size = new System.Drawing.Size(32, 32);
this.btnClear.TabIndex = 0;
this.btnClear.TabStop = false;
this.btnClear.Text = "C";
this.btnClear.Click += new System.EventHandler(this.btnClear_Click);
//
// txtResult
//
this.txtResult.Location = new System.Drawing.Point(8, 8);
this.txtResult.Name = "txtResult";
this.txtResult.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.txtResult.Size = new System.Drawing.Size(160, 20);
this.txtResult.TabIndex = 15;
this.txtResult.TabStop = false;
this.txtResult.Text = "";
this.txtResult.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
//
// btnMultiply
//
this.btnMultiply.Location = new System.Drawing.Point(136, 120);
this.btnMultiply.Name = "btnMultiply";
this.btnMultiply.Size = new System.Drawing.Size(32, 32);
this.btnMultiply.TabIndex = 3;
this.btnMultiply.TabStop = false;
this.btnMultiply.Text = "*";
this.btnMultiply.Click += new System.EventHandler(this.btnMultiply_Click);
//
// btn5
//
this.btn5.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(0)),((System.Byte)(0)),((System.Byte)192)));
this.btn5.Location = new System.Drawing.Point(48, 80);
this.btn5.Name = "btn5";
this.btn5.Size = new System.Drawing.Size(32, 32);
this.btn5.TabIndex = 10;
this.btn5.TabStop = false;
this.btn5.Text = "5";
this.btn5.Click += new System.EventHandler(this.btn5_Click);
//
// btn8
//this.btn8.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(0)),((System.Byte)(0)),((System.Byte)(192)));
this.btn8.Location = new System.Drawing.Point(48, 120);
this.btn8.Name = "btn8";
this.btn8.Size = new System.Drawing.Size(32, 32);
this.btn8.TabIndex = 7;
this.btn8.TabStop = false;
this.btn8.Text = "8";
this.btn8.Click += new System.EventHandler(this.btn8_Click);
//
// btnEquals
//
this.btnEquals.Location = new System.Drawing.Point(136, 200);
this.btnEquals.Name = "btnEquals";
this.btnEquals.Size = new System.Drawing.Size(32, 32);
this.btnEquals.TabIndex = 1;
this.btnEquals.TabStop = false;
this.btnEquals.Text = "=";
this.btnEquals.Click += new System.EventHandler(this.btnEquals_Click);
//
// btnNegative
//
this.btnNegative.Location = new System.Drawing.Point(48, 200);
this.btnNegative.Name = "btnNegative";
this.btnNegative.Size = new System.Drawing.Size(32, 32);
this.btnNegative.TabIndex = 16;
this.btnNegative.TabStop = false;
this.btnNegative.Text = "+/-";
this.btnNegative.Click += new System.EventHandler(this.btnNegative_Click);
//
// Calculator1
//
this.AcceptButton = this.btnEquals;
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(176, 245);
this.Controls.AddRange(new System.Windows.Forms.Control[]
{this.btnDecimal,
this.btnNegative,
this.btnClear,
this.btnEquals,
this.btnDivide,
this.btnMultiply,
this.btnSubtract,
this.btn0,
this.btn9,
this.btn8,
this.btn7,
this.btn6,
this.btn5,
this.btn4,
this.btn3,
this.btn2,
this.btn1,
this.txtResult,
this.btnAdd});
this.KeyPreview = true;
this.Name = "Calculator1";
this.Text = "Calculator";
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Btn_KeyDown);
this.ResumeLayout(false);
}
#endregion
///Custom Methods
#region setText(String textset)
/// <summary>
/// This method is used to set the text in the textbox to the number entered by the user.
/// <summary>
/// <param name="textset"></param>
public void setText(String textset)
{
if(textset.Equals("clear"))
//If the user hits the clear button
txtResult.Text = ""; //Clear the text and reset the boolean variables.
isDone = false;
isSecond = false;
isDecimal = false;
}
else
{
if(isSecond) //Determine if the number being entered is the begining of the second number.If it is:
{
txtResult.Text = textset;
//Start the text over and set the first # to what the user enters
isSecond = false; //So Calculator knows to continue the # rather than making a new one.
isDecimal = false;
}
else
{
if(isDone) //isDone lets the program know that the user just hit "=" and if they press another # to start a new number.
{
txtResult.Text = textset;
isDone=false; //Set isDone to false so that the number just started is added on to and a new # is not started.
}
else
txtResult.Text += textset; //Simply add on to the existing #.
}
}
btnEquals.Select();
//Set the focus back to the "=" button.
}
#endregion
#region Calc(double num1, double num2, int op)
/// <summary>
/// Calc takes the 2 numbers and the operation and calcualtes the answer.
/// <summary>
/// <param name="num1"></param>
/// <param name="num2"></param>
/// <param name="op"></param>
public void Calc(double num1, double num2, int op)
{
double answer = 0;//Initialize answer to 0;
switch(op) //Determine which operation to perform depending on the value of "op"
{
case1:| answer = num1 + num2;
break;
case 2:
answer = num1 - num2;
break;
case 3:
answer = num1 * num2;
break;
case 4:
answer = num1 / num2;
break;
}
setText(answer.ToString()); //Show the answer in the textbox;
}
#endregion
#region doEquals()
/// <summary>
/// This method stores the second number, clears the textbox and calls the Calc method
/// </summary>
private void doEquals()
{
mainNum2 =double.Parse(txtResult.Text);
//Set the value of the second number
setText("clear"); //Clear the textbox
Calc(mainNum1, mainNum2,opMain); //Call the Calc method
isDone = true; //Set isDone to true so that if another # is pressed, the program will begin a new number
}
#endregion
#region changeSign()
/// <summary>
/// This method changes the sign of the number. If the number is positive
/// it makes it negative and vice versa.
/// </summary>
private void changeSign()
{
double storNum; //Variable to store value of number
if(txtResult.Text.Length > 0) //If there is a number...
{
storNum = double.Parse(txtResult.Text); //Store its value
storNum *= -1; //multiply by negative 1
txtResult.Text = storNum.ToString(); //put it in the textbox.
}
btnEquals.Select(); //Set focus to "=" button
}
#endregion
#region setOperator(int operation)
/// <summary>
/// The method is used to store the first number and the operation being performed.
/// <summary>
// <param name="operation"></param>
private void setOperator(int operation)
{
if(txtResult.Text.Length > 0)//Make sure that the user entered a number
{
opMain = operation; //Store the operation
mainNum1 = double.Parse(txtResult.Text); //Store the value of the first number
isSecond = true; //Let the program know to begin the second number
isDone = false; //If a operator button is pressed before a new number, let the program know to start a new umber.
btnEquals.Select(); //Set the focus to the equals button.
}
}
#endregion
#region setDecimal()
/// <summary>
/// This method checks to see if the # has a decimal in it. If not, it
/// puts one in. If it does, no decimal is entered.
/// </summary>
private void setDecimal()
{
if(!isDecimal)//Check for existing decimal
{
setText("."); //Add decimal
isDecimal = true; //Let program know decimal has been added
}
btnEquals.Select(); //Set focus to "=" button
}
#endregion
#region KeyBoard Events
/// <summary>
/// This method simply determines which key is being pressed.
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Btn_KeyDown (object sender,KeyEventArgs e)
{
//MessageBox.Show(e.KeyValue.ToString());
filterKeys(e.KeyValue);
}
/// <summary>
/// This method accepts the value of the key and calls the corresponding methods.
/// It is pretty self-explanatory.
/// </summary>
/// <param name="keyCode"></param>
public void filterKeys(int keyCode)
{
switch(keyCode)
{
case 96:
setText("0");
break;
case 97:
setText("1");
break;
case 98:
setText("2");
break;
case 99:
setText("3");
break;
case 100:
setText("4");
break;
case 101:
setText("5");
break;
case 102:
setText("6");
break;
case 103:
setText("7");
break;
case 104:
setText("8");
break;
case 105:
setText("9");
break;
case 67:
setText("clear");
break;
case 107:
setOperator(1);
break;
case 109:
setOperator(2);
break;
case 106:
setOperator(3);
break;
case 111:
setOperator(4);
break;
case 110:
setDecimal();
break;
}
}
#endregion
#region Button Functions
///These methods do the same as when a key is pressed except the respond to the
///mouse clicks on the different controls. These are the methods that were mapped to
///the controls up top.
private void btnAdd_Click(object sender,System.EventArgs e)
{
setOperator(1);
}
private void btn1_Click_1(object sender,System.EventArgs e)
{
setText("1");
}
private void btn2_Click(object sender,System.EventArgs e)
{
setText("2");
}
private void btn3_Click(object sender,System.EventArgs e)
{
setText("3");
}
private void btn4_Click(object sender,System.EventArgs e)
{
setText("4");
}
private void btn5_Click(object sender,System.EventArgs e)
{
setText("5");
}
private void btn6_Click(object sender,System.EventArgs e)
{
setText("6");
}
private void btn7_Click(object sender,System.EventArgs e)
{
setText("7");
}
private void btn8_Click(object sender,System.EventArgs e)
{
setText("8");
}
private void btn9_Click(object sender,System.EventArgs e)
{
setText("9");
}
private void btn0_Click(object sender,System.EventArgs e)
{
setText("0");
}
private void btnEquals_Click(object sender,System.EventArgs e)
{
doEquals();
}
private void btnClear_Click(object sender,System.EventArgs e)
{
isSecond = false;
setText("clear");
}
private void btnSubtract_Click(object sender,System.EventArgs e)
{
setOperator(2);
}
private void btnMultiply_Click(object sender,System.EventArgs e)
{
setOperator(3);
}
private void btnDivide_Click(object sender,System.EventArgs e)
{
setOperator(4);
}
private void btnNegative_Click(object sender,System.EventArgs e)
{
changeSign();
}
private void btnDecimal_Click(object sender,System.EventArgs e)
{
setDecimal();
}
#endregion
#region Main()
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
deApplication.Run(new Calculator1());
}
#endregion
}nevermind
}
// Source Code End