The StringsAnalyzer plugin is a powerful tool for analyzing string literals in .NET assemblies within dnSpy. It provides a comprehensive view of all string values along with their metadata and locations within the assembly.
- String Extraction: Finds all string literals in a .NET assembly
- Detailed Metadata: Shows IL offset, method information, and module details for each string
- Sorting: Sort strings by value, IL offset, method name, or other metadata
- Search:
- Basic text search
- Regular expression support
- Case-sensitive/insensitive options
- Navigation: Double-click to navigate to the string's location in the code
- Copy Functionality:
- Copy string value
- Copy full metadata information
- Integration: Works seamlessly with dnSpy's document system
- Build the plugin from source
- Copy the compiled DLL to dnSpy's
Extensions
folder - Restart dnSpy
- Open an assembly in dnSpy
- Navigate to the StringsAnalyzer tool window
- Click "Analyze" to extract all strings from the assembly
- Use the search box to filter results
- Double-click any result to navigate to its location in the code
Click any column header to sort by that field. Click again to toggle between ascending and descending order.
- Text Search: Basic substring matching
- Regex Search: Enable regex checkbox for pattern matching
- Case Sensitivity: Toggle case sensitivity with the checkbox
- Double-click: Navigate to string location in current tab
- Right-click > Go to Reference: Same as double-click
- Right-click > Go to Reference (New Tab): Open location in new tab
- Copy Value: Copies just the string value
- Copy Full Info: Copies all metadata in a formatted text block
Contributions are welcome! Please follow these guidelines:
- Fork the repository
- Create a feature branch
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.