Add sca signature, change package name format by lostsnow · Pull Request #118 · HXSecurity/DongTai-agent-python · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 22 additions & 22 deletions .github/workflows/codeql-analysis.yml
4 changes: 4 additions & 0 deletions .github/workflows/vul-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ jobs:
run: |
curl --fail --retry-delay 10 --retry 30 --retry-connrefused http://127.0.0.1:8003/api/django/demo/get_open?name=Data
cd ${{ github.workspace }}/DockerVulspace
docker-compose exec -T djangoweb python -V
docker-compose exec -T djangoweb pip list
docker-compose exec -T flaskweb python -V
docker-compose exec -T flaskweb pip list
docker-compose logs djangoweb flaskweb
bash ${{ github.workspace }}/DongTai-agent-python/dongtai_agent_python/tests/vul-test.sh \
django http://127.0.0.1:8003/api/django ${{ github.run_id }}
Expand Down
6 changes: 3 additions & 3 deletions dongtai_agent_python/assess_ext/patch/cast.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ PyObject *unicode_cast_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)

int apply_cast_patch(funchook_t *funchook) {
bytes_cast_origin = (void *)PyBytes_Type.tp_new;
funchook_prepare_wrapper(funchook, &bytes_cast_origin, bytes_cast_new);
funchook_prepare_wrapper(funchook, (PyCFunction)&bytes_cast_origin, bytes_cast_new);

bytearray_cast_origin = (void *)PyByteArray_Type.tp_init;
funchook_prepare_wrapper(funchook, &bytearray_cast_origin, bytearray_cast_new);
funchook_prepare_wrapper(funchook, (PyCFunction)&bytearray_cast_origin, bytearray_cast_new);

unicode_cast_origin = (void *)PyUnicode_Type.tp_new;
funchook_prepare_wrapper(funchook, &unicode_cast_origin, unicode_cast_new);
funchook_prepare_wrapper(funchook, (PyCFunction)&unicode_cast_origin, unicode_cast_new);

log_debug("------c_patch------------------ cast");

Expand Down
13 changes: 7 additions & 6 deletions dongtai_agent_python/utils/utils.py