Home Page

George Presura

CV

Projects - R&D

presura.name INFO


Photos

Multimedia

Software

Download

Links

Newsletter


Contact




chat with ME





Last changed:
March 25, 2009


Download

This section contains a list of programs developed by me using various programming languages.
You may feel free to copy or redistribute any of these programs, but it is your responsability if they produce any damages to your system. So, be carefully.

If you want more details about any of the programs above or any kind of technical support, please cotact me at george@presura.name.

Enjoy !
  1. ASM Examples
  2. mt_test - Multithreading Testing Programm
  3. ini_edit - Console application for editing INI-like files
  4. runasroot - Run programs with root privileges
  5. windows-bin-utils - UNIX-like programs for Windows


1. ASM Examples

Programming Language:ASM
Compiler:NASM
Operating system:Linux, Windows

These two examples are usefully for somebody who wants to start writing it's first programm in ASM.
The sintax is compatible with NASM compiler.
Also, the binary files are provided for demonstrating the very little size of such a program.

Download hello_world.asm source code
Download hello_world binary
Download for_loop.asm source code
Download for_loop binary

Last Changed: 01/19/2006


2. mt_test - Multithreading Testing Programm

Programming Language:C
Compiler:gcc
Operating system:Linux (pthreads)

This programm creates N threads (where N is a parameter given by command line) and runs 1,000,000,000 for-cycles and increments a long long variable.
It is linked against the pthreads library, and is a usefull example for testing multithreading and context-switching of an operating system on (Linux) using various processors and kernel versions.

To compile it run the following commands:
gcc -c mt_test.c
gcc -o mt_test mt_test.o -L/usr/lib -lpthread
Download mt_test.c source code
Download mt_test binary

Last Changed: 01/19/2006


3. ini_edit - Console application for editing INI-like files

Programming Language:C
Compiler:gcc
Operating system:Linux, Windows

This application allows you to edit INI-like files. It is usefull for batch-processing of INI files or to be integrated with installers or with automatic configurator programs (like software installers).

The format of the INI file which it recognize is:
[SECTION 1]
common variable=common value
variable1=value 1
variable2=value 2

[SECTION 2]
common variable=common value
variable3=value 3
variable4=value 4
To compile it run the following command:
gcc -o ini_edit ini_edit.c
Download ini_edit.c source code
Download ini_edit binary

Last Changed: 01/19/2006


4. runasroot - Run programs with root privileges

Programming Language:C
Compiler:gcc
Operating system:Linux

This programm is best runned as a daemon and it reads commands from FIFO files from configured users and it run them with root credentials.
More documentation will be provided soon.

To compile it run the following command:
gcc -o runasroot runasroot.c
Download runasroot.c source code
Download runasroot binary
Download runasroot.conf configuration file

Last Changed: 01/19/2006


5. windows-bin-utils - UNIX-like programs for Windows

Programming Language:C
Compiler:Microsoft Visual C++ 6.0
Operating system:Windows/Win32

This package contains some usefull UNIX-like programs for Windows. The source code is provided for education purpose.
The programs included are:
  • cpuusage.exe - an incomplete console program which (should) display the CPU utilization;
  • disk1.exe, disk2.exe - two programs sharing the same source code; they are opening a physical drive for reading; it is recommended to be used with Performance Monitor for analizing dard drives reading performance;
  • hostname2.exe - returns the Windows computer name;
  • killall.exe - allows you to close all programs which their executable names matches a certain wildcard;
  • ps.exe - lists the running processes in the system, displaying the PID and executable name;
  • uptime.exe - displays the total running time of a Windows system (the time since the system was last rebooted);
  • whoami.exe - displays the Windows computer name and username;
  • xsu.exe - attemps to make a login using a certain username and password (usefull for testing if a username exists in the sistem and check their passwords).
The source code was compiled using Microsoft Visual Studio 6.0 / Visual C++, but I think it can be easily adapted for recent versions of Visual C++. Download windows-bin-utils.zip binaries
Download windows-bin-utils-src.zip source code

Last Changed: 02/11/2006