Roth Consulting

Bullet Do you have a script to share? Contact us!
Bullet Perl script authors share their brains in the Perl Script Repository. Bullet Have a look at what we are discussing in the Windows Perl Blog. Bullet Discuss Windows Perl and other things in the Windows Perl Forum. Bullet

You can read Dave Roth's articles published in the Windows IT Pro magazine (formally known as Windows .NET Magazine) that use Perl to accomplish interesting tasks.

Bullet Check out Dave Roth's Win32 Perl columns in the Windows Scripting Solutions journal. Bullet

Our Administrator's Handbook book is here and not a moment too soon!
Win32 Perl Scripting: Administrator's Handbook

Available at Amazon.com

Bullet

The 2nd edition of our Win32 Perl Programming: Standard Extensions is available.

Available at Amazon.com

Bullet The definitive word for Win32 Perl is ActiveState Tool Corporation. Bullet Off topic:
Are you searching for a children's bike trailer? Bullet

Check out our recommended reading list.

Google

Web Roth Consulting
Totally off topic:
The Politics of BizarroLand

Perl Script Repository

There are many Perl programmers in the world. So many, in fact, that there is probably someone who has already written a script which identifies a solution to a problem you may have. In an ideal world it would be easy to locate these individuals so that you could ask them how they solved your particular problem. Since this world is far from ideal we are attempting to make it just a bit nicer with this scripts page.


Discuss these scripts in
our online forums.

Here one can find a plethora of Perl scripts with descriptions on how they work as well as information about the author of the script.

The Scripts

These scripts are broken out by category. The categories are:
Administration scripts
(back to the topic list)
 Script   Version   Author   Description 
1) AdsiUsageSamples.pl  1.0  Arnon Ayal  Sample code: Use ADSI to create IIS virtual & FTP directory.  
2) ADSI_Ex.pl  1.0  Harlan Carvey  Script to demonstrate the use of ADSI on a local NT machine.  
3) ChRes.pl  1.0  Aldo Calpini  Change the Windows display resolution.  
4) CloseFiles.pl  20040219  Dave Roth  Forces specified files to close on a remote server  
5) DiskPig.pl  1.0  Paul Popour  Used to calculate and record disk space utilization in user, group and profile directories.  
6) DumpEvt.pl  1.0  Harlan Carvey  Displays the Event Log from a remote machine.  
7) EventLog.pl  20020405  Dave Roth  Queries and displays remote Win32 event logs.  
8) Exchange_2k_SMTP_ACL.pl  1.0  Steven Manross  Configures Exchange 2000 SMTP IP ACLs  
9) FindInPath.pl  1.0  Dave Roth  Looks for a particular file in the PATH.  
10) GetIP.pl  1.0  Dave Roth  Retrieve all IP addresses and subnet masks for a given machine  
11) GetLogonServer.pl  1.1  Frank Brown  Lists authenticating server for workstation(s)  
12) GetProcessGroups.pl  1.0  Dave Roth  Display what group membership a process has.  
13) Memory.pl  1.0  Dave Roth  Display a machine's memory configuration.  
14) Modules.pl  20030524  Dave Roth  Displays modules loaded for a given process  
15) NTPStat.pl  1.0  Paul Popour  Perl script to monitor the print server queues on NT servers.  
16) Null.pl  1.06  Harlan Carvey  Script to test enumeration via null sessions on NT machines  
17) OpenFiles.pl  20040219  Dave Roth  Display all files opened remotely from a server  
18) Password.pl  1.0  George Shaffer  Generates secure user passwords that are easy to remember but difficult to crack.  
19) ProcList.pl  1.0  Dave Roth  List all processes and their PIDs.  
20) ProcTree.pl  1.1  Dave Roth  Display a process's parent processes.  
21) QueryOS.pl  1.0  Dave Roth  Display information about the Windows OS.  
22) SAAudit.pl  1.0  Paul Popour  Perl script discovers non LocalSystem accounts used by services.  
23) SC.pl  1.0  Paul Popour  Service manager Perl script.  
24) ServiceManager.pl  1.0  Arnon Ayal  A simple service manager.  
25) Show_Service.pl  1.01  Thomas Berger  Displays registered services, their states and start configuration  
26) SrvCpuMem.pl  1.02  Paul Popour  Perl script to examine the CPU and memory size for each server in a domain.  
27) Tasks.pl  1.0  Paul Popour  Perl script to examine NT's scheduled AT jobs via the Registry.  
28) Tcp-Ip-Info.pl  1.3  Steven Manross  Remote TCP/IP Network Config on a Windows NT Box  
29) UpTimeMon.pl  20020602  Dave Roth  Monitors servers and updates Win32 Event Log when a server is down.  
30) UrAudit.pl  1.0  Paul Popour  Reports and records user rights on all servers in a domain  
31) WebRobot.pl  1.0  Arnon Ayal  HTTP robot that collects E-mail addresses from web pages.  
32) wmi-Generic.pl  1.0  Steven Manross  List all the available WMI properties for a various WMI Class on a remote or local box  
33) WMI_Kill.pl  20050817  Dave Roth  Terminates running processes on local or remote machine using WMI  
34) WMI_PS.pl  20060131  Dave Roth  Displays running processes on local or remote machine using WMI  
35) WMI_Run.pl  20050817  Dave Roth  Launches a process on local or remote machine using WMI  
36) WSClean.pl  1.0  Paul Popour  Reports and optionally purges dead workstations accounts.  
37) wtsUsers.pl  20051013  Dave Roth  Displays information about users logged into a machine via Terminal Server.  

 

Adsi scripts
(back to the topic list)
 Script   Version   Author   Description 
1) AdsiUsageSamples.pl  1.0  Arnon Ayal  Sample code: Use ADSI to create IIS virtual & FTP directory.  
2) ADSI_Ex.pl  1.0  Harlan Carvey  Script to demonstrate the use of ADSI on a local NT machine.  

 

Cgi scripts
(back to the topic list)
 Script   Version   Author   Description 
1) ODBCQry.pl  1.0  Alan Johnston  Queries an ODBC DSN for information through the web. This is a web CGI script.  

 

Database scripts
(back to the topic list)
 Script   Version   Author   Description 
1) AdoUsageSamples.pl  1.0  Arnon Ayal  Sample code: Running SQL queries & store procedures using Active Data Objects (ADO).  
2) DBGrid.pl  1.0  Eric Hansen  A database grid script using Win32::ODBC  
3) DBInfo.pl  1.0  Dave Roth  Dump information on a given ODBC data source  
4) Func.pl  1.0  Dave Roth  Discover which functions an ODBC driver supports  
5) ODBCQry.pl  1.0  Alan Johnston  Queries an ODBC DSN for information through the web. This is a web CGI script.  

 

Maintenance scripts
(back to the topic list)
 Script   Version   Author   Description 
1) CloseFiles.pl  20040219  Dave Roth  Forces specified files to close on a remote server  
2) DBInfo.pl  1.0  Dave Roth  Dump information on a given ODBC data source  
3) DiskPig.pl  1.0  Paul Popour  Used to calculate and record disk space utilization in user, group and profile directories.  
4) DumpShares.pl  1.0  Dave Roth  Displays shared directories on a remote machine  
5) EventLog.pl  20020405  Dave Roth  Queries and displays remote Win32 event logs.  
6) Exchange_2k_SMTP_ACL.pl  1.0  Steven Manross  Configures Exchange 2000 SMTP IP ACLs  
7) FindInPath.pl  1.0  Dave Roth  Looks for a particular file in the PATH.  
8) Func.pl  1.0  Dave Roth  Discover which functions an ODBC driver supports  
9) GetIP.pl  1.0  Dave Roth  Retrieve all IP addresses and subnet masks for a given machine  
10) Memory.pl  1.0  Dave Roth  Display a machine's memory configuration.  
11) Modules.pl  20030524  Dave Roth  Displays modules loaded for a given process  
12) NetUser.pl  1.0  Anonymous  Dump information about a user account  
13) NTPStat.pl  1.0  Paul Popour  Perl script to monitor the print server queues on NT servers.  
14) Null.pl  1.06  Harlan Carvey  Script to test enumeration via null sessions on NT machines  
15) OpenFiles.pl  20040219  Dave Roth  Display all files opened remotely from a server  
16) ProcList.pl  1.0  Dave Roth  List all processes and their PIDs.  
17) ProcTree.pl  1.1  Dave Roth  Display a process's parent processes.  
18) QueryOS.pl  1.0  Dave Roth  Display information about the Windows OS.  
19) SAAudit.pl  1.0  Paul Popour  Perl script discovers non LocalSystem accounts used by services.  
20) SC.pl  1.0  Paul Popour  Service manager Perl script.  
21) Show_Service.pl  1.01  Thomas Berger  Displays registered services, their states and start configuration  
22) SrvCpuMem.pl  1.02  Paul Popour  Perl script to examine the CPU and memory size for each server in a domain.  
23) Tcp-Ip-Info.pl  1.3  Steven Manross  Remote TCP/IP Network Config on a Windows NT Box  
24) UpTimeMon.pl  20020602  Dave Roth  Monitors servers and updates Win32 Event Log when a server is down.  
25) wmi-Generic.pl  1.0  Steven Manross  List all the available WMI properties for a various WMI Class on a remote or local box  
26) WMI_Kill.pl  20050817  Dave Roth  Terminates running processes on local or remote machine using WMI  
27) WMI_PS.pl  20060131  Dave Roth  Displays running processes on local or remote machine using WMI  
28) WMI_Run.pl  20050817  Dave Roth  Launches a process on local or remote machine using WMI  
29) WSClean.pl  1.0  Paul Popour  Reports and optionally purges dead workstations accounts.  
30) wtsUsers.pl  20051013  Dave Roth  Displays information about users logged into a machine via Terminal Server.  

 

Security scripts
(back to the topic list)
 Script   Version   Author   Description 
1) DumpEvt.pl  1.0  Harlan Carvey  Displays the Event Log from a remote machine.  
2) EventLog.pl  20020405  Dave Roth  Queries and displays remote Win32 event logs.  
3) Exchange_2k_SMTP_ACL.pl  1.0  Steven Manross  Configures Exchange 2000 SMTP IP ACLs  
4) GetProcessGroups.pl  1.0  Dave Roth  Display what group membership a process has.  
5) Null.pl  1.06  Harlan Carvey  Script to test enumeration via null sessions on NT machines  
6) Password.pl  1.0  George Shaffer  Generates secure user passwords that are easy to remember but difficult to crack.  
7) ScanShares.pl  1.0  Harlan Carvey  Scans a subnet looking for open shares  
8) Tcp-Ip-Info.pl  1.3  Steven Manross  Remote TCP/IP Network Config on a Windows NT Box  
9) UrAudit.pl  1.0  Paul Popour  Reports and records user rights on all servers in a domain  
10) WebCheck.pl  1.0  Harlan Carvey  Script to send URLs to an IIS webserver and check for responses. The responses will indicate the presence or lack of a particular vulnerability  
11) wmi-Generic.pl  1.0  Steven Manross  List all the available WMI properties for a various WMI Class on a remote or local box  
12) WSClean.pl  1.0  Paul Popour  Reports and optionally purges dead workstations accounts.  

 

Web scripts
(back to the topic list)
 Script   Version   Author   Description 
1) IEEvents.pl  20000516  Dave Roth  Trap IE's events to prevent advertisements and popup windows.  
2) ODBCQry.pl  1.0  Alan Johnston  Queries an ODBC DSN for information through the web. This is a web CGI script.  
3) WebCheck.pl  1.0  Harlan Carvey  Script to send URLs to an IIS webserver and check for responses. The responses will indicate the presence or lack of a particular vulnerability  
4) WebRobot.pl  1.0  Arnon Ayal  HTTP robot that collects E-mail addresses from web pages.  

 

Web server scripts
(back to the topic list)
 Script   Version   Author   Description 
1) WebCheck.pl  1.0  Harlan Carvey  Script to send URLs to an IIS webserver and check for responses. The responses will indicate the presence or lack of a particular vulnerability  

 

Win32 service scripts
(back to the topic list)
 Script   Version   Author   Description 
1) DirMon.pl  20040813  Dave Roth  Win32 service that monitors file changes made to a directory  

 

Wmi scripts
(back to the topic list)
 Script   Version   Author   Description 
1) Memory.pl  1.0  Dave Roth  Display a machine's memory configuration.  
2) ProcList.pl  1.0  Dave Roth  List all processes and their PIDs.  
3) ProcTree.pl  1.1  Dave Roth  Display a process's parent processes.  
4) QueryOS.pl  1.0  Dave Roth  Display information about the Windows OS.  
5) wmi-Generic.pl  1.0  Steven Manross  List all the available WMI properties for a various WMI Class on a remote or local box  
6) WMI_Kill.pl  20050817  Dave Roth  Terminates running processes on local or remote machine using WMI  
7) WMI_PS.pl  20060131  Dave Roth  Displays running processes on local or remote machine using WMI  
8) WMI_Run.pl  20050817  Dave Roth  Launches a process on local or remote machine using WMI  
9) wtsUsers.pl  20051013  Dave Roth  Displays information about users logged into a machine via Terminal Server.  

 

Note: Neither Roth Consulting nor its affiliates are responsible for problems resulting from the misuse, modification or execution of any of the scripts on this web site. It is best that the the user read over the script carefully to insure that the code is not harmful to his environment.


This site has been hit 7,561,010 times since May 22, 2001




Roth Consulting
Copyright © 1996 - 2008 Roth Consulting.

Last updated 2007.03.25