Created
March 24, 2024 03:39
-
-
Save zeroarst/ed8af7851d6b9697944492d23b41fd38 to your computer and use it in GitHub Desktop.
strace for ping command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
execve("/usr/bin/ping", ["ping"], 0x7ffcea24eba8 /* 34 vars */) = 0 | |
access("/etc/suid-debug", F_OK) = -1 ENOENT (No such file or directory) | |
brk(NULL) = 0x55fe078d1000 | |
arch_prctl(0x3001 /* ARCH_??? */, 0x7ffcd925d700) = -1 EINVAL (Invalid argument) | |
fcntl(0, F_GETFD) = 0 | |
fcntl(1, F_GETFD) = 0 | |
fcntl(2, F_GETFD) = 0 | |
access("/etc/suid-debug", F_OK) = -1 ENOENT (No such file or directory) | |
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) | |
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 | |
fstat(3, {st_mode=S_IFREG|0644, st_size=48791, ...}) = 0 | |
mmap(NULL, 48791, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f57a0b02000 | |
close(3) = 0 | |
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libcap.so.2", O_RDONLY|O_CLOEXEC) = 3 | |
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300#\0\0\0\0\0\0"..., 832) = 832 | |
fstat(3, {st_mode=S_IFREG|0644, st_size=31120, ...}) = 0 | |
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f57a0b00000 | |
mmap(NULL, 33112, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f57a0af7000 | |
mprotect(0x7f57a0af9000, 20480, PROT_NONE) = 0 | |
mmap(0x7f57a0af9000, 12288, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f57a0af9000 | |
mmap(0x7f57a0afc000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5000) = 0x7f57a0afc000 | |
mmap(0x7f57a0afe000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7f57a0afe000 | |
close(3) = 0 | |
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libgcrypt.so.20", O_RDONLY|O_CLOEXEC) = 3 | |
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\305\0\0\0\0\0\0"..., 832) = 832 | |
fstat(3, {st_mode=S_IFREG|0644, st_size=1168056, ...}) = 0 | |
mmap(NULL, 1171400, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f57a09d9000 | |
mmap(0x7f57a09e5000, 843776, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xc000) = 0x7f57a09e5000 | |
mmap(0x7f57a0ab3000, 249856, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xda000) = 0x7f57a0ab3000 | |
mmap(0x7f57a0af0000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x116000) = 0x7f57a0af0000 | |
close(3) = 0 | |
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libresolv.so.2", O_RDONLY|O_CLOEXEC) = 3 | |
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 G\0\0\0\0\0\0"..., 832) = 832 | |
fstat(3, {st_mode=S_IFREG|0644, st_size=101352, ...}) = 0 | |
mmap(NULL, 113280, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f57a09bd000 | |
mmap(0x7f57a09c1000, 65536, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0x7f57a09c1000 | |
mmap(0x7f57a09d1000, 16384, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14000) = 0x7f57a09d1000 | |
mmap(0x7f57a09d5000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7f57a09d5000 | |
mmap(0x7f57a09d7000, 6784, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f57a09d7000 | |
close(3) = 0 | |
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 | |
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300A\2\0\0\0\0\0"..., 832) = 832 | |
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784 | |
pread64(3, "\4\0\0\0\20\0\0\0\5\0\0\0GNU\0\2\0\0\300\4\0\0\0\3\0\0\0\0\0\0\0", 32, 848) = 32 | |
pread64(3, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0\356\276]_K`\213\212S\354Dkc\230\33\272"..., 68, 880) = 68 | |
fstat(3, {st_mode=S_IFREG|0755, st_size=2029592, ...}) = 0 | |
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784 | |
pread64(3, "\4\0\0\0\20\0\0\0\5\0\0\0GNU\0\2\0\0\300\4\0\0\0\3\0\0\0\0\0\0\0", 32, 848) = 32 | |
pread64(3, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0\356\276]_K`\213\212S\354Dkc\230\33\272"..., 68, 880) = 68 | |
mmap(NULL, 2037344, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f57a07cb000 | |
mmap(0x7f57a07ed000, 1540096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x22000) = 0x7f57a07ed000 | |
mmap(0x7f57a0965000, 319488, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19a000) = 0x7f57a0965000 | |
mmap(0x7f57a09b3000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e7000) = 0x7f57a09b3000 | |
mmap(0x7f57a09b9000, 13920, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f57a09b9000 | |
close(3) = 0 | |
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libgpg-error.so.0", O_RDONLY|O_CLOEXEC) = 3 | |
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`L\0\0\0\0\0\0"..., 832) = 832 | |
fstat(3, {st_mode=S_IFREG|0644, st_size=137584, ...}) = 0 | |
mmap(NULL, 139872, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f57a07a8000 | |
mmap(0x7f57a07ac000, 77824, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0x7f57a07ac000 | |
mmap(0x7f57a07bf000, 40960, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7f57a07bf000 | |
mmap(0x7f57a07c9000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x20000) = 0x7f57a07c9000 | |
close(3) = 0 | |
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f57a07a6000 | |
arch_prctl(ARCH_SET_FS, 0x7f57a07a7040) = 0 | |
mprotect(0x7f57a09b3000, 16384, PROT_READ) = 0 | |
mprotect(0x7f57a07c9000, 4096, PROT_READ) = 0 | |
mprotect(0x7f57a09d5000, 4096, PROT_READ) = 0 | |
mprotect(0x7f57a0af0000, 8192, PROT_READ) = 0 | |
mprotect(0x7f57a0afe000, 4096, PROT_READ) = 0 | |
mprotect(0x55fe070c1000, 4096, PROT_READ) = 0 | |
mprotect(0x7f57a0b3b000, 4096, PROT_READ) = 0 | |
munmap(0x7f57a0b02000, 48791) = 0 | |
brk(NULL) = 0x55fe078d1000 | |
brk(0x55fe078f2000) = 0x55fe078f2000 | |
prctl(PR_CAPBSET_READ, CAP_MAC_OVERRIDE) = 1 | |
prctl(PR_CAPBSET_READ, 0x30 /* CAP_??? */) = -1 EINVAL (Invalid argument) | |
prctl(PR_CAPBSET_READ, 0x28 /* CAP_??? */) = 1 | |
prctl(PR_CAPBSET_READ, 0x2c /* CAP_??? */) = -1 EINVAL (Invalid argument) | |
prctl(PR_CAPBSET_READ, 0x2a /* CAP_??? */) = -1 EINVAL (Invalid argument) | |
prctl(PR_CAPBSET_READ, 0x29 /* CAP_??? */) = -1 EINVAL (Invalid argument) | |
capget({version=_LINUX_CAPABILITY_VERSION_3, pid=0}, NULL) = 0 | |
capget({version=_LINUX_CAPABILITY_VERSION_3, pid=0}, {effective=0, permitted=0, inheritable=0}) = 0 | |
capget({version=_LINUX_CAPABILITY_VERSION_3, pid=0}, NULL) = 0 | |
capset({version=_LINUX_CAPABILITY_VERSION_3, pid=0}, {effective=0, permitted=0, inheritable=0}) = 0 | |
prctl(PR_SET_KEEPCAPS, 1) = 0 | |
getuid() = 1000 | |
setuid(1000) = 0 | |
prctl(PR_SET_KEEPCAPS, 0) = 0 | |
getuid() = 1000 | |
geteuid() = 1000 | |
openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3 | |
fstat(3, {st_mode=S_IFREG|0644, st_size=3035952, ...}) = 0 | |
mmap(NULL, 3035952, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f57a04c0000 | |
close(3) = 0 | |
openat(AT_FDCWD, "/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3 | |
fstat(3, {st_mode=S_IFREG|0644, st_size=2996, ...}) = 0 | |
read(3, "# Locale name alias data base.\n#"..., 4096) = 2996 | |
read(3, "", 4096) = 0 | |
close(3) = 0 | |
openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) = 3 | |
fstat(3, {st_mode=S_IFREG|0644, st_size=252, ...}) = 0 | |
mmap(NULL, 252, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f57a0b3a000 | |
close(3) = 0 | |
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache", O_RDONLY) = 3 | |
fstat(3, {st_mode=S_IFREG|0644, st_size=27002, ...}) = 0 | |
mmap(NULL, 27002, PROT_READ, MAP_SHARED, 3, 0) = 0x7f57a0b07000 | |
close(3) = 0 | |
openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_MEASUREMENT", O_RDONLY|O_CLOEXEC) = 3 | |
fstat(3, {st_mode=S_IFREG|0644, st_size=23, ...}) = 0 | |
mmap(NULL, 23, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f57a0b06000 | |
close(3) = 0 | |
openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_TELEPHONE", O_RDONLY|O_CLOEXEC) = 3 | |
fstat(3, {st_mode=S_IFREG|0644, st_size=47, ...}) = 0 | |
mmap(NULL, 47, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f57a0b05000 | |
close(3) = 0 | |
openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_ADDRESS", O_RDONLY|O_CLOEXEC) = 3 | |
fstat(3, {st_mode=S_IFREG|0644, st_size=131, ...}) = 0 | |
mmap(NULL, 131, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f57a0b04000 | |
close(3) = 0 | |
openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_NAME", O_RDONLY|O_CLOEXEC) = 3 | |
fstat(3, {st_mode=S_IFREG|0644, st_size=62, ...}) = 0 | |
mmap(NULL, 62, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f57a0b03000 | |
close(3) = 0 | |
openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_PAPER", O_RDONLY|O_CLOEXEC) = 3 | |
fstat(3, {st_mode=S_IFREG|0644, st_size=34, ...}) = 0 | |
mmap(NULL, 34, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f57a0b02000 | |
close(3) = 0 | |
openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_MESSAGES", O_RDONLY|O_CLOEXEC) = 3 | |
fstat(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 | |
close(3) = 0 | |
openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_MESSAGES/SYS_LC_MESSAGES", O_RDONLY|O_CLOEXEC) = 3 | |
fstat(3, {st_mode=S_IFREG|0644, st_size=48, ...}) = 0 | |
mmap(NULL, 48, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f57a04bf000 | |
close(3) = 0 | |
openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_MONETARY", O_RDONLY|O_CLOEXEC) = 3 | |
fstat(3, {st_mode=S_IFREG|0644, st_size=270, ...}) = 0 | |
mmap(NULL, 270, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f57a04be000 | |
close(3) = 0 | |
openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_COLLATE", O_RDONLY|O_CLOEXEC) = 3 | |
fstat(3, {st_mode=S_IFREG|0644, st_size=1518110, ...}) = 0 | |
mmap(NULL, 1518110, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f57a034b000 | |
close(3) = 0 | |
openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_TIME", O_RDONLY|O_CLOEXEC) = 3 | |
fstat(3, {st_mode=S_IFREG|0644, st_size=3360, ...}) = 0 | |
mmap(NULL, 3360, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f57a034a000 | |
close(3) = 0 | |
openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_NUMERIC", O_RDONLY|O_CLOEXEC) = 3 | |
fstat(3, {st_mode=S_IFREG|0644, st_size=50, ...}) = 0 | |
mmap(NULL, 50, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f57a0349000 | |
close(3) = 0 | |
openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = 3 | |
fstat(3, {st_mode=S_IFREG|0644, st_size=201272, ...}) = 0 | |
mmap(NULL, 201272, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f57a0317000 | |
close(3) = 0 | |
write(2, "ping: ", 6ping: ) = 6 | |
write(2, "usage error", 11usage error) = 11 | |
openat(AT_FDCWD, "/usr/share/locale/C.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) | |
openat(AT_FDCWD, "/usr/share/locale/C.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) | |
openat(AT_FDCWD, "/usr/share/locale/C/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) | |
openat(AT_FDCWD, "/usr/share/locale-langpack/C.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) | |
openat(AT_FDCWD, "/usr/share/locale-langpack/C.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) | |
openat(AT_FDCWD, "/usr/share/locale-langpack/C/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) | |
write(2, ": Destination address required", 30: Destination address required) = 30 | |
write(2, "\n", 1 | |
) = 1 | |
close(1) = 0 | |
close(2) = 0 | |
exit_group(1) = ? | |
+++ exited with 1 +++ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment