June 17, 2009
Below is a little C# program that I wrote which searches all files within a directory for a custom string. Could come in handy nah?
If you have any comments regarding the code, feel free to comment.
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
namespace MyProgram
{
class Program
{
static int results = 0;
static int dirs_searched = 1;
static int files_searched = 0;
static void SearchForString(string _dir, string searchstring)
{
try
{
DirectoryInfo dir = new DirectoryInfo(_dir);
string[] _files = Directory.GetFiles(_dir);
int counter=0;
foreach (string file in _files)
{
files_searched++;
if ((counter = ReadIt(file, searchstring)) > 0)
{
results += counter;
Console.WriteLine("Found \"{0}\" in {1} - {2} times.", searchstring, file, counter);
}
}
}
catch (Exception ex)
{
Console.WriteLine("Error: " + ex.Message);
}
try
{
string[] _dirlist = Directory.GetDirectories(_dir);
foreach (string subdir in _dirlist)
{
dirs_searched++;
SearchForString(subdir, searchstring);
}
}
catch (Exception ex)
{
Console.WriteLine("Error: " + ex.Message);
}
}
static int ReadIt(string file, string searchstring)
{
string line = "";
int counter = 0;
try
{
StreamReader sr = File.OpenText(file);
while (!sr.EndOfStream)
{
line = sr.ReadLine();
if (line.Contains(searchstring))
counter++;
}
return counter;
}
catch (Exception ex)
{
Console.WriteLine("Error: " + ex.Message);
}
return 0;
}
static void Main(string[] args)
{
string searchstring="";
string dirstart = "";
Console.WriteLine("String searcher.\n");
Console.Write("Enter string to search for: ");
searchstring = Console.ReadLine();
Console.Write("Enter directory to search: ");
dirstart = Console.ReadLine();
try
{
if (Directory.Exists(dirstart))
{
Console.WriteLine("\nSearching {0} for \'{1}\'", dirstart, searchstring);
SearchForString(dirstart, searchstring);
Console.WriteLine("\n================\nFound {0} results.", results);
Console.WriteLine("\n{0} directorie(s)", dirs_searched);
Console.WriteLine("\n{0} files.", files_searched);
Console.WriteLine("\n================");
}
else
{
Console.WriteLine("Path could not be found.");
}
}
catch (Exception ex)
{
Console.WriteLine("Error: " + ex.Message);
}
}
}
}
Compiled version can be found here: Download String Searcher
- Imraan Moosa
Leave a Comment » |
Software Downloads | Tagged: C#, C# free, C# help, C# programming, cracker solutions, crackersolutions, find word in directory, find word in file, imraan moosa, look for word in file, Search for string, search for string in directory, String search C# |
Permalink
Posted by Imraan Moosa
June 16, 2009
Hello there. My name is Imraan Moosa and for those of you who do not know me, I am the author of the CrackerSolutions blog.
While browsing the web, I came along an interesting e-book taken from the www.programmersheaven.com
To all those programmers or wanting-to programmers out there, I suggest you take a few minutes to check out that website. It contains alot of programming material and guides that will assist you and help you familiarize yourself with the programming environment.
Now back to the point
The e-book that I came across can be found here: Download C# Ebook!
Take your time. Read through it slowly. Follow the examples if any..but most importantly keep programming! The best way to learn programming is to practise. Don’t be afraid. Try things. Programming is all about exploring. Pushing your computer into creating something extraordinary. You will be suprised at how satisfying a working program can be.
Happy programming friend! :
- Imraan Moosa (id3ntity@gmail.com)
1 Comment |
Software Downloads | Tagged: C#, C# book, C# Ebook, C# free, C# help, C# programming, C# tutorial, cracker, cracker solutions, crackersolutions, id3ntity@gmail.com, imraan moosa, programming, solutions |
Permalink
Posted by Imraan Moosa
May 24, 2009
I-Reminder is a FREE C# application written by me which acts as an Alarm Clock/Reminder application that sits on your desktop and rings a customizable alarm tone.
Features include:
- Multiple reminders at different times & days.
- Ability to edit reminders/alarm times.
- Customized tone for reminder.
- Hidden in system tray
I-Reminder Main Screen:

Setting a new Reminder:

I-Reminder can be downloaded HERE
If you have any comments, suggestions or features that you would like to be added onto I-Reminder – I would like to hear all about it
- Imraan Moosa ( id3ntity@gmail.com )
Leave a Comment » |
Software Downloads | Tagged: Alarm, Alarm Clock, C# reminder example, Reminder, Reminder Application, Reminders |
Permalink
Posted by Imraan Moosa
May 21, 2009
I-Crypt was created to solve a particular need that I had. I started programming I-Crypt at the beginning of 2009 and thankfully I have been able to see the completion of Version 1 and Version 2 BETA. The basic description of I-Crypt can be seen as a tool to encrypt and decrypt your file(s) and folder(s) with a unique password. I-Crypt uses the Rijndael algorithm to encrypt the contents of your sensitive documents/files.
I-Crypt uses the concept of “I-Crypt cabnetting” to lock a folder where as the folder to be locked, is added to a secure I-Crypt cabnet and locked with a password chosen by the user.
I-Crypt does not claim a 100% protection. It is merely an added security measure to your already ’secure’ environment. You should always make sure that your password that you use to encrypt/lock file(s) and folder(s) are kept safe. Writing them down on a piece of paper and sticking it under your keyboard is generally not a good idea
My intention for creating I-Crypt together with the other programs that I have thus developed is to furthur my programming knowledge and to provide a solution to a certain problem. It was the result of my intrigue. I therefore hope that you find this program of some use to you.
I-Crypt version 1.0 can be downloaded for free. Once you install it, you will be required to Activate I-Crypt. For this version only, I have decided to render it free. Send me your License Key to id3ntity@gmail.com together with your name and I will happily send you an activation code for your computer.
Download I-Crypt v1.0 NOW!
I wish to furthur my development in I-Crypt. So please, feel free to send me your comments, suggestions, criticisms at id3ntity@gmail.com
I-Crypt Version 2.0 will be released soon! Be sure to check soon!
- Imraan Moosa
Leave a Comment » |
Software Downloads | Tagged: decrypt, decrypt file, file encrypt, folder lock, free file lock, free folder hide, free folder lock, free password protect folder, hide file, imraan moosa |
Permalink
Posted by Imraan Moosa
May 20, 2009
Computer Guard is a C# program I recently developed in my free time that locks your computer upon startup until the correct password is entered. The thrill of creating something useful out of nothing more than just a blank screen is extraordinary.
NB: Computer Guard does not claim a 100% security. It is merely an example of added security.
Be sure to set a password before you execute Computer Guard. After the first run, Computer Guard will run after every successful computer boot-up.

Upon booting up your computer, the Computer Guard screen will seize your computer. Access to the computer is prohibited until the correct password is entered and “ENTER” is pressed.

This project was simply created to test my programming skills. If for some reason you would like a more advanced version of this piece of software to suite your needs, feel free to contact me and we could work out something.
You can download Computer Guard NOW!
Click HERE to download!
If you have any questions, comments or suggestions – feel free to contact me at: id3ntity@gmail.com
- Imraan Moosa
Leave a Comment » |
Software Downloads | Tagged: C#, computer guard, lock, lock computer, security, security software |
Permalink
Posted by Imraan Moosa
June 4, 2008
About VLC Media Player:
VLC media player is a FREE highly portable multimedia player for various audio and video formats (MPEG-1, MPEG-2, MPEG-4, DivX, mp3, ogg, …) as well as DVDs, VCDs, and various streaming protocols.
It can also be used as a server to stream in unicast or multicast in IPv4 or IPv6 on a high-bandwidth network.
It doesn’t need any external codec or program to work.
Download VLC Media Player NOW! (Windows)
Other OS: See Here!
1 Comment |
Software Downloads | Tagged: dvd player, media player, video, video player, vlc |
Permalink
Posted by Imraan Moosa
May 20, 2008
What is Workrave?
Workrave is a program that assists in the recovery and prevention of Repetitive Strain Injury (RSI). This is a condition which is caused by repetitive movements over time. RSI is a type of injury where soft tissue in the body, such as muscles, nerves, tendons, and joints become irritated or inflamed.
This program frequently alerts you to take micro-pauses, rest breaks and restricts you to your daily limit hence reducing the risk of RSI.
Workrave’s main purpose is to prevent RSI but I find that it increases my productivity because I can concentrate better. It times your computer activity and tells you when to take a break and even what exercises to do and when. When I discipline myself to follow it’s prompts, I can concentrate on my tasks much more efficiently. When I ignore the software, my productivity goes way down. I put this down to being able to concentrate better during the productive times because I can switch off during the breaks I take. - Workrave user
Download Workrave NOW! (Windows)
1 Comment |
Software Downloads |
Permalink
Posted by Imraan Moosa
April 10, 2008
BootSkin description
BootSkin is a program that can change your XP boot screen.

Stardock BootSkin is an application that allows users to change their Windows 2000 and Windows XP boot screens.
Unlike other programs that can change the Windows XP boot screens, BootSkin does so in a safe manner. It doesn’t patch the Windows XP kernel. Nor does it require the user to download replacement Windows XP kernels to do so.
Boot screens that use BootSkin are typically under 20K compared to other boot screen programs whose files are over 2 MEGABYTES.
And best of all, BootSkin is free for non-commercial use.
Download NOW!
Download additional boot screens from HERE!
Leave a Comment » |
Software Downloads |
Permalink
Posted by Imraan Moosa
April 10, 2008
Logon XP makes the task of swapping Windows XP login screens trivial
Logon Loader will make the task of swaping logon screens easy. All you have to do is select a new logon screen file and you’re set!
You can even preview your logon screens before selecting the one you want. Logon Loader also has the ability to randomly select a logon screen every time you log on.
Screenshot:

Download NOW!
Leave a Comment » |
Software Downloads | Tagged: change logon, xp logon screen |
Permalink
Posted by Imraan Moosa