Perl: Map out used memory addresses

Posted on 2007-07-22
Last Modified: 2008-03-17
How do I map out used memory addresses in perl?

I want to be able to tell which addresses are used and if possible by what program on a winXP system.

Thank you very much.


Question by:dr34m3rs
    LVL 15

    Expert Comment

    Look at MS's site at the
    Technet Script Center then find the download for
    Scriptomatic 2
    It has some basic scripts for windows management, any of the script scamples can also give the perl and vbscritp examples
    look at the Win32_Process example, it gives a bunch of info for each process


    LVL 1

    Author Comment

    Thank you for that, some really interesting stuff there...

    Please allow me to explain a little more clearly what I'm looking for though.

    For my own personal understanding and development, I want to be able to "snoop" on any given memory address (physical or virtual memory address) at any given time through perl.

    In other words:

    # code to find used memory address blocks

    # code to extract memory data

    This is purely for experimental reasons right now... later maybe I'll have a use.

    Thank you very much for any help ! ! !
    LVL 15

    Accepted Solution


    This looks at least a little promising, its says rev .20 but looks like it has a number of features that would help you:

    again you are only interested in Win32 right?


    LVL 1

    Author Comment

    Yes, Win32 only right now.

    That module looks like what I'm looking for. I will run some testing with it later today or tomorrow. Thank you very much - I will let you know. :-)

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
    Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    This video discusses moving either the default database or any database to a new volume.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now