![]() |
![]() |
| Homepage | Article Title | Using Rundll | ||||
| Catalog | Original URL | http://www.ericphelps.com/batch/rundll/ | ||||
| Backup Time | 2004-8-10 3:02:25 | |||||
| Executor IP | 155.239.128.184 |
A "DLL" file is a special program that never gets run. Instead, it has lots of cool utilities inside it that other programs can use. And the rundll and rundll32 programs let us run those buried utilities inside DLL files from a command line. But there is a problem. The DOS command line only passes strings (characters and words). Some DLLs functions expect specially formatted numbers, memory addresses, window handles, or object references. We will never be able to use those functions. There are other DLLs that we could use but will probably never figure out. Too bad. But that still leaves us a few cool functions we can call! One way to find functions that can be activated via rundll (and rundll32) is to read through the Windows SDK (Software Development Kit). Ouch! Another way is to just pick exe and dll files at random and right-click them choosing "Quick View". If you scroll down, you might come to a section labeled "Exported Functions". That's what you want, but without further info on the needed arguments, you'll be left guessing as to whether they will work. Another way to find functions is to open any Explorer window and select "View" and "Options". Select the "File Types" tab and for each item hit the "Edit" button to see if rundll is used. Very tedious. Just as bad is searching the system registry. Guaranteed they will all work, but they may not do anything you want. But that's how things are. Here's a collection of rundll and rundll32 command lines I've collected: To bring up the "Format - 3 1/2 Floppy (A:)" window:
To bring up the Control Panel "Date/Time Properties" window:
To bring up the Control Panel "Display Properties" window:
To bring up the Control Panel "Display Properties" window and open the third
tab (the third tab is 2 because the first tab is 0): To bring up the Control Panel "Network" window: To bring up the Control Panel "System Properties" window:
To shut windows down using the Windows 3.1 API: To try for a reboot using the Windows 3.1 API: To shut Windows down using the Win32 API Make a beep Shuts off COM2 serial port if the port was opened under the Windows 3.1 API
Polite windows restart Polite power off Forced immediate logoff Open DUN (dial up networking exported file): Start a dialup connection by name NetMeeting Speeddial CNF: H.323 -or- Intel IPhone Internet telephony: URL Callto: URL: URL Rlogin / Telnet / TN3270: Email rfc822 EML: News rfc822 NWS: URL File: URL Mailto: INF install: INF active install New briefcase New LNK open aif play aif open auf play auf open avi play avi open channel file subscribe to channel print HTML printto HTML open midi play midi open MOV play MOV open MPEG play MPEG open sound play sound open unknown file install screensaver More great RUNDLL tips: |
| Visit Cooltang's Homepage | TOP |