Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ancat/hypercam
A tool for interacting with live processes/containers
https://github.com/ancat/hypercam
containers hypercam2 incident-response
Last synced: about 2 months ago
JSON representation
A tool for interacting with live processes/containers
- Host: GitHub
- URL: https://github.com/ancat/hypercam
- Owner: ancat
- Created: 2022-09-11T16:34:46.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-21T02:02:14.000Z (over 2 years ago)
- Last Synced: 2024-06-19T23:15:10.285Z (7 months ago)
- Topics: containers, hypercam2, incident-response
- Language: Go
- Homepage:
- Size: 14.6 KB
- Stars: 21
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hypercam
hypercam is a tool that lets you interact with processes and containers at a lower level than most other interfaces, letting you do some neat things that would otherwise not be possible.
## Features
* Pause and unpause containers/processes
* Open a live shell into paused containers, allowing you to inspect container state as is
* Open shells (or any arbitrary program!) inside containers whose images don't come with them
* Mount a directory into running containers to make moving files in and out easier
* Dump strings/a hexdump of the heap and stack of any process```
$ sudo hypercam -h
NAME:
hypercam - A new cli applicationUSAGE:
hypercam [global options] command [command options] [arguments...]COMMANDS:
pause pause an entire cgroup by its pid
unpause resume an entire cgroup by its pid
info view open files and sockets for a given target
splice splice an interactive shell into the target
help, h Shows a list of commands or help for one commandGLOBAL OPTIONS:
--help, -h show help (default: false)$ sudo hypercam info 4106
nginx: master process nginx -g daemon off; (/usr/sbin/nginx) 4106
- Open Socket: 0.0.0.0:80<->0.0.0.0:0
bash (/bin/bash) 24355
bash (/bin/bash) 30267
nginx: worker process (/usr/sbin/nginx) 31689
- Open Socket: 172.17.0.2:80<->151.101.117.140:52200
- Open Socket: 0.0.0.0:80<->0.0.0.0:0$ sudo hypercam pause 4106
$ sudo hypercam splice 4106
root@nginx:/# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.2 10644 2808 ? Ds Mar16 0:00 nginx: master process nginx
root 284 0.0 0.0 3868 0 pts/0 Ds+ Mar16 0:00 bash
root 4214 0.0 0.0 3864 96 pts/1 Ds+ Sep05 0:00 bash
nginx 4263 0.0 0.0 11100 604 ? D Sep05 0:00 nginx: worker process
root 7226 0.0 0.2 7636 2708 ? R+ 16:36 0:00 ps aux
root@nginx:/# etc...
root@nginx:/# exit$ sudo hypercam unpause 4106
```