Skip to content

Instantly share code, notes, and snippets.

View SweBarre's full-sized avatar

Jonas Forsberg SweBarre

  • Advania Sverige AB
  • 05:28 (UTC +01:00)
View GitHub Profile
@SweBarre
SweBarre / memfind.py
Created January 12, 2025 09:51
search memory used by a process for a string
#!/usr/bin/env python3
import sys
import string
from argparse import ArgumentParser
def create_parser(args=sys.argv[1:]):
parser = ArgumentParser()
parser.add_argument("--pid", "-p", type=int, help="the PID number of the process")
parser.add_argument("--string", "-s", help="Search string")