gchq / gchq/CyberChef

Bug report: Disassemble x86 doesn't seem to perform proper IP hex conversion

Open
#1,941 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
35.8k
Forks
4.1k
Avg merge
2d 26m
Merged PRs (30d)
33

Description

**Describe the bug**
When using Disassemble x86, it seems to assume that the IP number is in hex, but doesn't handle characters between 0xA and 0xF properly.

**To Reproduce**
https://gchq.github.io/CyberChef/#recipe=From_Base64('A-Za-z0-9%2B/%3D',true,true)To_Hex('Space',0)Disassemble_x86('32','Full%20x86%20architecture',8,7,true,true)&input=VUdyK1dNYUFBb0FMQUVIR2dBT0FDd0FmU0lQQUFrZzlpUk1BQUhMbTlPdis&oeol=CRLF

**Expected behaviour**
I expected the recipe's instruction positions to begin at 0x7E00. What happened was instead, they began at 7 and the URL's IP value was overwritten with 7.

**Screenshots**
![image](https://github.com/user-attachments/assets/f1177cf3-5632-4564-948f-b4033425081c)
![Screenshot from 2024-11-17 09-00-56](https://github.com/user-attachments/assets/8b442ce8-f11f-40dd-a22a-4250fe0e948b)
After a reload:
![Screenshot from 2024-11-17 09-01-02](https://github.com/user-attachments/assets/64d7ed2c-9456-411d-a0cc-5706644cf5a3)

**Desktop (if relevant, please complete the following information):**
- OS: Fedora 40
- Browser: Firefox 132.0.2 (64-bit)
- CyberChef version: 10.19.4

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.