Jump to content

  • Log In with Google      Sign In   
  • Create Account


Deprecated

Member Since 21 Nov 2009
Offline Last Active Jul 10 2012 04:31 PM
-----

Posts I've Made

In Topic: Checksum testing

11 January 2012 - 12:41 AM

Self-encrypting Code to Protect Against Analysis and Tampering (J. Cappaert, et al.) comes to mind.

A simpler way to provide strong security against reverse-engineering would be polymorphic encryption. Oddly enough it's a technique that originated from the malware hobbyists and although it's nowadays used by serious software developers a lot of good documentation and examples can be found on sites focusing on malware development and (software) security analysis.

It is disputed whether or not it is possible to create a software that can't be detected and therefore analyzed (see Blue Pill malware), although it is possible to protect the code good enough so that the effort of cracking it outweighs the worth of cracking it.


Although you could write every single function of your program so that it could be encrypted and loaded into memory only one function at a time (which makes both recursion and object-oriented programming impossible, by the way) it is highly unlikely that you'll find a graphics library that works with that kind of programming. It is also highly unlikely that you'll need that kind of security. As frob said, you need to consider who you're protecting yourself from and how much your data/code is worth to them.

In Topic: [Seeking input, information] Making an application that looks like BIOS

11 January 2012 - 12:01 AM

You're looking to create a TUI ([Text|Terminal] User-Interface). There are several resources available to do this with far less work than a graphics library like SDL/SFML/OpenGL/DirectX would require, if you're willing to use Linux for the clients suggestions can even be found in the wikipedia article I linked.

In Topic: Loading PNG In PHP And Returning It To C#

09 January 2012 - 06:02 PM

Detects 3 files even though only one is in the folder. The other two filenames it picks up are "." and "..". Wrapping the the line to load the file inside


The symbolic links . and .. represents the current and the previous folder.

'C:\Program Files\.\.\.\..\Program Files\..' should place you in 'C:\', assuming that there is a directory called Program Files in your root.


Edit: Added the quote I was responding to.

In Topic: Loading PNG In PHP And Returning It To C#

09 January 2012 - 05:56 PM

You're not understanding me... The code I posted will output a sequence of data that represents the image. Below are some examples on how to work with the above example in python. Although I haven't tested the code, in the first example, bytestream should be accepted by SFML as an image in memory.

1. To read the data as a stream of bytes in python
import urllib.request
bytestream = urllib.request.urlopen('http://localhost:80/~username/gamedev.php')

2. To read the data as an array of bytes in python
import urllib.request
bytearray = [c for c in urllib.request.urlopen('http://localhost:80/~username/gamedev.php').read()]

3. To read the data as a stream of bytes and save it to file in python
import urllib.request
open('image.png', 'wb').write(urllib.request.urlopen('http://localhost:80/~username/gamedev.php').read())

In Topic: Loading PNG In PHP And Returning It To C#

09 January 2012 - 05:33 PM

Remember that your browser will interpret images and render them for you, instead of outputting the bytes they consist of. The code I posted will output the raw data from the image, meaning the bytes it consists of. I'm not sure whether or not C# Texture2D.LoadImage() accepts data containing the file-header, but unless you plan to output something that could be evaluated and parsed by C# I think you'll have to output the actual file.


$ lynx -source http://localhost:80/~username/gamedev.php
�PNG
▒
IHDR2?��	    pHYs���o�d
OiCCPPhotoshop ICC profilexڝSgTS�=���BK���Ko RB���&*!   J�!��Q�EE�
...

PARTNERS