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

Request help, thanks #36

Open
sleahootqsqnl opened this issue Mar 30, 2023 · 2 comments
Open

Request help, thanks #36

sleahootqsqnl opened this issue Mar 30, 2023 · 2 comments
Labels
question Further information is requested

Comments

@sleahootqsqnl
Copy link

C:\Users\Administrator\Desktop>pe2shc.exe sasa.exe
Using: Loader v2
Reading module from: sasa.exe
[ERROR] The PE must have relocations!
[ERROR] Not supported input file!

4DMH(I)VML9YE)IA_E2DA6B

@hasherezade
Copy link
Owner

Hi @sleahootqsqnl !
As the message says, your PE file has no relocations - so in other words it is not a good material for shellcodification.
If a PE has no relocations table, it can be loaded only at a fixed address, and you won't be able to inject it freely at any arbitrary address. Such attempt will cause a crash. Relocation table cannot be added post-compilation - so if it is not there, it can't be helped. That's why such files are not supported.

Try with some other executable, which do have relocations.

@hasherezade hasherezade added the question Further information is requested label Apr 2, 2023
@hsxfddos
Copy link

hsxfddos commented May 5, 2023

how to use vs2015 compie with relocations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants