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

Error parsing RAW file for execute shellcode #70

Closed
3 tasks done
Ne0nd0g opened this issue Apr 21, 2019 · 1 comment
Closed
3 tasks done

Error parsing RAW file for execute shellcode #70

Ne0nd0g opened this issue Apr 21, 2019 · 1 comment
Labels

Comments

@Ne0nd0g
Copy link
Owner

Ne0nd0g commented Apr 21, 2019

Prerequisite

  • I have read the README
  • I have search the opened & closed issues
  • I have search the WIKI and its FAQ page

Environment Data

  • Merlin Version: v.0.7.0.BETA
  • Merlin Build: 1b0ce52d71da62da21cc8f90b97191308e6fe7a9
  • Go Version: N/A
  • GOPATH Environment Variable: N/A
  • GOROOT Environment Variable: N/A
  • Operating System: Ubuntu

Expected Behavior

Expected the shellcodeInjection or execute-shellcode module to parse a RAW file containing shellcode bytes.

Actual Behavior

Merlin[module][shellcodeInjection]» run
[!]there was an error parsing the shellcode file:
encoding/hex: invalid byte: U+0050 'P'
Merlin[agent][fabebecf-73b2-4463-9758-0d9e2ed0ab99]» execute-shellcode self /home/Desktop/Joe/calc.bin
[!]there was an error parsing the shellcode:
encoding/hex: invalid byte: U+002F '/'

Steps to Reproduce Behavior

Run either the execute-shellcode function or shellcodeInjection module pointing to a valid file

Misc Information

These are two different errors. The shellcodeInjection error is because the module tries to parse the RAW file as hex instead of raw bytes. The execute-shellcode error is because it is trying to parse the string as hex instead of checking to see if the input is a file first.

@Ne0nd0g
Copy link
Owner Author

Ne0nd0g commented Apr 21, 2019

I have fixed this issue on a local branch and will push it to the dev branch. The issue was recorded here for documentation's sake.

@Ne0nd0g Ne0nd0g added the bug label Apr 21, 2019
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

1 participant