Jump to content
Sign in to follow this  
sl4y3r

AutoIt DLL

Recommended Posts

sl4y3r

Hey,

a lot of noobs thought, it is possible to create DLLs in AutoIt. Already!

Functions

create DLL

call DLL

get the return of your DLL

Fake DLL structure

#include <DLL.au3>
;you can not run this file
;this is a fake dll!
 
_DLL_StartUp()
 
 
Func _MsgBox($vID,$vTitle,$vText)
    Dim $iMsgBox
    $iMsgBox = MsgBox($vID,$vTitle,$vText)
    _DLL_Return($iMsgBox)
EndFunc
 
Func _ToolTip($vTitle,$vText)
    Dim $iToolTip
    ToolTip($vText,1,1,$vTitle)
    Sleep(1000*5)
    _DLL_Return($iToolTip)
EndFunc
 
Func _Calculate($Var1,$Var2)
    _DLL_Return($Var1+$Var2)
EndFunc

call fake dll and get the return

#include <DLL.au3>
 
$MsgBox1 = _DLL_Call("mydll.exe","_MsgBox;64;titel;text goes here...")
MsgBox(1,"Return",$MsgBox1)
 
$MsgBox2 = _DLL_Call("mydll.exe","_MsgBox;1;titel;another msgbox ")
MsgBox(1,"Return",$MsgBox2)
 
_DLL_Call("mydll.exe","_ToolTip;titel;wow a tooltip :O")
 
MsgBox(1,"","As you see... everything works fine... now lets calculate with a fake dll call " & @CRLF & "5+3=?")
 
MsgBox(1,"","5+3=" & @CRLF & _DLL_Call("mydll.exe","_Calculate;5;3"))

Download

AutoIt DLL.zip

Share this post


Link to post
Share on other sites
Shafayat

It is slow as hell (because of using files and command line).

Besides, it is pointless.


[Not using this account any more. Using "iShafayet" instead]

Share this post


Link to post
Share on other sites
sl4y3r

You can exclude the functions in external files... --> better overview

protect the "dll code"

etc.

greetz

sl4y3r

Share this post


Link to post
Share on other sites
Shafayat

What do you mean by 'protecting' ?


[Not using this account any more. Using "iShafayet" instead]

Share this post


Link to post
Share on other sites
sl4y3r

What do you mean by 'protecting' ?

watch this :blink:

http://satva.team-sl4.com/

I think it is useless.

It's your opinion... Edited by sl4y3r

Share this post


Link to post
Share on other sites
Shafayat

you mean "Object not found!" error? That's what the page shows.


[Not using this account any more. Using "iShafayet" instead]

Share this post


Link to post
Share on other sites
sl4y3r

you mean "Object not found!" error? That's what the page shows.

Sorry, had to work on my ftp

http://satva.team-sl4.com/

watch this

Share this post


Link to post
Share on other sites
JohnOne

Hi sl4y3r

I struggling to understand what this is for, or what it does, could you provide an explanation at all?

I'm even more confused as to its relationship to software armouring.

I'd appreciate a bit of clarity if you have the time.

Thanks.


AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites
wraithdu

This is honestly very silly. You're forcing a DLL syntax as command lines to a precompied application and using files for return values. This has so many shortcomings, it's not even funny. You can't return pointers since the app is never loaded into memory anywhere. You can't return arrays, you can't return structures. You can't PASS pointers, arrays, or structures as arguments. And you had to use _RunDOS() instead of a simple RunWait(@compec...)?

It's a novel idea, but don't advertise it as any sort of DLL. In fact this is like using AutoIt blindfolded, with one hand, on a Chinese keyboard. Find another direction for this project, somehow make it useful, or just delete this thread... Sorry to be harsh, but this doesn't qualify as an 'example' of anything.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.