├── .gitignore ├── CHANGELOG ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── TODO ├── compose.yaml ├── compose_debug_env.yaml ├── docs ├── add_extension.md ├── code_documentation.md ├── db.md ├── imgs │ ├── copertina.gif │ ├── prompt1.jpg │ ├── prompt2.gif │ ├── prompt3.gif │ ├── usage1.jpg │ ├── usage2.jpg │ ├── usage3.jpg │ ├── usage4.jpg │ ├── usage5.jpg │ └── usage6.jpg ├── installation.md ├── notes.md ├── prompt_details.md ├── tests.md └── usage.md ├── nginx └── nginx.conf ├── old_readme.md ├── src ├── Dockerfile ├── action │ └── __init__.py ├── extension │ ├── __init__.py │ └── skel.py ├── init_mongo.py ├── openai_prompt │ ├── __init__.py │ ├── capa_minimal.py │ ├── rce_taint_analysis.py │ └── smartcontract_vuln.py ├── requirements.txt ├── server.py ├── static │ ├── css │ │ ├── bootstrap.min.css │ │ └── style.css │ └── js │ │ ├── bootstrap.min.js │ │ ├── jquery-3.3.1.slim.min.js │ │ └── popper.min.js ├── templates │ ├── base.html │ ├── extension.html │ ├── extension │ │ └── skel.html │ ├── index.html │ ├── prompts.html │ ├── results.html │ ├── settings.html │ ├── uploadfile.html │ └── uploadprompt.html ├── work.py └── wrap_openai.py └── use_cases ├── capa_minimal.py_tests └── NormalProgramTrustMe.zip ├── rce_taint_analysis.py_tests ├── Env.zip └── main_original.c ├── readme.md ├── smartcontract_vuln.py_tests └── MyBank.zip └── word_counter_example └── Chat.zip /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/.gitignore -------------------------------------------------------------------------------- /CHANGELOG: -------------------------------------------------------------------------------- 1 | 2 | 04/10/2023 : 3 | - v0.1 (beta) 4 | 5 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/README.md -------------------------------------------------------------------------------- /TODO: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/TODO -------------------------------------------------------------------------------- /compose.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/compose.yaml -------------------------------------------------------------------------------- /compose_debug_env.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/compose_debug_env.yaml -------------------------------------------------------------------------------- /docs/add_extension.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/docs/add_extension.md -------------------------------------------------------------------------------- /docs/code_documentation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/docs/code_documentation.md -------------------------------------------------------------------------------- /docs/db.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/docs/db.md -------------------------------------------------------------------------------- /docs/imgs/copertina.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/docs/imgs/copertina.gif -------------------------------------------------------------------------------- /docs/imgs/prompt1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/docs/imgs/prompt1.jpg -------------------------------------------------------------------------------- /docs/imgs/prompt2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/docs/imgs/prompt2.gif -------------------------------------------------------------------------------- /docs/imgs/prompt3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/docs/imgs/prompt3.gif -------------------------------------------------------------------------------- /docs/imgs/usage1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/docs/imgs/usage1.jpg -------------------------------------------------------------------------------- /docs/imgs/usage2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/docs/imgs/usage2.jpg -------------------------------------------------------------------------------- /docs/imgs/usage3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/docs/imgs/usage3.jpg -------------------------------------------------------------------------------- /docs/imgs/usage4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/docs/imgs/usage4.jpg -------------------------------------------------------------------------------- /docs/imgs/usage5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/docs/imgs/usage5.jpg -------------------------------------------------------------------------------- /docs/imgs/usage6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/docs/imgs/usage6.jpg -------------------------------------------------------------------------------- /docs/installation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/docs/installation.md -------------------------------------------------------------------------------- /docs/notes.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/docs/notes.md -------------------------------------------------------------------------------- /docs/prompt_details.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/docs/prompt_details.md -------------------------------------------------------------------------------- /docs/tests.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/docs/tests.md -------------------------------------------------------------------------------- /docs/usage.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/docs/usage.md -------------------------------------------------------------------------------- /nginx/nginx.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/nginx/nginx.conf -------------------------------------------------------------------------------- /old_readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/old_readme.md -------------------------------------------------------------------------------- /src/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/src/Dockerfile -------------------------------------------------------------------------------- /src/action/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | 3 | # custom action needed by the extension modules 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/extension/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/src/extension/__init__.py -------------------------------------------------------------------------------- /src/extension/skel.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/src/extension/skel.py -------------------------------------------------------------------------------- /src/init_mongo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/src/init_mongo.py -------------------------------------------------------------------------------- /src/openai_prompt/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/src/openai_prompt/__init__.py -------------------------------------------------------------------------------- /src/openai_prompt/capa_minimal.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/src/openai_prompt/capa_minimal.py -------------------------------------------------------------------------------- /src/openai_prompt/rce_taint_analysis.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/src/openai_prompt/rce_taint_analysis.py -------------------------------------------------------------------------------- /src/openai_prompt/smartcontract_vuln.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/src/openai_prompt/smartcontract_vuln.py -------------------------------------------------------------------------------- /src/requirements.txt: -------------------------------------------------------------------------------- 1 | pymongo 2 | flask 3 | requests 4 | -------------------------------------------------------------------------------- /src/server.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/src/server.py -------------------------------------------------------------------------------- /src/static/css/bootstrap.min.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/src/static/css/bootstrap.min.css -------------------------------------------------------------------------------- /src/static/css/style.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/src/static/css/style.css -------------------------------------------------------------------------------- /src/static/js/bootstrap.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/src/static/js/bootstrap.min.js -------------------------------------------------------------------------------- /src/static/js/jquery-3.3.1.slim.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/src/static/js/jquery-3.3.1.slim.min.js -------------------------------------------------------------------------------- /src/static/js/popper.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/src/static/js/popper.min.js -------------------------------------------------------------------------------- /src/templates/base.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/src/templates/base.html -------------------------------------------------------------------------------- /src/templates/extension.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/src/templates/extension.html -------------------------------------------------------------------------------- /src/templates/extension/skel.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/src/templates/extension/skel.html -------------------------------------------------------------------------------- /src/templates/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/src/templates/index.html -------------------------------------------------------------------------------- /src/templates/prompts.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/src/templates/prompts.html -------------------------------------------------------------------------------- /src/templates/results.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/src/templates/results.html -------------------------------------------------------------------------------- /src/templates/settings.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/src/templates/settings.html -------------------------------------------------------------------------------- /src/templates/uploadfile.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/src/templates/uploadfile.html -------------------------------------------------------------------------------- /src/templates/uploadprompt.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/src/templates/uploadprompt.html -------------------------------------------------------------------------------- /src/work.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/src/work.py -------------------------------------------------------------------------------- /src/wrap_openai.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/src/wrap_openai.py -------------------------------------------------------------------------------- /use_cases/capa_minimal.py_tests/NormalProgramTrustMe.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/use_cases/capa_minimal.py_tests/NormalProgramTrustMe.zip -------------------------------------------------------------------------------- /use_cases/rce_taint_analysis.py_tests/Env.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/use_cases/rce_taint_analysis.py_tests/Env.zip -------------------------------------------------------------------------------- /use_cases/rce_taint_analysis.py_tests/main_original.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/use_cases/rce_taint_analysis.py_tests/main_original.c -------------------------------------------------------------------------------- /use_cases/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/use_cases/readme.md -------------------------------------------------------------------------------- /use_cases/smartcontract_vuln.py_tests/MyBank.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/use_cases/smartcontract_vuln.py_tests/MyBank.zip -------------------------------------------------------------------------------- /use_cases/word_counter_example/Chat.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NightmareLab/SourceGPT/HEAD/use_cases/word_counter_example/Chat.zip --------------------------------------------------------------------------------