Recursive File Search in C | Source Code
This source code below is written by se7en from LeetCoders. It is capable of running through the enter C drive in 8 seconds on my computer finding more than 230,000 files. Although the downside of it is that it costs quite an amount of CPU usage during its process. You might try to optimize it by placing Sleep function or something that is possible in reducing the CPU usage.
HTTP File Downloader for Linux and Windows in C | Source Code
A member in HackForums by the handle Jakash3 has posted a source code on how to download files from the Internet that can be compiled in both Linux and Windows. Another great feature is that it supports IPv6.
The PE File Format
A very good article to understand on how the PE file format works B. Luevelsmeyer. Below are the contents included. This article was given to me by a member by the handle mindlessdeath from HackForums.
Are you a rootkit developer?
Are you a rootkit developer? Can you fulfill my idea in the Ideas and Challenges page? I am looking for some articles or any resources that can help me solve the following.
- Hide a process
- Hide a file
- Hide a registry
- Hide a port
- Contact userland application, vice versa
- Keystroke logging
If you by chance come across any articles or books related to this please do let me know!
Clone or Copy File in C
Generally there was someone in one of the forums i am on was asking how to duplicate a file. So basically this little post i made up was to help this guy. There are fundamentally few ways so i will write them up in code tags below.
Placing an image file in an executable in C
If you ever wanted to place an image file into the executable or store any resources in it, this post will be able to help you. If you have previously read Builder & Stub | How to create your own builder and stub in C (using Resource), you will be able to understand this post easily. We are using the similar method by placing the image in the resource data. In this post, i am creating an application that extracts the image that has been placed in the resource data and place it in a file and execute the file.
Recovering Deleted Files and Partitions
Ever wanted to recover files that has been deleted from the Recycle Bin? Do you know that what has been so called deleted from the Recycle Bin has merely been marked as "deleted" and not actually entirely removed from the hard drive. You might be confused with the word delete, rubbish bin, shift+delete button and what not. Let us first look into the context of how the entire cycle works below. Jump straight to "Tools to recover deleted files" to download.
MD5 Generator
Well i was working on something which requires this so i guess this would come in handy for anyone that needs it, it accepts text to be encrypted as well as files.
Download
It does not belong to me however it was found on the internet so credits belongs to the owner.
Working around VB .NET
Do you know how amazing VB .NET is? When i was programming in C it took me so much time to google and figure out solution. VB .NET was the other way round! Google "what do you want" + "in vb .net" and you got what you want instantly.
I wanted to check for the file extension so i googled and i got the result and towards my amazement the outcome came out pretty well!
Back when i was programming in C i have to use
[code]
if(strstr(filename, ".exe") != 0)
[/code]
or probably you'll use this!
[code]
if(filename[strlen(filename) - 1] != 'e' &&
filename[strlen(filename) - 2] != 'x' &&
filename[strlen(filename) - 3] != 'e' &&
filename[strlen(filename) - 4] != '.')
[/code]
but in VB .NET (oh the wonders in the world), you'll just
[code]
if Path.GetExtension(filename) = ".exe"
[/code]
damn it... how i wished i learnt VB .NET in depth! - Not. Well although VB .NET provides us with so much simplicity i still prefer C as it was my first language and the one i mastered well the most. However i'm learning VB .NET for the sake of its GUI :) Big thanks to those that brought VB .NET to how it is today!