Skip to content

Commit

Permalink
malware dev tricks: part 36, add DLL injection link
Browse files Browse the repository at this point in the history
  • Loading branch information
cocomelonc committed Sep 25, 2023
1 parent b920fc2 commit e5c558a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _posts/2023-09-25-malware-trick-36.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ int listModulesOfProcess(int pid) {

As you can see, the code is a bit similar to the PID search logic with `CreateToolHelp32Snapshot`, `Process32First` and `Process32Next`.

So, the full source code is looks like this:
So, the full source code is looks like this (`hack.c`):

```cpp
/*
Expand Down Expand Up @@ -209,7 +209,7 @@ And just run our `hack.exe`:

![hack](/assets/images/108/2023-09-25_12-44.png){:class="img-responsive"}

Also, check with DLL injection logic:
Also, check with [DLL injection](/tutorial/2021/09/20/malware-injection-2.html) logic:

![hack](/assets/images/108/2023-09-25_13-36.png){:class="img-responsive"}

Expand Down

0 comments on commit e5c558a

Please sign in to comment.