Skip to content

Instantly share code, notes, and snippets.

@therealkenc
Created February 23, 2020 12:09
Show Gist options
  • Save therealkenc/c8003ab03388714d9c7b18d34a17c146 to your computer and use it in GitHub Desktop.
Save therealkenc/c8003ab03388714d9c7b18d34a17c146 to your computer and use it in GitHub Desktop.
193 execve("/mnt/c/Windows/System32/cmd.exe", ["/mnt/c/Windows/System32/cmd.exe", "/c", "echo", "test"], 0x7ffe028f2430 /* 19 vars */) = 0
193 arch_prctl(ARCH_SET_FS, 0x29c110) = 0
193 set_tid_address(0x29c148) = 193
193 brk(NULL) = 0x20ed000
193 brk(0x20ee000) = 0x20ee000
193 sched_getaffinity(0, 128, [0, 1, 2, 3, 4, 5, 6, 7]) = 32
193 getpid() = 193
193 getcwd("/home/ken", 4096) = 10
193 uname({sysname="Linux", nodename="DESKTOP-CNKB6C9", ...}) = 0
193 getcwd("/home/ken", 4096) = 10
193 open("/mnt/c/Windows/System32/cmd.exe", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_PATH) = 3
193 readlink("/proc/self/fd/3", "/mnt/c/Windows/System32/cmd.exe", 4095) = 31
193 fstat(3, {st_mode=S_IFREG|0555, st_size=290816, ...}) = 0
193 stat("/mnt/c/Windows/System32/cmd.exe", {st_mode=S_IFREG|0555, st_size=290816, ...}) = 0
193 close(3) = 0
193 open("/proc/self/mountinfo", O_RDONLY) = 3
193 readv(3, [{iov_base="", iov_len=0}, {iov_base="38 26 8:16 / / rw,relatime - ext"..., iov_len=1024}], 2) = 1024
193 readv(3, [{iov_base="", iov_len=0}, {iov_base="de=755\n51 50 0:30 / /sys/fs/cgro"..., iov_len=1024}], 2) = 1024
193 readv(3, [{iov_base="", iov_len=0}, {iov_base="group cgroup rw,net_prio\n62 50 0"..., iov_len=1024}], 2) = 796
193 readv(3, [{iov_base="", iov_len=0}, {iov_base="", iov_len=1024}], 2) = 0
193 close(3) = 0
193 getcwd("/home/ken", 4096) = 10
193 open("/proc/self/mountinfo", O_RDONLY) = 3
193 readv(3, [{iov_base="", iov_len=0}, {iov_base="38 26 8:16 / / rw,relatime - ext"..., iov_len=1024}], 2) = 1024
193 readv(3, [{iov_base="", iov_len=0}, {iov_base="de=755\n51 50 0:30 / /sys/fs/cgro"..., iov_len=1024}], 2) = 1024
193 readv(3, [{iov_base="", iov_len=0}, {iov_base="group cgroup rw,net_prio\n62 50 0"..., iov_len=1024}], 2) = 796
193 readv(3, [{iov_base="", iov_len=0}, {iov_base="", iov_len=1024}], 2) = 0
193 close(3) = 0
193 getppid() = 191
193 access("/run/WSL/191_interop", F_OK) = -1 ENOENT (No such file or directory)
193 open("/proc/191/stat", O_RDONLY) = 3
193 readv(3, [{iov_base="", iov_len=0}, {iov_base="191 (strace) S 178 191 178 34816"..., iov_len=1024}], 2) = 308
193 close(3) = 0
193 access("/run/WSL/178_interop", F_OK) = -1 ENOENT (No such file or directory)
193 open("/proc/178/stat", O_RDONLY) = 3
193 readv(3, [{iov_base="", iov_len=0}, {iov_base="178 (bash) S 177 178 178 34816 1"..., iov_len=1024}], 2) = 322
193 close(3) = 0
193 access("/run/WSL/177_interop", F_OK) = -1 ENOENT (No such file or directory)
193 open("/proc/177/stat", O_RDONLY) = 3
193 readv(3, [{iov_base="", iov_len=0}, {iov_base="177 (sshd) S 81 81 81 0 -1 42110"..., iov_len=1024}], 2) = 166
193 close(3) = 0
193 access("/run/WSL/81_interop", F_OK) = -1 ENOENT (No such file or directory)
193 open("/proc/81/stat", O_RDONLY) = 3
193 readv(3, [{iov_base="", iov_len=0}, {iov_base="81 (sshd) S 51 81 81 0 -1 421094"..., iov_len=1024}], 2) = 176
193 close(3) = 0
193 access("/run/WSL/51_interop", F_OK) = -1 ENOENT (No such file or directory)
193 open("/proc/51/stat", O_RDONLY) = 3
193 readv(3, [{iov_base="", iov_len=0}, {iov_base="51 (sshd) S 9 51 51 0 -1 4211008"..., iov_len=1024}], 2) = 164
193 close(3) = 0
193 access("/run/WSL/9_interop", F_OK) = 0
193 socket(AF_UNIX, SOCK_SEQPACKET|SOCK_CLOEXEC, 0) = 3
193 connect(3, {sa_family=AF_UNIX, sun_path="/run/WSL/9_interop"}, 110) = 0
193 write(3, "\22\0\0\0\10\0\0\0", 8) = 8
193 read(3, "Ubuntu-18.04", 256) = 12
193 close(3) = 0
193 ioctl(0, TCGETS, {B9600 opost isig icanon echo ...}) = 0
193 ioctl(1, TCGETS, {B9600 opost isig icanon echo ...}) = 0
193 ioctl(2, TCGETS, {B9600 opost isig icanon echo ...}) = 0
193 ioctl(0, TIOCGPGRP, [191]) = 0
193 getpgid(0) = 191
193 fstat(0, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
193 fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
193 fstat(2, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
193 ioctl(0, TIOCGWINSZ, {ws_row=42, ws_col=117, ws_xpixel=640, ws_ypixel=480}) = 0
193 ioctl(0, SNDCTL_TMR_START or TCSETS, {B9600 -opost -isig -icanon -echo ...}) = 0
193 dup(0) = 3
193 socket(AF_VSOCK, SOCK_STREAM|SOCK_CLOEXEC, 0) = 4
193 bind(4, {sa_family=AF_VSOCK, sa_data="\0\0\377\377\377\377\377\377\377\377\0\0\0\0"}, 16) = 0
193 getsockname(4, {sa_family=AF_VSOCK, sa_data="\0\0\17\4\0\0\377\377\377\377\0\0\0\0"}, [16]) = 0
193 listen(4, 4) = 0
193 socket(AF_UNIX, SOCK_SEQPACKET|SOCK_CLOEXEC, 0) = 5
193 connect(5, {sa_family=AF_UNIX, sun_path="/run/WSL/9_interop"}, 110) = 0
193 write(5, "\6\0\0\0\270\0\0\0\17\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 184) = 184
193 accept4(4, {sa_family=AF_VSOCK, sa_data="\0\0\n\0\0\200\377\377\377\377\0\0\0\0"}, [16], SOCK_CLOEXEC) = 6
193 accept4(4, {sa_family=AF_VSOCK, sa_data="\0\0\v\0\0\200\377\377\377\377\0\0\0\0"}, [16], SOCK_CLOEXEC) = 7
193 accept4(4, {sa_family=AF_VSOCK, sa_data="\0\0\f\0\0\200\377\377\377\377\0\0\0\0"}, [16], SOCK_CLOEXEC) = 8
193 accept4(4, {sa_family=AF_VSOCK, sa_data="\0\0\r\0\0\200\377\377\377\377\0\0\0\0"}, [16], SOCK_CLOEXEC) = 9
193 close(4) = 0
193 rt_sigprocmask(SIG_BLOCK, [INT WINCH], NULL, 8) = 0
193 signalfd4(-1, [INT WINCH], 8, 0) = 4
193 poll([{fd=0, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=4, events=POLLIN}], 5, -1) = 1 ([{fd=9, revents=POLLIN}])
193 brk(0x20f0000) = 0x20f0000
193 recvfrom(9, "\t\0\0\0 \0\0\0", 8, MSG_WAITALL, NULL, NULL) = 8
193 recvfrom(9, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 24, 0, NULL, NULL) = 24
193 poll([{fd=0, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=4, events=POLLIN}], 5, -1) = 1 ([{fd=7, revents=POLLIN}])
193 poll([{fd=7, events=POLLIN}], 1, -1) = 1 ([{fd=7, revents=POLLIN}])
193 read(7, "\33[6n", 4096) = 4
193 write(1, "\33[6n", 4) = 4
193 poll([{fd=0, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=4, events=POLLIN}], 5, -1) = 1 ([{fd=0, revents=POLLIN}])
193 poll([{fd=0, events=POLLIN}], 1, -1) = 1 ([{fd=0, revents=POLLIN}])
193 read(0, "\33", 4096) = 1
193 write(6, "\33", 1) = 1
193 poll([{fd=0, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=4, events=POLLIN}], 5, -1) = 1 ([{fd=0, revents=POLLIN}])
193 poll([{fd=0, events=POLLIN}], 1, -1) = 1 ([{fd=0, revents=POLLIN}])
193 read(0, "[4", 4096) = 2
193 write(6, "[4", 2) = 2
193 poll([{fd=0, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=4, events=POLLIN}], 5, -1) = 1 ([{fd=0, revents=POLLIN}])
193 poll([{fd=0, events=POLLIN}], 1, -1) = 1 ([{fd=0, revents=POLLIN}])
193 read(0, "2;", 4096) = 2
193 write(6, "2;", 2) = 2
193 poll([{fd=0, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=4, events=POLLIN}], 5, -1) = 1 ([{fd=0, revents=POLLIN}])
193 poll([{fd=0, events=POLLIN}], 1, -1) = 1 ([{fd=0, revents=POLLIN}])
193 read(0, "1R", 4096) = 2
193 write(6, "1R", 2) = 2
193 poll([{fd=0, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=4, events=POLLIN}], 5, -1) = 1 ([{fd=0, revents=POLLIN}])
193 poll([{fd=0, events=POLLIN}], 1, -1) = 1 ([{fd=0, revents=POLLIN}])
193 read(0, "\3", 4096) = 1
193 write(6, "\3", 1) = 1
193 poll([{fd=0, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=4, events=POLLIN}], 5, -1) = 1 ([{fd=0, revents=POLLIN}])
193 poll([{fd=0, events=POLLIN}], 1, -1) = 1 ([{fd=0, revents=POLLIN}])
193 read(0, "\3", 4096) = 1
193 write(6, "\3", 1) = 1
193 poll([{fd=0, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=4, events=POLLIN}], 5, -1) = 1 ([{fd=0, revents=POLLIN}])
193 poll([{fd=0, events=POLLIN}], 1, -1) = 1 ([{fd=0, revents=POLLIN}])
193 read(0, "\3", 4096) = 1
193 write(6, "\3", 1) = 1
193 poll([{fd=0, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=4, events=POLLIN}], 5, -1) = 1 ([{fd=0, revents=POLLIN}])
193 poll([{fd=0, events=POLLIN}], 1, -1) = 1 ([{fd=0, revents=POLLIN}])
193 read(0, "\3", 4096) = 1
193 write(6, "\3", 1) = 1
193 poll([{fd=0, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=4, events=POLLIN}], 5, -1) = 1 ([{fd=0, revents=POLLIN}])
193 poll([{fd=0, events=POLLIN}], 1, -1) = 1 ([{fd=0, revents=POLLIN}])
193 read(0, "\3", 4096) = 1
193 write(6, "\3", 1) = 1
193 poll([{fd=0, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=4, events=POLLIN}], 5, -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment