Optional Parameters in C / C++


Recently, while developing a function to help me create logs to keep track of my program for debugging purposes, I came across a need to  specify an undefined amount of parameters so that I can call functions such as CreateLog(“Function Entry: Install”, “Success”, “Remark”, “More Remark”).  Therefore, I have searched online to see whether this can be done.  To my amazement, this was in fact an easy task.  By using the __VA_ARGS__ option and vsprintf function, it can be accomplished.  I have yet the time to tidy the codes for this post but at the very least an article to help out.

If you are not sure what I meant by Optional Parameters, see here.

Article: http://www.lysator.liu.se/c/c-faq/c-7.html

C vs C++ where Exploit, Game Hack and Malware are concerned


On the contrary of comparing which language is best used in the idea of creating exploits, game hacks and malwares, 01blasphemer has pointed some of the reasons why the C language is at advantage in HackForums. Read the rest of this entry »

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. Read the rest of this entry »

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. Read the rest of this entry »

The official way of writing a crypter in C | Source Code


mindlessdeath, a member from HackForums have posted a thread regarding how to write a crypter in C!  I find this source code a very good example for people that are trying to learn to write their own crypter.  Compared to any other source codes that are posted on the internet, the author of this source code gave a very detailed information on each line on what the statements does.  In order to use this source code without much trouble, there are some prerequisites that was mentioned by the author himself.  Read the rest of this entry »

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. Read the rest of this entry »

Learning to make your own DirectX game in C and C++


This is a tutorial that was given by one of the professor in my university that my friend was studying.  He is in the gaming course so basically he learned some flash programming and now 3d programming too.  Some of the subjects include DirectX so the professor gave them a website that guides you from the basics.  This website is called DirectX Tutorial.com and the website is as below.  Although i am not fancy of writing anything related to graphics i find that it is quite an interesting subject.  By learning how to write with D3D (Direct 3D), a C or C++ programmer may find it useful for their future projects.  To jump start the tutorial, visit here.

Homepage: http://directxtutorial.com/

Note: If you are looking for the DirectX SDK it is here.

Listing processes for all users in C


While i was searching online for a way to display processes for all users, i came across this source code which was coded profesionally.  The source code can be found here.  Be sure to check their homepage here too for more source codes.

Win32 samples


Today i came across a very interesting website while searching for a method to display processes for all users!   This website, http://win32.mvps.org/ provides alot of useful information coded in C!  As a C/C++ programmer, it is highly suggested to give this website a visit!  As for the source code i was looking for (displaying processes for all users), it is here!

Visit it for a better you here.

Creating your own driver loader in C | Driver Loader | Source Code | Rootkit


Technically, there’s 2 way of loading a rootkit according to Greg Hoglund when he wrote Rootkits: Subverting the Windows Kernel book.  One is called The Quick-And-Dirty Way to Load a Driver.  This method allows you to “load a driver into the kernel without having to create any registry keys.  “Pageable” refers to memory that can be swapped to disk. If a driver is pageable, any part of the driver could be paged out (that is, swapped from memory to disk). Sometimes when memory is paged out, it cannot be accessed; an attempt to do so will result in the infamous Blue Screen of Death (a system crash)” by using an undocumented API call.  Read the rest of this entry »