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

PE Bear can not add a new library to import table of a 64 bit dll #16

Closed
hmirheydari opened this issue Jan 23, 2023 · 7 comments
Closed
Assignees

Comments

@hmirheydari
Copy link

hmirheydari commented Jan 23, 2023

I have tried to add a new library to import table of a 64 bit dll, but it adds only two red rows that can not be edited as the screenshot that can be viewed at: https://terabox.com/s/1AceZNzi9rpUFOpCEP4Dq9g
pe bear bug

@hasherezade
Copy link
Owner

hasherezade commented Jan 23, 2023

hi @hmirheydari !
It seems like a situation that was described here: https://github.com/hasherezade/pe-bear/wiki/Import-adding
The rows are red and cannot be edited, because you are supposed to begin by setting a valid addresses in "NameRVA", "FirstThunk" and "OriginalFirstThunk". Once you fill those RVAs with proper values, you will be able to edit the name, etc.
Please check the whole tutorial linked above, and let me know if it helps.
By looking at your screenshot it also seems to me that there is not enough space in the original Import Table to add new records. So you will probably have to move it into a new location first.

@hmirheydari
Copy link
Author

Hi @hasherezade
Thanks, please view the video that can be downloaded from https://terabox.com/s/14642Y4l4s7dS2X5QRJu-MA
I can not change any property of added library, your help is appreciated.

@hasherezade
Copy link
Owner

hasherezade commented Jan 24, 2023

@hmirheydari - thanks for the video, now I see what is the problem. I think this will help:

I added a note about it to the Wiki: Import adding, Step 5

Please let me know if it works for you.

@hmirheydari
Copy link
Author

hmirheydari commented Feb 1, 2023 via email

@hasherezade
Copy link
Owner

@hmirheydari - thank you for your remarks. I get it that for most users adding imports manually may be too inconvenient, and I am agree with you that this should be simplified. I was planning to do it somewhere along the way, but other priorities took over. I will add automated import adding as another feature, in the next version.
I already have the automated implementation in my another program, IAT Patcher, so it will be easy to adapt.

@hasherezade
Copy link
Owner

@hmirheydari - maybe you will like to test the new creator that I added:

imports_add_creator

I am still improving it. The final version will be ready for the upcoming release.
For now the test version is available via AppVeyor build server - details how to get it are in the README

@hasherezade hasherezade self-assigned this Feb 21, 2023
@hasherezade
Copy link
Owner

available in the latest release:

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

No branches or pull requests

2 participants