Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The pwngef stack and vmmap commands are used abnormally #648

Closed
D1ag0n-Young opened this issue May 14, 2021 · 1 comment
Closed

The pwngef stack and vmmap commands are used abnormally #648

D1ag0n-Young opened this issue May 14, 2021 · 1 comment

Comments

@D1ag0n-Young
Copy link

Hello, I want to ask a question:
I want to use gdb to debug mips architecture programs, but the compiled gdb does not support stack, vmmap and other instructions. After using the gef plug-in, the vmmap instruction shows the following exceptions:
0x400868 <main+24> sw gp, 16(sp)
0x40086c <main+28> sw a0, 536(s8)
0x400870 <main+32> sw a1, 540(s8)
→ 0x400874 <main+36> lui v0, 0x40
0x400878 <main+40> lhu v0, 3084(v0)
0x40087c <main+44> sh v0, 24(s8)
0x400880 <main+48> addiu v0, s8, 26
0x400884 <main+52> li v1, 498
0x400888 <main+56> move a2, v1
──────────────────────────────────────────────────────────────────────────────────────────────── threads ────
[#0] Id 1, stopped 0x400874 in main (), reason: BREAKPOINT
──────────────────────────────────────────────────────────────────────────────────────────────── trace ────
[#0] 0x400874 → main()
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
gef➤ vmmap
[ Legend: Code | Heap | Stack ]
Start End Offset Perm Path
0x00000000 0xffffffff 0x00000000 rwx /root/Desktop/pwn-test/mips-pwn/stack_bof_2
gef➤ stack
Undefined command: "stack". Try "help".

The vmmap command cannot display libc, and the stack command cannot be used;What is going on?

gdb version:10.2 --with-python=python3.5 --enable-targets=all

attachment :https://pan.baidu.com/s/1OShEy3egenmYb7UxnWrdAw password:nk18

@hugsy
Copy link
Owner

hugsy commented May 20, 2021

Please respect the proper issue reporting template.

Your issue is a configuration one, not a bug in gef. Ask for help on the discord instead.

@hugsy hugsy closed this as completed May 20, 2021
@hugsy hugsy added this to the 2021-07 Release milestone Jun 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants