1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
| Breakpoint 1, sliplink_print (length=0xe7e7e726, ip=0x61d000000090, p=0x61d000000080 '\347' <repeats 22 times>, <incomplete sequence \312>, ndo=0x7fffffffcff0) at ./print-sl.c:133 133 dir = p[SLX_DIR];
[ Legend: Modified register | Code | Heap | Stack | String ] ──────────────────────────────────────────────────────────────────────────────────────────────────────────────── registers ──── $rax : 0x7 $rbx : 0x0061d000000080 → 0xe7e7e7e7e7e7e7e7 $rcx : 0x0 $rdx : 0x000000e7e7e736 → 0x0000000000000000 $rsp : 0x007fffffffcbf0 → 0xe7e7e72600000000 $rbp : 0x27 $rsi : 0x1 $rdi : 0x007fffffffcff4 → 0x0000000000000001 $rip : 0x0055555577d518 → <sl_if_print+312> mov rax, rbx $r8 : 0x0 $r9 : 0x7bdf8 $r10 : 0x007ffff7949db2 → 0x0000000000010101 $r11 : 0x202 $r12 : 0x0061d000000090 → 0x00cae7e7e7e7e7e7 $r13 : 0x007fffffffd070 → 0x0061d0000000a7 → 0xbebebebebebebebe $r14 : 0x007fffffffccc0 → 0xe7e7e73600000027 ("'"?) $r15 : 0x007fffffffcff0 → 0x00000100000000 → 0x0000000000000000 $eflags: [zero carry parity adjust sign trap INTERRUPT direction overflow resume virtualx86 identification] $cs: 0x33 $ss: 0x2b $ds: 0x00 $es: 0x00 $fs: 0x00 $gs: 0x00 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── stack ──── 0x007fffffffcbf0│+0x0000: 0xe7e7e72600000000 ← $rsp 0x007fffffffcbf8│+0x0008: 0x0000000000000000 0x007fffffffcc00│+0x0010: 0x01df03ec038a01b9 0x007fffffffcc08│+0x0018: 0x0346017501130320 0x007fffffffcc10│+0x0020: 0x02de00ed008b02b8 0x007fffffffcc18│+0x0028: 0x007fffffffcff0 → 0x00000100000000 → 0x0000000000000000 0x007fffffffcc20│+0x0030: 0x007fffffffccb0 → 0x0000000058a5b5f6 0x007fffffffcc28│+0x0038: 0x0061d000000080 → 0xe7e7e7e7e7e7e7e7 ────────────────────────────────────────────────────────────────────────────────────────────────────────────── code:x86:64 ──── 0x55555577d509 <sl_if_print+297> call QWORD PTR [r15+0x98] 0x55555577d510 <sl_if_print+304> jmp 0x55555577d69f <sl_if_print+703> 0x55555577d515 <sl_if_print+309> nop DWORD PTR [rax] → 0x55555577d518 <sl_if_print+312> mov rax, rbx 0x55555577d51b <sl_if_print+315> mov rcx, rbx 0x55555577d51e <sl_if_print+318> shr rax, 0x3 0x55555577d522 <sl_if_print+322> and ecx, 0x7 0x55555577d525 <sl_if_print+325> movzx eax, BYTE PTR [rax+0x7fff8000] 0x55555577d52c <sl_if_print+332> cmp al, cl ────────────────────────────────────────────────────────────────────────────────────────────────── source:./print-sl.c+133 ──── 128 register u_int length) 129 { 130 int dir; 131 u_int hlen; 132 → 133 dir = p[SLX_DIR]; 134 ND_PRINT((ndo, dir == SLIPDIR_IN ? "I " : "O ")); 135 136 if (ndo->ndo_nflag) { 137 /* XXX just dump the header */ 138 register int i; ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── trace ──── [#0] 0x55555577d518 → sliplink_print(length=0xe7e7e726, ip=0x61d000000090, p=0x61d000000080 '\347' <repeats 22 times>, <incomplete sequence \312>, ndo=0x7fffffffcff0) [#1] 0x55555577d518 → sl_if_print(ndo=0x7fffffffcff0, h=<optimized out>, p=0x61d000000080 '\347' <repeats 22 times>, <incomplete sequence \312>) [#2] 0x555555689b29 → pretty_print_packet(ndo=0x7fffffffcff0, h=0x7fffffffccb0, sp=0x61d000000080 '\347' <repeats 22 times>, <incomplete sequence \312>, packets_captured=<optimized out>) [#3] 0x55555567faaf → print_packet(user=<optimized out>, h=<optimized out>, sp=<optimized out>) [#4] 0x7ffff7f7f90a → cmp ebp, r13d [#5] 0x7ffff7f6acef → pcap_loop() [#6] 0x55555567a073 → main(argc=<optimized out>, argv=<optimized out>) ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
gef➤ x/39b 0x0061d000000080 0x61d000000080: 0xe7 0xe7 0xe7 0xe7 0xe7 0xe7 0xe7 0xe7 0x61d000000088: 0xe7 0xe7 0xe7 0xe7 0xe7 0xe7 0xe7 0xe7 0x61d000000090: 0xe7 0xe7 0xe7 0xe7 0xe7 0xe7 0xca 0x0 0x61d000000098: 0x0 0x52 0x54 0x0 0x12 0x35 0x2 0x8
|