{"id":13839600,"url":"https://github.com/mhaskar/Shellcode-In-Memory-Decoder","last_synced_at":"2025-07-11T06:30:49.644Z","repository":{"id":112693629,"uuid":"278740369","full_name":"mhaskar/Shellcode-In-Memory-Decoder","owner":"mhaskar","description":"A simple C implementation to decoded your shellcode and writes it directly to memory","archived":false,"fork":false,"pushed_at":"2020-07-10T22:34:21.000Z","size":1295,"stargazers_count":95,"open_issues_count":3,"forks_count":29,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-08-05T17:23:58.275Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mhaskar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-07-10T21:54:14.000Z","updated_at":"2024-06-17T13:06:40.000Z","dependencies_parsed_at":"2023-09-11T22:35:30.844Z","dependency_job_id":null,"html_url":"https://github.com/mhaskar/Shellcode-In-Memory-Decoder","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhaskar%2FShellcode-In-Memory-Decoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhaskar%2FShellcode-In-Memory-Decoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhaskar%2FShellcode-In-Memory-Decoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhaskar%2FShellcode-In-Memory-Decoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mhaskar","download_url":"https://codeload.github.com/mhaskar/Shellcode-In-Memory-Decoder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225699943,"owners_count":17510431,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T17:00:31.063Z","updated_at":"2024-11-21T08:31:18.939Z","avatar_url":"https://github.com/mhaskar.png","language":"C","funding_links":[],"categories":["C","C (286)"],"sub_categories":[],"readme":"# Shellcode-In-Memory-Decoder\n\nA simple C implementation to decoded your shellcode and writes it directly to memory, You can use this code to perform process injection.\n\n# Usage\n\nYou need to encode your shellcode first, the file `xor-encoder.py` is a very simple example of how you can encode your shellcode using XOR.\n\nThen you need to copy the output of `xor-encoder.py` and paste it into `shellcode` array in the file `decoder.c`.\n\nTo compile the code from Linux you can use `Mingw64` Like the following:\n\n`x86_64-w64-mingw32-gcc decoder.c -o decoder.exe -w`\n\nAfter that, you can run it in the target machine and pass the PID like the following:\n\n`C:\\Users\\askar\\Desktop\u003edecoder.exe 3796`\n\n![Run Decoder](Decoder-example.png)\n\nAnd after we run it, we will get the following nice beacon:\n\n![GitHub Logo](Cobalt-Beacon.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhaskar%2FShellcode-In-Memory-Decoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmhaskar%2FShellcode-In-Memory-Decoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhaskar%2FShellcode-In-Memory-Decoder/lists"}