Jump to content

DEE - Dll Exports Viewer


monoceres
 Share

Recommended Posts

But what if it is a custom dll ? There might not be informations for those on the engines.

Sorry, it's not possible to gather this information from a stand-alone dll. The only thing that I think maybe can be done is getting the total size of the parameters, but that would probably (if it's possible) require some extensive digging in the assembly of the dll, something I'm simply not cabable of doing.

Looking good.

I'v been playing with commandline version and made some changes that makes it more user friendy (lol). This is only about user - program relation (communication) and has nothing to do with real program.

I'v added interactive mode that makes it unnotlikeable (actually heard this word once).

Check it out (I did not see this feature with any AutoIt's CUI):

; Snipped

When compiled, it can be used like before or in this new mode (doubleclick it, or call it with no parameers from command prompt). Left AutoIt3Wrapper_GUI directives.

btw, still crashing when loaded with resource-only dll.

Great! I replaced my old crappy one (as you might have guessed it took <10 minutes to write ) with yours and credited you for it :)

The crashes should be fixed for good now. Checked the pointer to the export directory so dlls without it won't crash now >_<

Broken link? PM me and I'll send you the file!

Link to comment
Share on other sites

Great! I replaced my old crappy one (as you might have guessed it took <10 minutes to write ) with yours and credited you for it :)

The crashes should be fixed for good now. Checked the pointer to the export directory so dlls without it won't crash now >_<

piece of tool

(you didn't remove #include <array.au3> line out of DEEcmd.au3 - it does nothing but adding extra weight)

♡♡♡

.

eMyvnE

Link to comment
Share on other sites

Fixed :)

Looks good. Now if you can just get it to return all the properties and methods it will be better than most that are available.

EDIT: And just so Sm0ke_N will stop nagging I meant parameters and methods.

Edited by GEOSoft

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

I allways liked that feature some applications have to be able to proccess files dropped on them. Sometimes that comes very handy.

Took liberty to modify DEE.au3 so that when compiled it has that ability.

#NoTrayIcon
#include "dllexports.au3"
#include <GuiListView.au3>
#include <windowsconstants.au3>
#include <GUIConstantsEx.au3>
#include <ie.au3>

Global Const $width = 400
Global Const $height = 400
Global $title = "DEE - Dll Exports Viewer"
Global $listview
Global $listviewheight = 315, $listviewwidth = 380, $listviewx = 10, $listviewy = 60
Global $fname, $dropped

Opt("GUIOnEventMode", 1)
$hwnd = GUICreate($title, $width, $height, -1, -1, $WS_SIZEBOX)
GUISetOnEvent(-3, "close")
GUISetIcon(@ScriptDir & "\icon.ico")
GUICtrlCreatePic(@ScriptDir & "\resources\open.jpg", 10, 10, 40, 40)
GUICtrlSetOnEvent(-1, "_LoadDLL")
GUICtrlSetResizing(-1, $GUI_DOCKALL)
GUICtrlCreatePic(@ScriptDir & "\resources\google.jpg", 70, 10, 120, 40)
GUICtrlSetOnEvent(-1, "google")
GUICtrlSetResizing(-1, $GUI_DOCKALL)
GUICtrlCreatePic(@ScriptDir & "\resources\msdn.jpg", 200, 10, 80, 40)
GUICtrlSetOnEvent(-1, "msdn")
GUICtrlSetResizing(-1, $GUI_DOCKALL)
GUICtrlCreatePic(@ScriptDir & "\resources\about.jpg", 290, 10, 40, 40)
GUICtrlSetOnEvent(-1, "about")
GUICtrlSetResizing(-1, $GUI_DOCKALL)
GUICtrlCreatePic(@ScriptDir & "\resources\exit.jpg", 340, 10, 40, 40)
GUICtrlSetOnEvent(-1, "close")
GUICtrlSetResizing(-1, $GUI_DOCKALL)
GUISetBkColor(0xF0F0F0)
$listview = _GUICtrlListView_Create($hwnd, "Function Name|Address", $listviewx, $listviewy, $listviewwidth, $listviewheight)
_GUICtrlListView_SetColumnWidth($listview, 0, 190)
_GUICtrlListView_SetColumnWidth($listview, 1, 190)
GUIRegisterMsg($WM_GETMINMAXINFO, "_Resizing")
GUISetState()

If @Compiled Then _LoadDLL(True)

Do
    Sleep(100)
Until False


Func _LoadDLL($dropped = False)
    
    If $dropped Then
        $fname = StringReplace($CmdLineRaw, '"', '')
    Else
        $fname = FileOpenDialog("DLL file to open", "", "DLL files (*.dll;*.ocx)")
    EndIf
    
    If $fname = "" Then Return

    $array = _GetExportedFunctions($fname)
    If IsArray($array) Then
        _GUICtrlListView_DeleteAllItems($listview)
        $title = "DEE - Viewing " & StringTrimLeft($fname, StringInStr($fname, "\", 0, -1))
        WinSetTitle($hwnd, "", $title)
        For $i = 0 To UBound($array) - 1
            _GUICtrlListView_AddItem($listview, $array[$i][0])
            _GUICtrlListView_AddSubItem($listview, $i, $array[$i][1], 1)

        Next
    EndIf
EndFunc   

Func google()
    For $i = 0 To _GUICtrlListView_GetItemCount($listview)
        If _GUICtrlListView_GetItemSelected($listview, $i) Then
            ShellExecute("http://www.google.com/search?hl=en&q=" & _GUICtrlListView_GetItemText($listview, $i))
            Return
        EndIf
        
    Next
    MsgBox(16, "Error", "You have to select a function!")
EndFunc

The rest of the code is the same as before.

Edited by trancexx

♡♡♡

.

eMyvnE

Link to comment
Share on other sites

  • 1 year later...
  • 11 months later...

This script fails in many ways.

Try my UDF instead.

Edited by Ascend4nt
Link to comment
Share on other sites

You mean 33.4KB uncompressed (for the File Import/Exports info). And don't blame monoceres' code crash on me

*edit: nm, I see that you mean monoceres' code was crashing (not mine), because there wasn't any exports. It's probably a .NET DLL or some COM related one? *shrugs*

Edited by Ascend4nt
Link to comment
Share on other sites

I am unable to download the link, can someone please verify

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Link to comment
Share on other sites

  • 2 weeks later...

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...