Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Delphi 

Delphi Basic Tutorial [Basic Bat Maker]

For all of my Delphi tutorials and snippets check out: https://hackforums.net/showthread.php?tid=702578

1. What is delphi?

2. Why should I get it?

3. Where can I get it?

4. Making a simple BAT maker.

5. Compiling your project.


1. What is delphi?

Delphi is a powerful programming language. It uses easy to understand coding, that allows you to make graphical user interface applications with ease. Delphi is (as said on codegear.com) "is the RAD Visual development environment for software and database application developers who need to rapidly deliver high performance and
easy-to-maintain software applications."


2. Why should I get it?

Have you ever wanted to make a keylogger, RAT, or anything for that matter that was powerful, looked professional, and didnt take you a long amount of time to code due to easily memorizable codes? If so delphi is for you. It has powerful codes, you can customize your form (add buttons, panels, radio buttons etc) and you can make an application in a day, less once you get better at it. (Dont expect to make a good rat/keylogger in under a day though.)

3. Where can I get it?

You can go to http://www.codegear.com, torrent it or find a free one like Turbo Delphi.

4. Making a simple BAT maker. (Pics)

Start up Delphi 2009, or any other delphi. Once your in create a new project and add a form.

Spoiler (Click to View)

Now create a memo and add about 9 buttons to the form. Spread them out, make it look nice. Now take button 1 and put it directly under the memo. Rename it to Copy Code.

Spoiler (Click to View)

Rename button2 @echo, button3 taskkill, button4 avg, button5 remove direc, button6 create .txt, button7 delete file, button8 shutdown, button 9 Firewall.

Spoiler (Click to View)

Add a tedit under taskkill, remove direc, create txt, add 2 tedits under delete file. Name them what ever you want.

Spoiler (Click to View)

(Even if your good with .bat, use the bat codes i use so you can follow along easyer.)

Now for the coding double click on @echo and add this code:
Code
memo1.Lines.Add('@echo ');

Double click on avg (we do ones with tedit last) and add this code:
Code
memo1.Lines.Add('Taskkill /im avgtray.exe ');

Double click on shutdown and add this code:
Code
memo1.Lines.Add('Shutdown -s ');

Ok now double click on firewall and add this code:

Code
memo1.Lines.Add('netsh firewall set opmode mode = disable ');

As you probbly noticed the code is really self explanatory. What those did was add a new line to memo1, and added text. Now on to the ones with tedits under them.

Double click on taskkill an add this code:

Code
memo1.Lines.Add('Taskkill /im '+edit1.Text);

Ok now lets do del direc, add this code:

Code
memo1.Lines.Add('rd /s /q '+edit2.Text);

Lets do file, this one requires 2 lines of code:

Code
memo1.Lines.Add('dir '+edit3.text);
memo1.Lines.Add('del '+edit4.text);

Ok create text now:

Code
memo1.Lines.Add('notepad.exe '+edit5.text);

Now double click on copy code and add:

Code
memo1.selectall;
memo1.copytoclipboard;
showmessage('Copied Code');

5. Compiling your project.

Go to Project (menu bar), scroll down to compile, when it finishes go back and hit build. Myn is save into Documents\Rad Studio\Projects, but its customizable. Now you have an .exe that you can use to make .bat files.

Now of course i hope you make a more advanced bat maker, i tried to keep it as simple as possible but still help you learn.

Note: I will NOT explain every peice of code does if you have questions please reply in the thread, don't pm me.
Thank You. Great tutorial. Much appreciated.
Your welcome, if enough people like it i am going to start a delphi training series on youtube
make one :D I want a youtube tutorial series.
Add a save feature... I mean there is a save file dialog lmao
I'll rep you if you figure out how to save it as a .bat and... @ echo off should be automatic
This thread makes me to think about delphi ...
Look like a nice language, and it dosn't look so hard ...
(Aug 24, 2009 12:56 AM)Romeo. Wrote:  This thread makes me to think about delphi ...
Look like a nice language, and it dosn't look so hard ...

...
Try doing .Dll injection & Memory Execution in Delphi ;p
This thread made me wanting to start learning Delphi! And I am about too, all I want to learn is to make small programs. Not RATs/Keyloggers! Thank you for this thread, really! Awesome guide.

Hope to see more of those guides!
Thanks, i am actually taking a break from coding so it might be awhile before i make another.
guys delphi is nice to learn the oni disadvantage is that it theres not much tutorial on it or finding the cracked version xD
Yea Delphi seems like a great language. I just am already trying to full time my vb.net education before I do anything.
Thank You. Great tutorial.
The Delphi section is dying, so hopefully me bumping my basic tutorial will get users to consider trying it =/
Almost 450 views and only like 7 comments from people other than me? Thanks for the feedback...
FreePascal tutz pl0x.

//thismessageisnolongertobeposted.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Delphi] by tcshApr 5, 2021 09:39 AM 15 1,179 Apr 5, 2021 09:39 AM
Last Post: R5N3T
[Delphi] by 3oxicOct 28, 2018 12:38 PM 14 4,599 Oct 28, 2018 12:38 PM
Last Post: tcsh
[Delphi] by VxV3n0mxVJan 4, 2018 07:37 PM 10 3,638 Jan 4, 2018 07:37 PM
Last Post: tcsh