Skip to content

Commit

Permalink
Add key bindings and update README
Browse files Browse the repository at this point in the history
  • Loading branch information
mkclevcode committed Jan 2, 2023
1 parent adedbd0 commit ec88daa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Attempts to identify the purpose of the current function and potential open sour
Attempts to discover all potential vulnerabilities in the current function with the help of ChatGPT. The response from ChatGPT will be added as a comment above the function.

**Beautify Function** (Tools > GhidraChatGPT > Beautify Function)
Attempts to beautify the current function with the help of ChatGPT.
Attempts to beautify the current function by identifying and applying more meaningful variable and function names with the help of ChatGPT.

### Settings
**Update OpenAI Token** (Tools > GhidraChatGPT > Settings > Update OpenAI Token)
Expand Down
Binary file modified assets/ghidrachatgpt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ public void actionPerformed(ActionContext context) {
action.setEnabled(true);
action.setDescription("Identify the function with the help of ChatGPT");
action.setMenuBarData(new MenuData(new String[] { ToolConstants.MENU_TOOLS, FUNCTION_ID_NAME, "Identify Function" }));
action.setKeyBindingData(new KeyBindingData(KeyEvent.VK_I, InputEvent.SHIFT_DOWN_MASK | InputEvent.ALT_DOWN_MASK | InputEvent.CTRL_DOWN_MASK));
dockingTool.addAction(action);

// Find vulnerabilities
Expand All @@ -96,6 +97,7 @@ public void actionPerformed(ActionContext context) {
action.setEnabled(true);
action.setDescription("Find vulnerabilities in the function with the help of ChatGPT");
action.setMenuBarData(new MenuData(new String[] { ToolConstants.MENU_TOOLS, FUNCTION_ID_NAME, "Find Vulnerabilities" }));
action.setKeyBindingData(new KeyBindingData(KeyEvent.VK_V, InputEvent.SHIFT_DOWN_MASK | InputEvent.ALT_DOWN_MASK | InputEvent.CTRL_DOWN_MASK));
dockingTool.addAction(action);

// Beautify function
Expand All @@ -111,6 +113,7 @@ public void actionPerformed(ActionContext context) {
action.setEnabled(true);
action.setDescription("Beautify the function with the help of ChatGPT");
action.setMenuBarData(new MenuData(new String[] { ToolConstants.MENU_TOOLS, FUNCTION_ID_NAME, "Beautify Function" }));
action.setKeyBindingData(new KeyBindingData(KeyEvent.VK_B, InputEvent.SHIFT_DOWN_MASK | InputEvent.ALT_DOWN_MASK | InputEvent.CTRL_DOWN_MASK));
dockingTool.addAction(action);

// Update OpenAI Token
Expand Down

0 comments on commit ec88daa

Please sign in to comment.