Create a gist now

Instantly share code, notes, and snippets.

@Xe /libcsum Secret
Created Dec 20, 2015

What would you like to do?
execve("./libcsum", ["./libcsum"], [/* 33 vars */]) = 0
brk(0) = 0x15db000
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) = 0x7fa514084000
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=127113, ...}) = 0
mmap(NULL, 127113, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fa514064000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libdl.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\320\16\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=14664, ...}) = 0
mmap(NULL, 2109712, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fa513c62000
mprotect(0x7fa513c65000, 2093056, PROT_NONE) = 0
mmap(0x7fa513e64000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7fa513e64000
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\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\34\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1729984, ...}) = 0
mmap(NULL, 3836448, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fa5138b9000
mprotect(0x7fa513a58000, 2097152, PROT_NONE) = 0
mmap(0x7fa513c58000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19f000) = 0x7fa513c58000
mmap(0x7fa513c5e000, 14880, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fa513c5e000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa514063000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa514062000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa514061000
arch_prctl(ARCH_SET_FS, 0x7fa514062700) = 0
mprotect(0x7fa513c58000, 16384, PROT_READ) = 0
mprotect(0x7fa513e64000, 4096, PROT_READ) = 0
mprotect(0x7fa514086000, 4096, PROT_READ) = 0
munmap(0x7fa514064000, 127113) = 0
mmap(NULL, 524288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa513fe1000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa514083000
rt_sigaction(SIGINT, {0x40e037, [INT], SA_RESTORER|SA_RESTART, 0x7fa5138ee180}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGSEGV, {0x40e037, [SEGV], SA_RESTORER|SA_RESTART, 0x7fa5138ee180}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGABRT, {0x40e037, [ABRT], SA_RESTORER|SA_RESTART, 0x7fa5138ee180}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGFPE, {0x40e037, [FPE], SA_RESTORER|SA_RESTART, 0x7fa5138ee180}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGILL, {0x40e037, [ILL], SA_RESTORER|SA_RESTART, 0x7fa5138ee180}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGSEGV, {0x40e037, [SEGV], SA_RESTORER|SA_RESTART, 0x7fa5138ee180}, {0x40e037, [SEGV], SA_RESTORER|SA_RESTART, 0x7fa5138ee180}, 8) = 0
rt_sigaction(SIGPIPE, {0x40e037, [PIPE], SA_RESTORER|SA_RESTART, 0x7fa5138ee180}, {SIG_DFL, [], 0}, 8) = 0
brk(0) = 0x15db000
brk(0x15fc000) = 0x15fc000
open("./libcsum.so", 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`\5\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=6064, ...}) = 0
getcwd("/home/xena/code/code/experiments/go-nim", 128) = 40
mmap(NULL, 2099520, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fa5136b8000
mprotect(0x7fa5136b9000, 2093056, PROT_NONE) = 0
mmap(0x7fa5138b8000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0x7fa5138b8000
close(3) = 0
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 31), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa514082000
write(1, "9\n", 29
) = 2
exit_group(0) = ?
+++ exited with 0 +++
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment