
powerman at powerman
Jan 27, 2012, 5:50 PM
Post #16 of 27
(899 views)
Permalink
|
|
Re: Security Level: high/server/workstation/virtualization
[In reply to]
|
|
Hi! On Sat, Jan 28, 2012 at 01:48:01AM +0200, pageexec [at] freemail wrote: > gosh i knew i'd forgot something: btw, glibc with debug has merged :) (gdb) run Starting program: /usr/bin/dumpcap [Thread debugging using libthread_db enabled] Program received signal SIGSEGV, Segmentation fault. 0xb749f152 in __readdir64 (dirp=0x0) at ../sysdeps/unix/readdir.c:45 45 ../sysdeps/unix/readdir.c: No such file or directory. in ../sysdeps/unix/readdir.c (gdb) (gdb) thread apply all bt full Thread 1 (Thread 0xb73f16c0 (LWP 19994)): #0 0xb749f152 in __readdir64 (dirp=0x0) at ../sysdeps/unix/readdir.c:45 dp = <optimized out> saved_errno = <optimized out> #1 0xb759d7ea in scan_sys_class_net (devlistp=0xbfffe488, errbuf=0xbfffe4dc "tun0: You don't have permission to capture on that device (socket: Operation not permitted)") at ./pcap-linux.c:1832 sys_class_net_d = 0x0 fd = 7 ent = <optimized out> p = <optimized out> name = "\261\236N\267\314\341\377\277.\244[.\267\364\342\377\277\334\344\377\277\000\000\000\000\314\341\377\277\377\000\000\000\001\200\255\373\334\344\377\277\334\344\377\277\334\344\377\277\334\344\377\277\067\345\377\277\333\345\377\277\334\344\377\277\333\345\377\277", '\000' <repeats 20 times>, "\030\023\000\000\004\000\000\000T\316U\267\000\000\000\000\000\000\000\000\331\274s\267\203\003(\003\230\202s\267\324\274s\267\000\000\000\000`\274\\\267\020\240s\267\220\210G\267\230\342\377\277\211EZ\267\020\240s\267\377\377\000\000\325\\H\267(pZ\267v\000\000\000\271\236S\267\304\241S\267\270\343U\267\000\311U\267\000\000\000\000\324\274s\267\203\003(\003`\274\\\267\020\240s\267\300\346U\267\320\020\000\000\200\343U\267T\316U\267\200\343U\267\324\274s\267\250\342\377\277\243\275G\267\330\342\377\277\203\003(\003`\274\\\267\020\240s\267\330\342\377\277ZIZ\267\020\240s\267\324\274s\267\330\342\377\277\330\235N\267\334\344\377\277\000\001\000\000\001\000\000\000\203\003(\003`\274\\\267\020\240s\267\070\343\377\277AKZ\267\020\240s\267\000\001\000\000\001\000\000\000\377\377\377\377.\244[.\267\324\274s\267\370\237[.\267\064\241s\267\000\000\000\000\000\000\000\000D\000\000\000\334\344\377\277T\316U\267\000\000\000\000\331bO\267\203\003(\003\020eO\267\354\343\377\277\034\263s\267`\274\\\267\000\000\000\000\324\274s\267\250\343\377\277\341MZ\267\324\274s\267D\000\000\000\364wG\267\000\000\000\000\334\344\377\277\005\000\000\000\214\325S\267\234\236S\267"... q = <optimized out> ifrflags = {ifr_ifrn = { ifrn_name = "T\316U\267l\342\377\277\334\344\377\277\270\342\377\277"}, ifr_ifru = { ifru_addr = {sa_family = 40625, ---Type <return> to continue, or q <return> to quit--- sa_data = "N\267l\342\377\277\334\344\377\277\270\342\377\277"}, ifru_dstaddr = { sa_family = 40625, sa_data = "N\267l\342\377\277\334\344\377\277\270\342\377\277"}, ifru_broadaddr = {sa_family = 40625, sa_data = "N\267l\342\377\277\334\344\377\277\270\342\377\277"}, ifru_netmask = { sa_family = 40625, sa_data = "N\267l\342\377\277\334\344\377\277\270\342\377\277"}, ifru_hwaddr = {sa_family = 40625, sa_data = "N\267l\342\377\277\334\344\377\277\270\342\377\277"}, ifru_flags = -24911, ifru_ivalue = -1219584335, ifru_mtu = -1219584335, ifru_map = { mem_start = 3075382961, mem_end = 3221217900, base_addr = 58588, irq = 255 '\377', dma = 191 '\277', port = 184 '\270'}, ifru_slave = "\261\236N\267l\342\377\277\334\344\377\277\270\342\377\277", ifru_newname = "\261\236N\267l\342\377\277\334\344\377\277\270\342\377\277", ifru_data = 0xb74e9eb1, ifru_settings = {type = 3075382961, size = 3221217900, ifs_ifsu = {raw_hdlc = 0xbfffe4dc, cisco = 0xbfffe4dc, fr = 0xbfffe4dc, fr_pvc = 0xbfffe4dc, fr_pvc_info = 0xbfffe4dc, sync = 0xbfffe4dc, te1 = 0xbfffe4dc}}}} ret = 1 #2 0xb75a0fff in pcap_platform_finddevs (alldevsp=0xbfffe488, errbuf=0xbfffe4dc "tun0: You don't have permission to capture on that device (socket: Operation not permitted)") at ./pcap-linux.c:2081 ret = <optimized out> #3 0xb75a3232 in pcap_findalldevs (alldevsp=0xbfffe4d8, errbuf=0xbfffe4dc "tun0: You don't have permission to capture on that device (socket: Operation not permitted)") at ./fad-getad.c:275 devlist = 0x0 ifap = 0xb773b328 ifa = 0x0 addr = <optimized out> netmask = <optimized out> broadaddr = <optimized out> dstaddr = <optimized out> ---Type <return> to continue, or q <return> to quit--- addr_size = <optimized out> broadaddr_size = <optimized out> dstaddr_size = <optimized out> ret = 0 p = <optimized out> q = <optimized out> #4 0xb772b69d in get_interface_list_findalldevs (err=0xbfffe6a8, err_str=0xbfffe6a4) at capture-pcap-util.c:174 il = 0x0 alldevs = 0xb773829c dev = <optimized out> if_info = <optimized out> errbuf = "tun0: You don't have permission to capture on that device (socket: Operation not permitted)\000\000\000m\267\342Yc\267P\211s\267\000\211s\267\017\000\000\000\335\255a\267\001\000\000\000\f\000\000\000S\216S\267B\314V\267<On\267\000\223G\267\230\345\377\277\066 n\267\001\000\000\000\001\000G_\022\000\000\000\004\000\000\000\060\211s\267\001\000\000\000\002\000\000\000 \000\000\000\002\000\000\000\001\000\000\000\335\237S\267\\4c\267\306\237S\267\000\000G_\271\236S\267\304\241S\267\270\343U\267\020\000\000\000\020\000\000\000\000\000\000\000\200\343U\267\001\000\000\000\260\343U\267T\316U\267\200\343U\267\061Ts\267"... #5 0xb77299c0 in get_interface_list (err=0xbfffe6a8, err_str=0xbfffe6a4) at capture-pcap-util-unix.c:110 No locals. #6 0xb772f9d2 in capture_interface_list (err=0xbfffe6a8, err_str=0xbfffe6a4) at dumpcap.c:797 No locals. #7 0xb772b345 in capture_opts_trim_iface (capture_opts=0xb7737060, capture_device=0x0) at capture_opts.c:770 if_list = <optimized out> if_info = <optimized out> err = <optimized out> err_str = <optimized out> options = {name = 0x0, descr = 0x0, cfilter = 0x0, snaplen = -1219105568, linktype = 0, ---Type <return> to continue, or q <return> to quit--- promisc_mode = -1219113388, buffer_size = -1073747388, monitor_mode = -1073748280} #8 0xb77306cd in main (argc=<optimized out>, argv=<optimized out>) at dumpcap.c:3850 opt = <optimized out> arg_error = 0 action = {__sigaction_handler = {sa_handler = 0xb772d392 <capture_cleanup_handler>, sa_sigaction = 0xb772d392 <capture_cleanup_handler>}, sa_mask = {__val = { 0 <repeats 32 times>}}, sa_flags = 0, sa_restorer = 0} oldaction = {__sigaction_handler = {sa_handler = 0, sa_sigaction = 0}, sa_mask = {__val = { 0, 0, 5, 1598488576, 7, 52953987, 14, 1598488577, 16, 3077434544, 0, 1, 3221218808, 3076736414, 8, 0, 4, 52953987, 3077796856, 3077434544, 3221218856, 52953987, 3077435808, 3077434544, 3221218856, 3077434544, 3077435808, 1, 3221218856, 3076845160, 3075859328, 3077787740}}, sa_flags = 0, sa_restorer = 0xac8c8380} start_capture = 1 stats_known = 0 stats = {ps_recv = 0, ps_drop = 0, ps_ifdrop = 0} list_interfaces = 0 list_link_layer_types = 0 print_bpf_code = 0 machine_readable = 0 print_statistics = 0 status = <optimized out> run_once_args = 0 i = <optimized out> (gdb) (gdb) x/16i $pc => 0xb749f152 <__readdir64+54>: cmpxchg %ecx,0x4(%esi) 0xb749f156 <__readdir64+58>: jne 0xb749f1dc <_L_lock_22> 0xb749f15c <__readdir64+64>: mov 0x10(%esi),%eax 0xb749f15f <__readdir64+67>: lea 0x18(%esi),%edi 0xb749f162 <__readdir64+70>: jmp 0xb749f17d <__readdir64+97> 0xb749f164 <__readdir64+72>: lea (%edi,%eax,1),%edx 0xb749f167 <__readdir64+75>: movzwl 0x10(%edx),%ecx 0xb749f16b <__readdir64+79>: add %ecx,%eax 0xb749f16d <__readdir64+81>: mov %eax,0x10(%esi) 0xb749f170 <__readdir64+84>: mov 0x8(%edx),%ecx 0xb749f173 <__readdir64+87>: mov %ecx,0x14(%esi) 0xb749f176 <__readdir64+90>: mov 0x4(%edx),%ecx 0xb749f179 <__readdir64+93>: or (%edx),%ecx 0xb749f17b <__readdir64+95>: jne 0xb749f1b1 <__readdir64+149> 0xb749f17d <__readdir64+97>: cmp 0xc(%esi),%eax 0xb749f180 <__readdir64+100>: jb 0xb749f164 <__readdir64+72> (gdb) (gdb) x/16x $sp 0xbfffe128: 0x00000000 0xb75cbc60 0xbfffe4dc 0xbfffe488 0xbfffe138: 0xbfffe3c8 0xb759d7ea 0x00000000 0x00000002 0xbfffe148: 0x00000000 0xb75cbc60 0x00000000 0xb75b985c 0xbfffe158: 0xbfffe178 0x03280383 0xbfffe488 0xbfffe4dc (gdb) (gdb) info reg eax 0x0 0 ecx 0x1 1 edx 0x0 0 ebx 0xb755ce54 -1219113388 esp 0xbfffe128 0xbfffe128 ebp 0xbfffe138 0xbfffe138 esi 0x0 0 edi 0xbfffe488 -1073748856 eip 0xb749f152 0xb749f152 <__readdir64+54> eflags 0x10246 [ PF ZF IF RF ] cs 0x73 115 ss 0x7b 123 ds 0x7b 123 es 0x7b 123 fs 0x0 0 gs 0x33 51 (gdb) x/8x $esi 0x0: Cannot access memory at address 0x0 (gdb) -- WBR, Alex.
|