Skip to content

zimnyaa/pwrup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

usage

zig build embed -Doptimize=ReleaseSmall -Dtarget=x86_64-linux-gnu # creates pwr.sh in ./zig-out
. ./pwr.sh # or eval it
pwr <subcommand> <arguments>

explained at tishina.in/execution/bash-powerup

subcommands

pwr: pwr {rename NAME | tcpdump -i IFACE [-w FILE] [-x IP] | memgrep PID PATTERN | dlrun PATH SYMBOL | strace [-s LEN] PID}
    pwr

    Subcommands:
      rename NAME                          set process name (prctl + argv[0])
      tcpdump -i IFACE [-w FILE] [-x IP]   decode Ethernet/IPv4/IPv6/TCP/UDP
                                           optionally mirror to a pcap FILE,
                                           optionally drop frames matching IP
      memgrep PID PATTERN                  search readable regions of PID's
                                           address space for a literal PATTERN
      dlrun PATH SYMBOL                    dlopen PATH and call SYMBOL as
                                           void(void)
      strace [-s LEN] PID                  trace open/openat/read/write/close
                                           until SIGINT; with -s, snapshot up
                                           to LEN bytes of read/write data

About

.sh-loaded bash builtin to extend shell functionality

Resources

Stars

Watchers

Forks

Contributors

Languages