Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

peepmem

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

peepmem

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Peepmem

ruby module to peep memory of another process.

Installation

Add this line to your application's Gemfile:

gem 'peepmem'

And then execute:

$ bundle

Or install it yourself as:

$ gem install peepmem

Example

# Open process (pid = 3657)
handle = Peepmem.open(3657) # => #<Peepmem::Handle: PID=3657>
# Read memory at 0x00400000 as 16-byte string
pointer = handle[0x00400000] # => #<Peepmem::Pointer:0x00000000400000 PID=3657>
pointer['s16'] # => "\x7FELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# Read as null-terminated string
pointer['s'] # => "\x7FELF\x02\x01\x01"
# Seek 16 bytes and read memory as 2-byte unsigned integer
pointer += 16
pointer['u2'] # => 2
# Read as 2-byte unsigned integer, 4-byte unsigned integer and
# 8-byte unsigned integer
(pointer + 2)['u2 u4 u8'] # => [62, 1, 4209768]
# Read memory at 0x00400018 as a pointer
pointer = handle[0x00400018]['p'] # => #<Peepmem::Pointer:0x00000000403c68 PID=3657>>

Supported Platforms

  • Linux
  • Windows

Contributing

  1. Fork it ( https://github.com/kubo/ruby-peepmem/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

FAQs

Package last updated on 18 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc