-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Feature Request: StringSearchStrategy - Search by String #1105
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
Comments
Sorry for taking so long to get back to you! Your approach is definitely in the right direction. To answer your questions, I would need to properly understand what the feature your are trying to implement is supposed to do exactly. Are you interested in constants used in |
The only thing I want to do is search for "Strings." Should be scan all string expressions that have been made hardcoded. For example: Example string in Attribute = [TestAttribute("Test Me 123")] When I search value "Test Me" as String, search engine should list these three values. From all loaded assembly files. :) I think that's cool feature. I didn't see this feature. Only if we do CTRL+F in the showing source file. |
Thanks for the clarification. The last thing is already implemented (LiteralSearchStrategy). However searching in You can start by adding:
For information on how to parse these bytes, take a look at the ECMA 335 specification, look for For the attributes you can add:
It should be added for everything that allows attributes: type defs, methods, properties, fields, events, getters/setters/adders/removers, parameters, return types, etc. there you can iterate over all attributes and check all the arguments... hope this helps... I am looking forward to your pull request! ;-) Thank you! |
Thank you so much! I'll try to do something for learning purpose. Also, you could add this feature. :) |
It is most crucial feature (especially search within attribute value) which makes me using DotPeek instead of ILSpy. Please implement it. |
Can you link to feature description, so I could take a look at it? Thanks! |
I mean ability to search within: |
I also just stumbled upon this and it'd be nice to have this covered. I'm interested in searching the |
I also had a use case of attempting to search through COM GUID identifier string attributes when I stumbled upon this issue. This feature would be very helpful for both software developers and reverse engineers alike when searching for a particular CLSID in DLL or/and WinMD files. If I have some extra time, I can take a look at implementing this. |
Well, When I want to do a string search, I'm looking for one-by-one in the classes with using CTRL+F. However, there is no search-by-string in the search section. Here;
I did a little digging, but it's difficult. :) So, I think we need create a function called "StringSearchStrategy : AbstractSearchStrategy" in SearchStrategies.cs.
Also I've just added this to GetSearchStrategy()
added this to Constructor()
searchModeComboBox.Items.Add(new { Image = Images.Test, Name = "String" });
I guess it's not that easy, but it's not working for field's InitialValue. Is the path I followed right? :)
The text was updated successfully, but these errors were encountered: