Skip to content

Commit

Permalink
fix bug: missing original function call of php probe
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackerl committed Dec 1, 2022
1 parent 8ebe56d commit 03f9838
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/Elkeid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,12 @@ jobs:
run: cd agent && go build -o elkeid-agent

- name: Build Server
run: cd server/build && ./build.sh
run: cd server/build && ./build.sh

- name: Upload RASP
uses: actions/upload-artifact@v3
with:
name: rasp
path: |
rasp/rasp_*.tar.gz
rasp/debug.tar.gz
4 changes: 3 additions & 1 deletion rasp/php/php/api.h
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,10 @@ class APIEntry {
}

if constexpr (!Ret) {
if (!gAPIConfig->surplus(ClassID, MethodID))
if (!gAPIConfig->surplus(ClassID, MethodID)) {
origin(INTERNAL_FUNCTION_PARAM_PASSTHRU);
return;
}

gAPITrace->enqueue(trace);
origin(INTERNAL_FUNCTION_PARAM_PASSTHRU);
Expand Down

0 comments on commit 03f9838

Please sign in to comment.