Skip to content

Instantly share code, notes, and snippets.

/debian7 Secret

Created February 24, 2018 00:00
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save anonymous/3e3f447206eda40860edb181ddacd30a to your computer and use it in GitHub Desktop.
root@deb7:~# strace -t apt-key add some_key
23:53:29 execve("/usr/bin/apt-key", ["apt-key", "add", "some_key"], [/* 10 vars */]) = 0
23:53:29 brk(0) = 0x2568000
23:53:29 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
23:53:29 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f673ff5f000
23:53:29 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
23:53:29 open("/etc/ld.so.cache", O_RDONLY) = 4
23:53:29 fstat(4, {st_mode=S_IFREG|0644, st_size=6445, ...}) = 0
23:53:29 mmap(NULL, 6445, PROT_READ, MAP_PRIVATE, 4, 0) = 0x7f673ff5d000
23:53:29 close(4) = 0
23:53:29 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
23:53:29 open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY) = 4
23:53:29 read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\357\1\0\0\0\0\0"..., 832) = 832
23:53:29 fstat(4, {st_mode=S_IFREG|0755, st_size=1607696, ...}) = 0
23:53:29 mmap(NULL, 3721272, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x7f673f9b5000
23:53:29 mprotect(0x7f673fb39000, 2093056, PROT_NONE) = 0
23:53:29 mmap(0x7f673fd38000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x183000) = 0x7f673fd38000
23:53:29 mmap(0x7f673fd3d000, 18488, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f673fd3d000
23:53:29 close(4) = 0
23:53:29 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f673ff5c000
23:53:29 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f673ff5b000
23:53:29 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f673ff5a000
23:53:29 arch_prctl(ARCH_SET_FS, 0x7f673ff5b700) = 0
23:53:29 mprotect(0x7f673fd38000, 16384, PROT_READ) = 0
23:53:29 mprotect(0x7f673ff61000, 4096, PROT_READ) = 0
23:53:29 munmap(0x7f673ff5d000, 6445) = 0
23:53:29 getpid() = 2419
23:53:29 rt_sigaction(SIGCHLD, {0x40f270, ~[RTMIN RT_1], SA_RESTORER, 0x7f673f9e71a0}, NULL, 8) = 0
23:53:29 geteuid() = 0
23:53:29 brk(0) = 0x2568000
23:53:29 brk(0x2589000) = 0x2589000
23:53:29 getppid() = 2418
23:53:29 stat("/root", {st_mode=S_IFDIR|0700, st_size=7, ...}) = 0
23:53:29 stat(".", {st_mode=S_IFDIR|0700, st_size=7, ...}) = 0
23:53:29 open("/usr/bin/apt-key", O_RDONLY) = 4
23:53:29 fcntl(4, F_DUPFD, 10) = 13
23:53:29 close(4) = 0
23:53:29 fcntl(13, F_SETFD, FD_CLOEXEC) = 0
23:53:29 rt_sigaction(SIGINT, NULL, {SIG_DFL, [], 0}, 8) = 0
23:53:29 rt_sigaction(SIGINT, {0x40f270, ~[RTMIN RT_1], SA_RESTORER, 0x7f673f9e71a0}, NULL, 8) = 0
23:53:29 rt_sigaction(SIGQUIT, NULL, {SIG_DFL, [], 0}, 8) = 0
23:53:29 rt_sigaction(SIGQUIT, {SIG_DFL, ~[RTMIN RT_1], SA_RESTORER, 0x7f673f9e71a0}, NULL, 8) = 0
23:53:29 rt_sigaction(SIGTERM, NULL, {SIG_DFL, [], 0}, 8) = 0
23:53:29 rt_sigaction(SIGTERM, {SIG_DFL, ~[RTMIN RT_1], SA_RESTORER, 0x7f673f9e71a0}, NULL, 8) = 0
23:53:29 read(13, "#!/bin/sh\n\nset -e\nunset GREP_OPT"..., 8192) = 7313
23:53:29 pipe([4, 5]) = 0
23:53:29 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f673ff5b9d0) = 2420
23:53:29 close(5) = 0
23:53:29 read(4, "/tmp/tmp.SbJGwLT1Nx\n", 128) = 20
23:53:29 read(4, "", 128) = 0
23:53:29 close(4) = 0
23:53:29 --- SIGCHLD (Child exited) @ 0 (0) ---
23:53:29 rt_sigreturn(0x11) = 0
23:53:29 wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2420
23:53:29 rt_sigaction(SIGHUP, NULL, {SIG_DFL, [], 0}, 8) = 0
23:53:29 rt_sigaction(SIGHUP, {0x40f270, ~[RTMIN RT_1], SA_RESTORER, 0x7f673f9e71a0}, NULL, 8) = 0
23:53:29 rt_sigaction(SIGQUIT, {0x40f270, ~[RTMIN RT_1], SA_RESTORER, 0x7f673f9e71a0}, NULL, 8) = 0
23:53:29 rt_sigaction(SIGILL, NULL, {SIG_DFL, [], 0}, 8) = 0
23:53:29 rt_sigaction(SIGILL, {0x40f270, ~[RTMIN RT_1], SA_RESTORER, 0x7f673f9e71a0}, NULL, 8) = 0
23:53:29 rt_sigaction(SIGABRT, NULL, {SIG_DFL, [], 0}, 8) = 0
23:53:29 rt_sigaction(SIGABRT, {0x40f270, ~[RTMIN RT_1], SA_RESTORER, 0x7f673f9e71a0}, NULL, 8) = 0
23:53:29 rt_sigaction(SIGFPE, NULL, {SIG_DFL, [], 0}, 8) = 0
23:53:29 rt_sigaction(SIGFPE, {0x40f270, ~[RTMIN RT_1], SA_RESTORER, 0x7f673f9e71a0}, NULL, 8) = 0
23:53:29 rt_sigaction(SIGSEGV, NULL, {SIG_DFL, [], 0}, 8) = 0
23:53:29 rt_sigaction(SIGSEGV, {0x40f270, ~[RTMIN RT_1], SA_RESTORER, 0x7f673f9e71a0}, NULL, 8) = 0
23:53:29 rt_sigaction(SIGPIPE, NULL, {SIG_DFL, [], 0}, 8) = 0
23:53:29 rt_sigaction(SIGPIPE, {0x40f270, ~[RTMIN RT_1], SA_RESTORER, 0x7f673f9e71a0}, NULL, 8) = 0
23:53:29 rt_sigaction(SIGTERM, {0x40f270, ~[RTMIN RT_1], SA_RESTORER, 0x7f673f9e71a0}, NULL, 8) = 0
23:53:29 pipe([4, 5]) = 0
23:53:29 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f673ff5b9d0) = 2421
23:53:29 close(5) = 0
23:53:29 read(4, "0\n", 128) = 2
23:53:29 --- SIGCHLD (Child exited) @ 0 (0) ---
23:53:29 rt_sigreturn(0x11) = 2
23:53:29 read(4, "", 128) = 0
23:53:29 close(4) = 0
23:53:29 wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2421
23:53:29 pipe([4, 5]) = 0
23:53:29 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f673ff5b9d0) = 2422
23:53:29 close(5) = 0
23:53:29 read(4, "TRUSTDBDIR='/etc/apt/'\n", 128) = 23
23:53:29 read(4, "", 128) = 0
23:53:29 --- SIGCHLD (Child exited) @ 0 (0) ---
23:53:29 rt_sigreturn(0x11) = 0
23:53:29 close(4) = 0
23:53:29 wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2422
23:53:29 pipe([4, 5]) = 0
23:53:29 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f673ff5b9d0) = 2424
23:53:29 close(5) = 0
23:53:29 read(4, "", 128) = 0
23:53:29 --- SIGCHLD (Child exited) @ 0 (0) ---
23:53:29 rt_sigreturn(0x11) = 0
23:53:29 close(4) = 0
23:53:29 wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2424
23:53:29 pipe([4, 5]) = 0
23:53:29 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f673ff5b9d0) = 2426
23:53:29 close(5) = 0
23:53:29 read(4, "TRUSTEDFILE='/etc/apt/trusted.gp"..., 128) = 35
23:53:29 --- SIGCHLD (Child exited) @ 0 (0) ---
23:53:29 rt_sigreturn(0x11) = 35
23:53:29 read(4, "", 128) = 0
23:53:29 close(4) = 0
23:53:29 wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2426
23:53:29 faccessat(AT_FDCWD, "/etc/apt/trusted.gpg", R_OK) = 0
23:53:29 pipe([4, 5]) = 0
23:53:29 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f673ff5b9d0) = 2428
23:53:29 close(5) = 0
23:53:29 read(4, "TRUSTEDPARTS='/etc/apt/trusted.g"..., 128) = 39
23:53:29 read(4, "", 128) = 0
23:53:29 close(4) = 0
23:53:29 wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2428
23:53:29 --- SIGCHLD (Child exited) @ 0 (0) ---
23:53:29 rt_sigreturn(0x11) = 2428
23:53:29 stat("/etc/apt/trusted.gpg.d/", {st_mode=S_IFDIR|0755, st_size=9, ...}) = 0
23:53:29 pipe([4, 5]) = 0
23:53:29 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f673ff5b9d0) = 2430
23:53:29 close(5) = 0
23:53:29 read(4, "/etc/apt/trusted.gpg.d//debian-a"..., 128) = 128
23:53:29 read(4, "\n/etc/apt/trusted.gpg.d//debian-"..., 128) = 128
23:53:29 read(4, "trusted.gpg.d//debian-archive-sq"..., 128) = 128
23:53:29 read(4, "g.d//debian-archive-wheezy-stabl"..., 128) = 38
23:53:29 read(4, "", 128) = 0
23:53:29 close(4) = 0
23:53:29 wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2430
23:53:29 --- SIGCHLD (Child exited) @ 0 (0) ---
23:53:29 rt_sigreturn(0x11) = 2430
23:53:29 open("/dev/null", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
23:53:29 fcntl(1, F_DUPFD, 10) = 14
23:53:29 close(1) = 0
23:53:29 fcntl(14, F_SETFD, FD_CLOEXEC) = 0
23:53:29 dup2(4, 1) = 1
23:53:29 close(4) = 0
23:53:29 fcntl(2, F_DUPFD, 10) = 15
23:53:29 close(2) = 0
23:53:29 fcntl(15, F_SETFD, FD_CLOEXEC) = 0
23:53:29 dup2(1, 2) = 2
23:53:29 stat("/usr/local/sbin/which", 0x7ffc45f27f60) = -1 ENOENT (No such file or directory)
23:53:29 stat("/usr/local/bin/which", 0x7ffc45f27f60) = -1 ENOENT (No such file or directory)
23:53:29 stat("/usr/sbin/which", 0x7ffc45f27f60) = -1 ENOENT (No such file or directory)
23:53:29 stat("/usr/bin/which", {st_mode=S_IFREG|0755, st_size=946, ...}) = 0
23:53:29 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f673ff5b9d0) = 2431
23:53:29 wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2431
23:53:29 --- SIGCHLD (Child exited) @ 0 (0) ---
23:53:29 rt_sigreturn(0x11) = 2431
23:53:29 dup2(14, 1) = 1
23:53:29 close(14) = 0
23:53:29 dup2(15, 2) = 2
23:53:29 close(15) = 0
23:53:29 pipe([4, 5]) = 0
23:53:29 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f673ff5b9d0) = 2432
23:53:29 close(5) = 0
23:53:29 read(4, "0\n", 128) = 2
23:53:29 --- SIGCHLD (Child exited) @ 0 (0) ---
23:53:29 rt_sigreturn(0x11) = 2
23:53:29 read(4, "", 128) = 0
23:53:29 close(4) = 0
23:53:29 wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2432
23:53:29 stat("/usr/local/sbin/gpg", 0x7ffc45f27f10) = -1 ENOENT (No such file or directory)
23:53:29 stat("/usr/local/bin/gpg", 0x7ffc45f27f10) = -1 ENOENT (No such file or directory)
23:53:29 stat("/usr/sbin/gpg", 0x7ffc45f27f10) = -1 ENOENT (No such file or directory)
23:53:29 stat("/usr/bin/gpg", {st_mode=S_IFREG|0755, st_size=995728, ...}) = 0
23:53:29 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f673ff5b9d0) = 2433
23:53:29 wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2433
23:53:29 --- SIGCHLD (Child exited) @ 0 (0) ---
23:53:29 rt_sigreturn(0x11) = 2433
23:53:29 write(1, "OK\n", 3OK
) = 3
23:53:29 read(13, "", 8192) = 0
23:53:29 stat("/usr/local/sbin/rm", 0x7ffc45f27ef0) = -1 ENOENT (No such file or directory)
23:53:29 stat("/usr/local/bin/rm", 0x7ffc45f27ef0) = -1 ENOENT (No such file or directory)
23:53:29 stat("/usr/sbin/rm", 0x7ffc45f27ef0) = -1 ENOENT (No such file or directory)
23:53:29 stat("/usr/bin/rm", 0x7ffc45f27ef0) = -1 ENOENT (No such file or directory)
23:53:29 stat("/sbin/rm", 0x7ffc45f27ef0) = -1 ENOENT (No such file or directory)
23:53:29 stat("/bin/rm", {st_mode=S_IFREG|0755, st_size=60000, ...}) = 0
23:53:29 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f673ff5b9d0) = 2434
23:53:29 wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2434
23:53:29 --- SIGCHLD (Child exited) @ 0 (0) ---
23:53:29 rt_sigreturn(0x11) = 2434
23:53:29 exit_group(0) = ?
root@deb7:~#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment