Skip to content

Instantly share code, notes, and snippets.

/strace Secret

Created August 31, 2012 22:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/654ebd64c6dd4e68f7bf to your computer and use it in GitHub Desktop.
Save anonymous/654ebd64c6dd4e68f7bf to your computer and use it in GitHub Desktop.
execve("./swapon", ["./swapon", "/dev/hda3"], [/* 37 vars */]) = 0
brk(0) = 0x9c4000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0fc12d5000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=77880, ...}) = 0
mmap(NULL, 77880, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0fc12c1000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6", 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\30\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1802936, ...}) = 0
mmap(NULL, 3917016, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0fc0cf8000
mprotect(0x7f0fc0eab000, 2093056, PROT_NONE) = 0
mmap(0x7f0fc10aa000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b2000) = 0x7f0fc10aa000
mmap(0x7f0fc10b0000, 17624, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f0fc10b0000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0fc12c0000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0fc12bf000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0fc12be000
arch_prctl(ARCH_SET_FS, 0x7f0fc12bf700) = 0
mprotect(0x7f0fc10aa000, 16384, PROT_READ) = 0
mprotect(0x600000, 4096, PROT_READ) = 0
mprotect(0x7f0fc12d7000, 4096, PROT_READ) = 0
munmap(0x7f0fc12c1000, 77880) = 0
swapon("/dev/hda3") = -1 ENOSYS (Function not implemented)
dup(2) = 3
fcntl(3, F_GETFL) = 0x8001 (flags O_WRONLY|O_LARGEFILE)
close(3) = 0
write(2, "swapon: Function not implemented"..., 33swapon: Function not implemented
) = 33
exit_group(1) = ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment