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
Add ability to manually choose unpacker #17
Comments
Is anyone still interested in this feature? |
Yes, we are still interested in this, but unfortunately we are somewhat short on time due to university tasks, so we are currently not as actively developing new features as we would like to. If you want to propose a PR by any chance, you are of course welcome to do so and we'll take the time to review and merge it |
Cool sounds good, I'll see what I can do for you 👍 |
Cool, thanks! |
@Masrepus Hi just wanted some quick clarification on the following use case.
Does this use case mean to give the user the option to manually override the selected unpacker in the case that the indentifypacker() function selects the wrong unpacker? |
Yes I think that makes sense like that 👍🏼 |
@Masrepus Hi just one more clarification for the following use case. Should the user be asked whether they would like to manually override the unpacker each time they begin to unpack a sample or only when the sample is first given to unipacker? |
Hm I think asking every time would be fine. Otherwise we would need to identify the last used unpacker for a sample from history data that might be corrupted, so that needs additional error handling etc. And I guess that might not be such a predominant use case to justify the extra work. But if you think that it might indeed be nice to include it, of course feel free to do so. |
And with asking the user, do you mean that every time a sample is opened, the user needs to explicitly accept/override the unpacker? I think it would be preferable to just use the recognized unpacker and if the user wants to change it, they can do so manually |
Yeah I agree that it would be preferable that it not be asked every time. Unsure on best way to go about this though, do you think making it an option ID such as M so that when M is entered they can change the unpacker of an already listed sample. |
Actually we currently use the name of the last unpacker only for information purposes. The unpacker is identified anew every time a sample is loaded. I would create a new shell command for this, e.g. |
Haven't worked with making shell commands before so sorry for the silly question. Is the command name just the same as the function name or is that defined elsewhere? |
Ah I see, sorry I should have clarified that! Currently, the unipacker shell is defined in Lines 720 to 742 in de508c0
As you can see, the method name is do_log , as the shell framework that we use automatically registers methods that start with do_ as commands, using the portion after the underscore as the command name.
Each such function needs to have the arguments After you are done with whatever the command should do, you just return from the method as usual, and the shell framework makes sure that the user can enter the next command. In your case, let's suppose you want to provide a command called Regarding the usage of the command, the workflow we imagine should be somewhat like this:
|
Awesome thank you so much for this reply, I really appreciate the effort you have put in to help me with this. This is my first open source contribution and I'm glad I've had you to guide me through. I think I should be able to complete this now with the info you've given, hopefully haha. |
No problem, if you have any further questions don't hesitate to ask them. |
Use cases:
The text was updated successfully, but these errors were encountered: