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

Definition file not working #26

Closed
klezVirus opened this issue Nov 12, 2021 · 6 comments
Closed

Definition file not working #26

klezVirus opened this issue Nov 12, 2021 · 6 comments

Comments

@klezVirus
Copy link
Owner

Hi, I tried your tool using a .def file created with

dumpbin /exports file.dll /out:file.def

I provided the file.def as --exports parameter but I get the following error when executed:

Traceback (most recent call last):
  File "inceptor.py", line 268, in <module>
    generator = NativeArtifactGenerator(binary_abs_path,
  File "C:\Users\Username\Documents\Tools\inceptor\inceptor\generators\NativeArtifactGenerator.py", line 147, in __init__
    self.dll_compiler_args["/DEF"] = f'"{os.path.abspath(self.exports)}"'
TypeError: 'NoneType' object does not support item assignment

How can I set custom exports?

Originally posted by @CT-H00K in #22 (comment)

@klezVirus
Copy link
Owner Author

Hi @CT-H00K, I've tried now using the dev branch and it seems the issue has been already fixed.

@0xArt3mis
Copy link

Hi @klezVirus , I cannot test it since the dev branch is still kinda buggy and not properly executing.
inceptor_bug

I've tried with venv and pipenv for the virtual environment.

Do you plan switching to poetry in the future?
https://python-poetry.org/

@klezVirus
Copy link
Owner Author

Yeah you're right, I'm still solving a few issues before merging. I'll merge Dev and main very soon anyway.
Didn't know poetry, seems very useful, I'll consider that for sure, thanks for the suggestion! ;)

@ghost
Copy link

ghost commented Apr 1, 2022

how to import the .def file ?

image

@klezVirus
Copy link
Owner Author

Hi @Revozop, the definition file can be added with the --exports parameter Let me know if it works, I'm working on a few updates at the moment and don't remember if this is working fine in the main branch.

You can find more examples in the wiki page Example By Scenario

@klezVirus
Copy link
Owner Author

Tested the DEF file in main branch and confirmed as working. Closing this issue for now.

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