Skip to content

Commit dc3a32b

Browse files
committed
Add plugin.json.
- Add new line to __init__.py to conform to PEP.
1 parent 7c741b5 commit dc3a32b

2 files changed

Lines changed: 35 additions & 1 deletion

File tree

__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
"Requires an internet connection and an API key "
66
"saved under the environment variable "
77
"OPENAI_API_KEY",
8-
TODO)
8+
TODO)

plugin.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"pluginmetadataversion": 1,
3+
"name": "OpenAI",
4+
"type": [
5+
"helper"
6+
],
7+
"api": [
8+
"python3"
9+
],
10+
"description": "Queries OpenAI to see what a function does in a given IL or pseudo-C.",
11+
"longdescription": "",
12+
"license": {
13+
"name": "MIT",
14+
"text": "Copyright (c) 2022 Sean Deaton (@WhatTheFuzz)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE."
15+
},
16+
"platforms": [
17+
"Darwin",
18+
"Linux",
19+
"Windows"
20+
],
21+
"installinstructions": {
22+
"Darwin": "pip3 install --user openai\nUnder your OpenAI account, create an API key and set it to the environment variable OPENAI_API_KEY; ie export OPENAI_API_KEY=<KEY_HERE>",
23+
"Linux": "pip3 install --user openai\nUnder your OpenAI account, create an API key and set it to the environment variable OPENAI_API_KEY; ie export OPENAI_API_KEY=<KEY_HERE>",
24+
"Windows": "You're on your own."
25+
},
26+
"dependencies": {
27+
"pip": [
28+
"openai"
29+
],
30+
},
31+
"version": "1.0.0",
32+
"author": "Sean Deaton (@WhatTheFuzz)",
33+
"minimumbinaryninjaversion": 3164
34+
}

0 commit comments

Comments
 (0)