- https://github.com/Benjamin-Loison
- Joined on
2022-10-16
Block a user
Can't horizontally scroll panes and *...* buttons on Fennec
Run a given command once another given command starts running
Could inotifywait the created file or print as Mistral propose and grep -m 1 on it maybe.
Run a given command once another given command starts running
cat -A /proc/$(pidof sleep)/cmdline
sleep␀7297␀
Run a given command once another given command starts running
ls -l /proc/$(pidof sleep)/task/$(pidof sleep)/cmdline
-r--r--r-- 1 ubuntu ubuntu 0 Sep 13 22:31 /proc/8111/task/8111/cmdline
Run a given command once another given command starts running
grep -rw 7297 /proc/$(pidof sleep)/
Output:
grep: /proc/8111/task/8111/net/rpc/auth.unix.ip/flush: Permission denied
grep: /proc/8111/task/8111…
Run a given command once another given command starts running
ls -l /proc/$(pidof sleep)/cmdline
-r--r--r-- 1 ubuntu ubuntu 0 Sep 13 22:30 /proc/8089/cmdline
Run a given command once another given command starts running
tree /proc/$(pidof sleep)/
Output:
/proc/8075/
├── attr
│ ├── apparmor
│ │ ├── current
│ │ ├── exec
│ │ …
Run a given command once another given command starts running
https://chat.mistral.ai/chat/a63abce1-2e77-4752-928a-698503c0875d
Bash script:
sudo bpftrace --unsafe -e '
tracepoint:syscalls:sys_enter_execve
/str(a…
Run a given command once another given command starts running
DuckDuckGo and Google search "is an unsafe function being used in safe mode".
Run a given command once another given command starts running
Bash script:
sudo bpftrace -e '
tracepoint:syscalls:sys_enter_execve
/str(args.filename) == "/usr/bin/sleep"/
{
system("/usr/bin/touch /home/ubuntu…
Run a given command once another given command starts running
Listening to given program invocations, then investigate command line arguments would be fine.
Run a given command once another given command starts running
cat /proc/sys/fs/inotify/max_user_watches
65536
Run a given command once another given command starts running
inotifywait --recursive --monitor /proc/
Output:
Setting up watches. Beware: since -r was given, this may take a while!
Failed to watch…
Run a given command once another given command starts running
inotifywait --monitor /proc/
Output:
Setting up watches.
Watches established.
/proc/ OPEN meminfo
/proc/ ACCESS meminfo
/proc/ CLOSE_NOWRITE…
Run a given command once another given command starts running
I assume that the command that should be detected if not polled, should last enough to ask its command line arguments.