Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


How do I make a crackme with delphi?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Fri May 25, 2007 4:21 pm    Post subject: How do I make a crackme with delphi? Reply with quote

Ok, well I recently got a Delphi 2007 enterprise trial version and I wanted to make a crack me. But I don't know how to make something that would read from what you type in and then when you click on a button would bring you to either a wrong pop up window or a right pop up window. Can someone help me?
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Fri May 25, 2007 5:09 pm    Post subject: Reply with quote

1) make edit bar
2) make button
3) on buttonclick:

Code:

if editbar.text = 'mysecretpassword' then
   ShowMessage('You win!')
else
   ShowMessage('Wrong password!');
Back to top
View user's profile Send private message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Fri May 25, 2007 6:11 pm    Post subject: Reply with quote

your psudo looks like VB appal Wink
Back to top
View user's profile Send private message MSN Messenger
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Fri May 25, 2007 7:07 pm    Post subject: Reply with quote

noz3001 wrote:
your psudo looks like VB appal Wink


It's not pseudo, it's delphi.
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Fri May 25, 2007 8:40 pm    Post subject: Reply with quote

Thx appal, you the best. +Rep

It won't compile, o.O

Code:

unit Unit3;

interface

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

type
  TForm3 = class(TForm)
    Image1: TImage;
    Label1: TLabel;
    Edit1: TEdit;
    Button1: TButton;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form3: TForm3;

implementation

{$R *.dfm}

procedure TForm3.Button1Click(Sender: TObject);
begin

if editbar.text = 'mysecretpassword' then
   ShowMessage('Congratulations, you cracked me!')
else
   ShowMessage('WRONG!!!');
end;

end;

end.


That should work right? Btw my password isn't mysecretpassword, I just put that so you wouldn't find out. But that should work right?

_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
DeltaFlyer
Grandmaster Cheater
Reputation: 0

Joined: 22 Jul 2006
Posts: 666

PostPosted: Fri May 25, 2007 10:26 pm    Post subject: Reply with quote

Change editbar to Edit1...
_________________

Wow.... still working at 827... what's INCA thinking?
zomg l33t hax at this place (IE only). Over 150 people have used it, what are YOU waiting for?
Back to top
View user's profile Send private message
Willy
Master Cheater
Reputation: 0

Joined: 23 Apr 2007
Posts: 280
Location: Woodlands

PostPosted: Fri May 25, 2007 11:32 pm    Post subject: Reply with quote

If you just compile that, it would be a VERY simple crackme. All you have to do is open it in OllyDebug, scroll down, and they see the password. Add protection or something to it.
Back to top
View user's profile Send private message
compactwater
I post too much
Reputation: 8

Joined: 02 Aug 2006
Posts: 3923

PostPosted: Sat May 26, 2007 12:14 am    Post subject: Reply with quote

Willy wrote:
If you just compile that, it would be a VERY simple crackme. All you have to do is open it in OllyDebug, scroll down, and they see the password. Add protection or something to it.


Off-topic: Yay I'm in someone's siggy =D

On-topic:

Code:
    Edit1: TEdit;

Change it to:
Code:
    editbar: TEdit;


OR

Code:
if editbar.text = 'mysecretpassword' then

Change it to:
Code:
if Edit1.text = 'mysecretpassword' then


OR

So something else, make a GOOD crackme. Like Yano's un-crackable crackme! Smile
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Sat May 26, 2007 7:56 am    Post subject: Reply with quote

Ok, well how do I make it harder. I could encrypt it but I'm to lazy to do that, so how would I make it harder? And whenever I try to save them as .exe files I get an error, and dfm and pas files don't do anything, so yea, I need help there too...
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Sat May 26, 2007 8:31 am    Post subject: Reply with quote

when you compile (ctrl + f9) an executable should be generated in the same folder, which you can move. You really have to start out with one of the two, obfuscation (lots of junk code) or encryption (hide the pasword well), preferably the combination of the two.
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Sat May 26, 2007 11:25 am    Post subject: Reply with quote

Thx appal
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites