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

ESIL emulation failed when hit reloc functions #1197

Open
Heersin opened this issue Jun 7, 2021 · 1 comment
Open

ESIL emulation failed when hit reloc functions #1197

Heersin opened this issue Jun 7, 2021 · 1 comment

Comments

@Heersin
Copy link
Member

Heersin commented Jun 7, 2021

Work environment

Questions Answers
OS/arch/bits (mandatory) Linux
File format of the file you reverse (mandatory) ELF
Architecture/bits of the file (mandatory) x86/64 etc.
rizin -v full output, not truncated (mandatory) rizin 0.2.0-git @ linux-x86-64, package: 0.2.0.1 (ret2libc) commit: c875be9, build: 2021-01-26__18:17:13

Expected behavior

emulate the strlen

Actual behavior

get stuck

Steps to reproduce the behavior

  1. Download the binary in the additional section below.
  2. open it with rizin : rizin count_len
  3. seek and analysis : s main, aa
  4. init the VM : aei aeim ...
  5. enter Visual Mode V and emulate with s

Additional Logs, screenshots, source code, configuration dump, ...

  1. the source
#include <string.h>

int main() {
    char *test = "hello world";
    int len = strlen(test);
    return 0;
}

count_len.bin.tar.gz

  1. trace
  • main function
    image

  • call sym.imp.strlen
    image

  • then finally get lost
    image

@XVilka XVilka assigned ghost , Basstorm and Heersin Aug 16, 2021
@XVilka XVilka added the RZIL label Aug 16, 2021
@stale stale bot added the stale label Feb 18, 2022
@stale stale bot closed this as completed Apr 19, 2022
@XVilka XVilka reopened this Apr 20, 2022
@stale stale bot removed the stale label Apr 20, 2022
@XVilka XVilka unassigned ghost , Basstorm and Heersin Dec 4, 2022
@rizinorg rizinorg deleted a comment from stale bot Jul 20, 2023
@rizinorg rizinorg deleted a comment from stale bot Jul 20, 2023
@XVilka XVilka added this to the 0.8.0 milestone Jan 14, 2024
@XVilka
Copy link
Member

XVilka commented Jan 14, 2024

Blocked until ESIL->RzIL conversion is complete #2080

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In progress
Development

No branches or pull requests

3 participants