Basic Steganography
Security
|
Steganography is an indirect form of encryption which basically involves hiding messages in files, usually it mixes in with encryption on its own.
http://www.coderprofile.com/source-code/389/bitmap-steganographer
This shows a program I made to hide messages in a bitmap image file.
It works because the first 54 bytes of a Bitmap File are the headers.
Yet, the integer at the offset 10, (10-14), specifies where the bitmap colour data starts.
So, if we modify the offset of the beggining of the bitmap colour data, we can hide messages between the headers and the raw data =]
You can experiement with other file formats using the same principle, just remember that with Hex editing software it is easy to find raw data, encoding it usually does the trick to make it that bit more secure. View In Full
 |
2 Comments |
6.00 out of 10 |
|
|
Buffer Overflow Protection
Software Development
|
The above code is vunerable to Buffer Overflow in two locations
Unfortunatly you see it now in lots of code.
The program gets a file name and prints it to the screen. If the file name is given in the first arguement it copys that into the buffer and prints the buffer, if not it asks the user for it.
Is the first vunerability.
This does not take into account size of the buffer and which just write everything it gets into there. So if the user types in more than 100 charachters the buffer will overflow and the program may crash.
strcpy also does not take into account the size of a buffer.
The Following code is not vunerable to buffer overflow:
[code]
#include <stdio.h>
#include <string.h>
int main(int argc,char **argv){
char f View In Full
 |
2 Comments |
5.33 out of 10 |
|
|
|
 |
Andrew Carter (19) United Kingdom, Berkshire |
|
|
Uranium-239 has 1 fans
become a fan |
|
 |
|
|
 |
|