viper-framework / viper

Binary analysis and management framework
Other
1.54k stars 353 forks source link

Add support for project notes #750

Closed TcM1911 closed 5 years ago

TcM1911 commented 5 years ago

Support for notes that are not associated with a file. A user can create a new project note by calling the notes command with the flag --add when no file is open. To create a project file when a file is open, include the --project flag. It is also possible to list all notes in the project using the --list flag when no file is open or including the --project flag when a file is open.

Example

demo viper > notes --list
[*] No notes available for this file or project yet
demo viper > notes --add
Enter a title for the new note: No session project note
[*] New note with title "No session project note" added to the current project
...
demo viper demo file > notes --add --project
Enter a title for the new note: Project note from session
[*] New note with title "Project note from session" added to the current project
demo viper demo file > notes --add
Enter a title for the new note: Session note
[*] New note with title "Session note" added to the current file
demo viper demo file > notes --list
+----+--------------+
| ID | Title        |
+----+--------------+
| 3  | Session note |
+----+--------------+
demo viper demo file > notes --list --project
+----+--------------------------+
| ID | Title                    |
+----+--------------------------+
| 1  | No session project note  |
| 2  | Project note from session |
| 3  | Session note             |
+----+--------------------------+
botherder commented 5 years ago

Thanks for the contribution. Looks good to me.