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

[Bug] Non printable chars near colored text! #1138

Closed
1 of 9 tasks
blue-devil opened this issue Sep 19, 2024 · 2 comments
Closed
1 of 9 tasks

[Bug] Non printable chars near colored text! #1138

blue-devil opened this issue Sep 19, 2024 · 2 comments

Comments

@blue-devil
Copy link

blue-devil commented Sep 19, 2024

GEF+GDB version

gef➤  version
GEF: (Standalone)
Blob Hash(/home/$USER/.gdbinit-gef.py): af6ee583e55f68084d817d401b4400aa03f5ac44
SHA256(/home/$USER/.gdbinit-gef.py): e70ca29853e17a6c982b5cf3a09329e1ff18f2161f4418370d5ab42b8feabb52
GDB: 11.2
GDB-Python: 3.11

Operating System

Ubuntu 16.04

Describe the issue you encountered

Hello;
I have a Ubuntu 16.04 guest machine on vmware (my host is Windows 11).
I am using Terminator but I have also tested on xfce-terminal
I have installed needed nerd, patched and powerline fonts!
I am using Hack Nerd Font Mono (I have also tried on Fira Nerde and Meslo Nerd fonts)

I have installed gef stated in the README manually. When I run a binary using gef I have this weird issue:

[ Legend: ����Modified register�� | ��Code�� | ��Heap�� | ��Stack�� | ��String�� ]
��─────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ����registers���� ────��
����$rax   ��: ��0x0000000000401c70��  →  ��<main+0000> push rbp��
��$rbx   ��: 0x0               
��$rcx   ��: 0x0               
����$rdx   ��: ��0x00007fffffffda48��  →  ��0x00007fffffffded9��  →  ��"XDG_SEAT=seat0"��
����$rsp   ��: ��0x00007fffffffd900��  →  0x00007ffff7ffe168  →  0x0000000000000000

For better Understanding I have included screenshots. (Those squares are actually '\x0001' and '\x0002' bytes)

MORE on that
Xubuntu 16 comes with GDB7.11 and python2. So I also have tried gef legacy but the issue is still the same!

Do you read the docs and look at previously closed issues/PRs for similar cases?

No

Architecture impacted

  • X86
  • X64
  • ARM
  • ARM64
  • MIPS
  • MIPS64
  • PPC
  • PPC64
  • RISCV

Describe your issue. Without a proper reproduction step-by-step, your issue will be ignored.

  1. Bring up an Xubuntu 16.04 image(I am using it on vmware)
  2. install gef manually
  3. run gdb or gdb <binary-name>

Minimalist test case

No response

Additional context= Screenshots

01

02

03

BTW; as you can see in the last screenshot; I have given the command disas main and there is no problem in the colored output :/

@hugsy
Copy link
Owner

hugsy commented Sep 20, 2024

This seems to be coming from your terminal, not GEF. I'd recommand you try another terminal and make sure you're using UTF-8 charset.

@blue-devil
Copy link
Author

blue-devil commented Sep 20, 2024

True! It is not about gef; it is about the version of terminator. On Ubuntu 16.04 it is 0.91. This version does not support lots of things. I have used latest terminator version (v 2.1.4) without problem.

Thanks for your reply

#close #1138

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants