https://github.com/cosh/whatcouldpotentiallygowrong
https://github.com/cosh/whatcouldpotentiallygowrong
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cosh/whatcouldpotentiallygowrong
- Owner: cosh
- License: mit
- Created: 2021-12-06T07:28:16.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-07T16:38:10.000Z (over 4 years ago)
- Last Synced: 2025-03-27T17:20:50.314Z (about 1 year ago)
- Language: C#
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# What could potentially go wrong?
[](https://github.com/cosh/whatcouldpotentiallygowrong/actions/workflows/buildtest.yml)
This is a project to do some research on how to protect from mallicous code injected during runtime.
## Example
curl request:
```
curl -X 'POST' \
'https://localhost:49161/Execute' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"code": "return _ => _ * 2;",
"input": 10
}'
```
response:
```json
{
"spec": {
"code": "return _ => _ * 2;",
"input": 10
},
"result": 20
}
```