diff --git a/README.md b/README.md index 0b45514..d3abca8 100644 --- a/README.md +++ b/README.md @@ -11,12 +11,16 @@ This is done step by step as,\ 6. Process all of DLL image's relocations\ 7. Call the DLL entry point -## Table of Contents - -- [Usage](#usage) +### Steps to try: +- [Compiling target.dll](#CompilingDll) + > g++ -shared -o target.dll target.cpp -Wl,--out-implib,libtdll.a +- [Create shellcode](#usage) > python shellcode.py -- [Contributing](#contributing) -- [License](#license) +- [Compiling loader.exe](#CompilingExe) + > g++ loader.c -o loader.exe +- [Running loader.exe](#CRunningExe) + > loader.exe + ## Usage @@ -25,7 +29,9 @@ Examples and instructions for using the project. ## Contributing Guidelines for contributing to the project. +- [Contributing](#contributing) ## License -Information about the project's license. \ No newline at end of file +Information about the project's license. +- [License](#license) \ No newline at end of file diff --git a/loader.c b/loader.c index 3b51af1..d7e6b03 100644 --- a/loader.c +++ b/loader.c @@ -1,12 +1,15 @@ #include #include #include +#include int main() { DWORD bytesRead; + const TCHAR* filePath; BOOL fileReadSuccess, filePermChangeSuccess, processCreateSuccess; - const TCHAR* filePath = _T("shellcode.bin"); + //scanf("Enter the shellcode(shellcode+dll) binary file path: %d", filePath); + filePath = _T("shellcode.bin"); printf("Loader started!\n"); printf("Shellcode path: %s\n", filePath); diff --git a/loader.exe b/loader.exe index c6434aa..21c6b5c 100644 Binary files a/loader.exe and b/loader.exe differ diff --git a/shellcode.bin b/shellcode.bin new file mode 100644 index 0000000..99fc3d3 Binary files /dev/null and b/shellcode.bin differ