![]() |
|
[C] Building stubs with parameters - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [C] Building stubs with parameters (/showthread.php?tid=6103775) |
Building stubs with parameters - Lynx - Aug 19, 2020 I need advice on how to alter an exe to contain hostnames, ports and other parameters. I need this process done with either php or c++. Would love to see examples of both langs. Thank you in advance. RE: Building stubs with parameters - omboml - Aug 19, 2020 There are different ways to do that 1. Ship code and compiler with the panel and compile them into the executable on build (Requires cross compilation if host and Target is doesn't match) 2. Append your settings to the end of stub binary file, with some kind of seperator. In the stub at runtime read the end of the stub file and parse the settings. (Just open stub in binary mode and append string) 3. Write settings into resource section of the stub. (Requires winapi I guess) 4. Define static memory with template data in source code of stub for settings. Open stud In binary mode and search and replace template by your settings. No example code, I'm writing from smartphone, sorry bro. RE: Building stubs with parameters - maldev0 - Aug 19, 2020 - create a serversided builder executable, which basically makes modification on your target exe - serversided builder exe can use plenty ways to store data inside a file, for example:
- profit RE: Building stubs with parameters - Lynx - Aug 19, 2020 (Aug 19, 2020 03:50 AM)maldev0 Wrote: - create a serversided builder executable, which basically makes modification on your target exe Do you have examples or sources which help me understand better? RE: Building stubs with parameters - 4Txe4y33C9zvNhMj - Aug 19, 2020 (Aug 19, 2020 05:20 AM)Lynx Wrote: Do you have examples or sources which help me understand better? https://www.codeproject.com/Articles/47708/Modify-Update-resources-of-an-Exe-DLL-on-the-fly I've added you on Discord, lmk if you need any further help :) RE: Building stubs with parameters - indetectable - Sep 18, 2020 Damn, we end up here in the dark places of the lineup! It's so exciting that sort of thing with people who know so well and do crazy things! RE: Building stubs with parameters - hell-o-world - Oct 7, 2020 (Aug 19, 2020 11:57 AM)4Txe4y33C9zvNhMj Wrote: https://www.codeproject.com/Articles/47708/Modify-Update-resources-of-an-Exe-DLL-on-the-fly Thanks for the link will read that later when the time come ! Cheers ! RE: Building stubs with parameters - Ayyyther - Nov 27, 2020 It's a bit odd that you ask for help with conceptualizing something like this but offer C++ development as a paid service in your signature. RE: Building stubs with parameters - Rmdy - Nov 27, 2020 (Nov 27, 2020 06:13 PM)Ayyyther Wrote: It's a bit odd that you ask for help with conceptualizing something like this but offer C++ development as a paid service in your signature. The thread was already 3 months old, there's lot of improvement that could happen with that timespan. Regards, Rmdy RE: Building stubs with parameters - Ayyyther - Nov 27, 2020 (Nov 27, 2020 06:57 PM)Rmdy Wrote: The thread was already 3 months old, there's lot of improvement that could happen with that timespan. Jesus, I didn't realize. I don't remember going past the first page of this category. My apologies. |