Skip to content

Instantly share code, notes, and snippets.

@clintonm9
Created May 22, 2019 21:39
Show Gist options
  • Save clintonm9/25d16950afe5f3148b294bf7b0848350 to your computer and use it in GitHub Desktop.
Save clintonm9/25d16950afe5f3148b294bf7b0848350 to your computer and use it in GitHub Desktop.
root@kali:~/Repos/hcxdumptool# strace iw dev wlan1 set channel 11
execve("/sbin/iw", ["iw", "dev", "wlan1", "set", "channel", "11"], 0x7feb8e9ba8 /* 22 vars */) = 0
brk(NULL) = 0x7207194000
faccessat(AT_FDCWD, "/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=84888, ...}) = 0
mmap(NULL, 84888, PROT_READ, MAP_PRIVATE, 3, 0) = 0x71f8950000
close(3) = 0
openat(AT_FDCWD, "/lib/aarch64-linux-gnu/libnl-genl-3.so.200", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\267\0\1\0\0\0\300%\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=23688, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x71f89d7000
mmap(NULL, 87352, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x71f893a000
mprotect(0x71f893f000, 61440, PROT_NONE) = 0
mmap(0x71f894e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0x71f894e000
close(3) = 0
openat(AT_FDCWD, "/lib/aarch64-linux-gnu/libnl-3.so.200", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\267\0\1\0\0\0\320\215\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=122576, ...}) = 0
mmap(NULL, 186528, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x71f890c000
mprotect(0x71f8928000, 61440, PROT_NONE) = 0
mmap(0x71f8937000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b000) = 0x71f8937000
close(3) = 0
openat(AT_FDCWD, "/lib/aarch64-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\267\0\1\0\0\0p\16\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1439544, ...}) = 0
mmap(NULL, 1511520, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x71f879a000
mprotect(0x71f88f3000, 61440, PROT_NONE) = 0
mmap(0x71f8902000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x158000) = 0x71f8902000
mmap(0x71f8908000, 12384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x71f8908000
close(3) = 0
openat(AT_FDCWD, "/lib/aarch64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0\267\0\1\0\0\0\0d\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=151656, ...}) = 0
mmap(NULL, 189448, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x71f876b000
mprotect(0x71f8785000, 61440, PROT_NONE) = 0
mmap(0x71f8794000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19000) = 0x71f8794000
mmap(0x71f8796000, 13320, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x71f8796000
close(3) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x71f89d5000
mprotect(0x71f8902000, 16384, PROT_READ) = 0
mprotect(0x71f8794000, 4096, PROT_READ) = 0
mprotect(0x71f8937000, 8192, PROT_READ) = 0
mprotect(0x71f894e000, 4096, PROT_READ) = 0
mprotect(0x71f89db000, 12288, PROT_READ) = 0
mprotect(0x71f8994000, 4096, PROT_READ) = 0
munmap(0x71f8950000, 84888) = 0
set_tid_address(0x71f89d50e0) = 7588
set_robust_list(0x71f89d50f0, 24) = 0
rt_sigaction(SIGRTMIN, {sa_handler=0x71f8770e80, sa_mask=[], sa_flags=SA_SIGINFO}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {sa_handler=0x71f8770f40, sa_mask=[], sa_flags=SA_RESTART|SA_SIGINFO}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
brk(NULL) = 0x7207194000
brk(0x72071b5000) = 0x72071b5000
socket(AF_NETLINK, SOCK_RAW|SOCK_CLOEXEC, NETLINK_GENERIC) = 3
setsockopt(3, SOL_SOCKET, SO_SNDBUF, [32768], 4) = 0
setsockopt(3, SOL_SOCKET, SO_RCVBUF, [32768], 4) = 0
getpid() = 7588
bind(3, {sa_family=AF_NETLINK, nl_pid=402660772, nl_groups=00000000}, 12) = 0
getsockname(3, {sa_family=AF_NETLINK, nl_pid=402660772, nl_groups=00000000}, [12]) = 0
setsockopt(3, SOL_SOCKET, SO_SNDBUF, [8192], 4) = 0
setsockopt(3, SOL_SOCKET, SO_RCVBUF, [8192], 4) = 0
setsockopt(3, SOL_NETLINK, NETLINK_EXT_ACK, [1], 4) = -1 ENOPROTOOPT (Protocol not available)
sendmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base={{len=32, type=nlctrl, flags=NLM_F_REQUEST|NLM_F_ACK, seq=1558561105, pid=402660772}, "\x03\x01\x00\x00\x0c\x00\x02\x00\x6e\x6c\x38\x30\x32\x31\x31\x00"}, iov_len=32}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 32
recvmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base={{len=1884, type=nlctrl, flags=0, seq=1558561105, pid=402660772}, "\x01\x02\x00\x00\x0c\x00\x02\x00\x6e\x6c\x38\x30\x32\x31\x31\x00\x06\x00\x01\x00\x13\x00\x00\x00\x08\x00\x03\x00\x01\x00\x00\x00"...}, iov_len=16384}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, MSG_PEEK|MSG_TRUNC) = 1884
recvmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base={{len=1884, type=nlctrl, flags=0, seq=1558561105, pid=402660772}, "\x01\x02\x00\x00\x0c\x00\x02\x00\x6e\x6c\x38\x30\x32\x31\x31\x00\x06\x00\x01\x00\x13\x00\x00\x00\x08\x00\x03\x00\x01\x00\x00\x00"...}, iov_len=16384}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 1884
recvmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base={{len=36, type=NLMSG_ERROR, flags=0, seq=1558561105, pid=402660772}, {error=0, msg={len=32, type=nlctrl, flags=NLM_F_REQUEST|NLM_F_ACK, seq=1558561105, pid=402660772}}}, iov_len=16384}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, MSG_PEEK|MSG_TRUNC) = 36
recvmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base={{len=36, type=NLMSG_ERROR, flags=0, seq=1558561105, pid=402660772}, {error=0, msg={len=32, type=nlctrl, flags=NLM_F_REQUEST|NLM_F_ACK, seq=1558561105, pid=402660772}}}, iov_len=16384}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 36
faccessat(AT_FDCWD, "/proc/net", R_OK) = 0
faccessat(AT_FDCWD, "/proc/net/unix", R_OK) = 0
socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 4
ioctl(4, SIOCGIFINDEX, {ifr_name="wlan1", }) = 0
close(4) = 0
sendmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base={{len=60, type=nl80211, flags=NLM_F_REQUEST|NLM_F_ACK, seq=1558561106, pid=402660772}, "\x02\x00\x00\x00\x08\x00\x03\x00\x23\x00\x00\x00\x08\x00\x26\x00\x9e\x09\x00\x00\x08\x00\x9f\x00\x00\x00\x00\x00\x08\x00\x27\x00"...}, iov_len=60}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 60
recvmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base={{len=36, type=NLMSG_ERROR, flags=0, seq=1558561106, pid=402660772}, {error=0, msg={len=60, type=nl80211, flags=NLM_F_REQUEST|NLM_F_ACK, seq=1558561106, pid=402660772}}}, iov_len=16384}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, MSG_PEEK|MSG_TRUNC) = 36
recvmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base={{len=36, type=NLMSG_ERROR, flags=0, seq=1558561106, pid=402660772}, {error=0, msg={len=60, type=nl80211, flags=NLM_F_REQUEST|NLM_F_ACK, seq=1558561106, pid=402660772}}}, iov_len=16384}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 36
close(3) = 0
exit_group(0) = ?
+++ exited with 0 +++
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment