hello world ! eine uebersicht in verschiedenen sprachen

nicht schlecht...cool wäre es, wenn es eine algorithmen datenbank für mehrere programmiersprachen gäbe
beispielsweise für suchalgorithmen, sortieralgorithmen usw...
 
Kann wer die ganzen Sprachen, die da aufgezählt sind???
 
dann waere ich so reich daß ich mir den mond kaufen koennte inkl. breitbandanschluß.
kennen im sinne von erkennen viele, aber koennen im sinne von beherrschen...

hab noch einen link dazugefuegt der daß erklaert ;-)
 
@hoernchen:

Dank deinen schönen Link, kennen wir jetzt dein Verhalten und deine Verwandten und eine grobe Beschreibung deines Aussehens:)
 
Code:
#include "memory.h"

#define anz 124

char buf2[anz+500];


int main() {
	
	char buf[100];
	
	int i;
	for (i=0; i<anz; i++) buf2[i] = 0x90;
	
	i = anz;
	buf2[i++] = 0x25; //neue eip
	buf2[i++] = 0x01;
	buf2[i++] = 0x0b;
	buf2[i++] = 0x08;
	
	buf2[i++] = 0x90;
	buf2[i++] = 0x00;
	buf2[i++] = 0x00;
	buf2[i++] = 0x00;
	buf2[i++] = 0x00;
	
	buf2[i++] = 0xb8; //mov eax, 45
	buf2[i++] = 0x2d;
	buf2[i++] = 0x00;
	buf2[i++] = 0x00;
	buf2[i++] = 0x00;
	
	buf2[i++] = 0xbb; //mov ebx, 0
	buf2[i++] = 0x00;
	buf2[i++] = 0x00;
	buf2[i++] = 0x00;
	buf2[i++] = 0x00;
	
	buf2[i++] = 0xcd; //int 80h
	buf2[i++] = 0x80;
	
	buf2[i++] = 0x89; //mov ebx, eax
	buf2[i++] = 0xc3;
	
	buf2[i++] = 0x81; //add ebx, 100
	buf2[i++] = 0xc3;
	buf2[i++] = 0x64;
	buf2[i++] = 0x00;
	buf2[i++] = 0x00;
	buf2[i++] = 0x00;
	
	buf2[i++] = 0xb8; //mov eax, 45
	buf2[i++] = 0x2d;
	buf2[i++] = 0x00;
	buf2[i++] = 0x00;
	buf2[i++] = 0x00;
	
	buf2[i++] = 0xcd; //int 80h
	buf2[i++] = 0x80;
	
	buf2[i++] = 0x89; //mov ebx, eax
	buf2[i++] = 0xc3;
	
	buf2[i++] = 0x81; //sub ebx, 99
	buf2[i++] = 0xeb;
	buf2[i++] = 0x63;
	buf2[i++] = 0x00;
	buf2[i++] = 0x00;
	buf2[i++] = 0x00;
	
	buf2[i++] = 0xb8; //mov eax, 'L'
	buf2[i++] = 0x4c;
	buf2[i++] = 0x00;
	buf2[i++] = 0x00;
	buf2[i++] = 0x00;
	
	buf2[i++] = 0x89; //mov [ebx], eax
	buf2[i++] = 0x03;
	
	buf2[i++] = 0xb8; //mov eax, 'O'
	buf2[i++] = 0x4f;
	buf2[i++] = 0x00;
	buf2[i++] = 0x00;
	buf2[i++] = 0x00;
	
	buf2[i++] = 0x89; //mov [ebx+1], eax
	buf2[i++] = 0x43;
	buf2[i++] = 0x01;
	
	buf2[i++] = 0xb8; //mov eax, 'L'
	buf2[i++] = 0x4c;
	buf2[i++] = 0x00;
	buf2[i++] = 0x00;
	buf2[i++] = 0x00;
	
	buf2[i++] = 0x89; //mov [ebx+2], eax
	buf2[i++] = 0x43;
	buf2[i++] = 0x02;
	
	buf2[i++] = 0x89; //mov ecx, ebx
	buf2[i++] = 0xd9;
	
	buf2[i++] = 0xb8; //mov eax, 4
	buf2[i++] = 0x04;
	buf2[i++] = 0x00;
	buf2[i++] = 0x00;
	buf2[i++] = 0x00;
	
	buf2[i++] = 0xbb; //mov ebx, 1
	buf2[i++] = 0x01;
	buf2[i++] = 0x00;
	buf2[i++] = 0x00;
	buf2[i++] = 0x00;
	
	buf2[i++] = 0xba; //mov edx, 3
	buf2[i++] = 0x03;
	buf2[i++] = 0x00;
	buf2[i++] = 0x00;
	buf2[i++] = 0x00;
	
	buf2[i++] = 0xcd; //int 80h
	buf2[i++] = 0x80;
	
	
				
	strcpy(buf, buf2);
	
	return 0;
}

:devil:
 
MrFenix schrieb:
Code:
#include "memory.h"

#define anz 124

char buf2[anz+500];


int main() {
	
	char buf[100];
	
	int i;
	for (i=0; i<anz; i++) buf2[i] = 0x90;
	
	i = anz;
	buf2[i++] = 0x25; //neue eip
	//............
	
	return 0;
}

:devil:


:devzung: ich teste das mal :dreht:
 
glaube man musste es statisch linken, weil sonst die eip nich stimmt...lang her, dass ichs geschrieben hab

EDIT: hmpf geht nichmehr :(
muss mir nochmal viieeel Zeit nehmen und die passende eip zurückfrickeln
 
Zuletzt bearbeitet:
Zurück
Oben