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

file stream #355

Open
hacktorious opened this issue Sep 13, 2022 · 3 comments
Open

file stream #355

hacktorious opened this issue Sep 13, 2022 · 3 comments

Comments

@hacktorious
Copy link

Is there any way to pass a stream instead of a file path? I'm trying to generate PE data from a file in an S3 bucket.

@hacktorious
Copy link
Author

So I guess the best way is to use ephemeral storage.

@erocarrera
Copy link
Owner

Hi @hacktorious ,
So streams are not supported directly, but you can create a PE instance via pe = pefile.PE(data=buffer) instead of providing a file path. Maybe that helps your use-case?

@hacktorious
Copy link
Author

That worked thanks. I guess the first time I tried that I was using the wrong file type. LOL

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