Autor Beitrag
JungerIslaender
ontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 427
Erhaltene Danke: 5

Win XP
Delphi 7; Delphi 2005
BeitragVerfasst: So 15.06.08 20:40 
Hi,

Könnte mir jemand erklären wie der decompiler funktioniert?
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: So 15.06.08 20:43 
Anhand von Abfolge von Befehlen auf den Code zu schließen.

_________________
Markus Kinzler.
JungerIslaender Threadstarter
ontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 427
Erhaltene Danke: 5

Win XP
Delphi 7; Delphi 2005
BeitragVerfasst: So 15.06.08 20:45 
das hab ich mir auch gedacht aber das klappt irgendwie nicht.
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: So 15.06.08 20:48 
user profile iconJungerIslaender hat folgendes geschrieben:
das hab ich mir auch gedacht aber das klappt irgendwie nicht.

Du versuchst jetzt nicht ernsthaft einen selbst zu schreiben? :shock:
JungerIslaender Threadstarter
ontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 427
Erhaltene Danke: 5

Win XP
Delphi 7; Delphi 2005
BeitragVerfasst: So 15.06.08 20:53 
Neeeeeeeh aber ich würd gerne von einigen Programmen den Quelltext haben. Natürlich zum lernen^^.
j.klugmann
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: So 15.06.08 20:54 
guck dir das doch mal an de.wikipedia.org/wiki/Decompiler
vlg,j.klugmann
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: So 15.06.08 20:57 
user profile iconJungerIslaender hat folgendes geschrieben:
Neeeeeeeh aber ich würd gerne von einigen Programmen den Quelltext haben. Natürlich zum lernen^^.

An den ursprünglichen Quelltext kommst Du nicht mehr. Ob du nun aus dem generierten Assembler-Code etwas lernen kannst, ist fraglich. ;)
€: Pardon, dachte gerade an einen Disassembler. :?


Zuletzt bearbeitet von Marc. am So 15.06.08 20:59, insgesamt 2-mal bearbeitet
JungerIslaender Threadstarter
ontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 427
Erhaltene Danke: 5

Win XP
Delphi 7; Delphi 2005
BeitragVerfasst: So 15.06.08 20:57 
Das hab ich schon gelesen hilft jetzt aber nicht grad bei der anwendung. Ich habs sogar bei einem meiner programme versucht und es klappt nicht. Dabei hab ichs ja gar nicht verschlüsselt oder so.
j.klugmann
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: So 15.06.08 20:58 
zeig mal dein Quelltext. :wink:
JungerIslaender Threadstarter
ontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 427
Erhaltene Danke: 5

Win XP
Delphi 7; Delphi 2005
BeitragVerfasst: So 15.06.08 21:01 
Hier der z.B.:
ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
 unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, Spin;

type
  TForm1 = class(TForm)
    Button1: TButton;
    SpinEdit1: TSpinEdit;
    Label1: TLabel;
    SpinEdit2: TSpinEdit;
    Label2: TLabel;
    Button2: TButton;
    SpinEdit3: TSpinEdit;
    SpinEdit4: TSpinEdit;
    SpinEdit5: TSpinEdit;
    SpinEdit6: TSpinEdit;
    SpinEdit7: TSpinEdit;
    SpinEdit8: TSpinEdit;
    Button3: TButton;
    SpinEdit9: TSpinEdit;
    Button4: TButton;
    Label3: TLabel;
    Label4: TLabel;
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
    function quadrat(wert:integer):integer;
    function euklid(wert1:integer; wert2:integer):integer;
    procedure Button4Click(Sender: TObject);
    procedure Button3Click(Sender: TObject);

  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
label1.Caption:=inttostr(quadrat(spinedit1.Value));
spinedit1.SetFocus;
end;


procedure TForm1.Button2Click(Sender: TObject);
begin
label2.Caption:=inttostr(euklid(spinedit2.Value, spinedit3.Value));
end;


function Tform1.quadrat(wert:integer):integer;
begin
result:= wert*wert;
end;


function Tform1.euklid(wert1:integer; wert2:integer):integer;
var a,b,c:integer;
begin
a:= wert1 div wert2;
b:= wert2 div a;
c:=a div b;
if c=0 then result:=b else result:=c;
end;


procedure TForm1.Button3Click(Sender: TObject);
var prozent, Euro:integer;
begin
Euro:= spinedit7.value;
prozent:= spinedit8.value;
if euro >= 1000 then label3.Caption:=inttostr(euro*prozent);
end;


procedure TForm1.Button4Click(Sender: TObject);
begin
case spinedit9.value of
  1 : label4.caption:='Sehr Gut';
  2 : label4.caption:='Gut';
  3 : label4.caption:='Befriedigend';
  4 : label4.caption:='Ausreichend';
  5 : label4.caption:='Mangelhaft';
  6 : label4.caption:='Ungenügend';
end;
spinedit9.setfocus;
end;

end.
Timosch
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1314

Debian Squeeze, Win 7 Prof.
D7 Pers
BeitragVerfasst: So 15.06.08 21:03 
Und welchen Decompiler benutzt du überhaupt?
Generell gilt: Du kannst natürlich nicht erwarten, dass du wieder schön lesbar deine Units zurückkriegst... Ein bisschen kompliziert ist sowas schon. Was bekommst du denn heraus? Du hast in diesem Forum 87 Beiträge geschrieben. Eigentlich müsstest du gelernt haben, dass
user profile iconJungerIslaender hat folgendes geschrieben:
das hab ich mir auch gedacht aber das klappt irgendwie nicht.

keine Fehlerbeschreibung ist.

_________________
If liberty means anything at all, it means the right to tell people what they do not want to hear. - George Orwell


Zuletzt bearbeitet von Timosch am So 15.06.08 21:06, insgesamt 2-mal bearbeitet
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: So 15.06.08 21:05 
Er hat sich wohl nebenbei einen eigenen gecodet

_________________
Markus Kinzler.
JungerIslaender Threadstarter
ontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 427
Erhaltene Danke: 5

Win XP
Delphi 7; Delphi 2005
BeitragVerfasst: So 15.06.08 21:10 
Ja ok da habt ihr schon rech also erstmal ein dickes sorry. :D
j.klugmann
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 17.06.08 16:07 
und weiter?erzähl mal wie du es jetzt eventuell gelöst hast?
Jakob_Ullmann
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1747
Erhaltene Danke: 15

Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
BeitragVerfasst: Di 17.06.08 16:42 
Im Prinzip ist ja Maschinensprache leicht in Assembler rück zu übersetzen.

EDIT: Zum Thema Disassembler vielleicht noch etwas: www.delphi-forum.de/...highlight=whitepaper
Timosch
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1314

Debian Squeeze, Win 7 Prof.
D7 Pers
BeitragVerfasst: Di 17.06.08 17:00 
user profile iconJakob_Ullmann hat folgendes geschrieben:
Im Prinzip ist ja Maschinensprache leicht in Assembler rück zu übersetzen.

EDIT: Zum Thema Disassembler vielleicht noch etwas: www.delphi-forum.de/...highlight=whitepaper

Das steht ja außer Frage. Aber hier gehts um Decompilieren.

_________________
If liberty means anything at all, it means the right to tell people what they do not want to hear. - George Orwell