Programming and Coding
Programming and coding tips, help and solutions...
1,882 topics in this forum
-
Poco lib in Visual Studio 2010 project
by CodeExplorer- 1 reply
- 3.7k views
I have a project which includes barswf_cpu - in this one there is no POCO_STATIC; in Preprocessor Definitions in two other subprojects barswf_brook and barswf_cuda there is POCO_STATIC; in Preprocessor Definitions: in those subprojects when it tries to execute: g->log->information("------------------------------"); g->log->information("BarsWF started"); it crushes when tries to allocate memory! msvcr100.dll!operator new(unsigned int size) Line 63 + 0x1a bytes C++ barswf_brook.exe!std::allocator<char>::allocate(unsigned int _Count) Line 187 + 0x12 bytes C++ > barswf_brook.exe!std::basic_string<ch…
-
Visual Studio 2010 include library???
by CodeExplorer- 7 replies
- 4.6k views
Visual Studio 2010 include library: So I once again have a question: I need to include: https://github.com/jmendeth/ccv15/tree/master/libs/poco I found this info: https://docs.microsoft.com/en-us/cpp/build/walkthrough-creating-and-using-a-dynamic-link-library-cpp?view=vs-2019 So the first thing I do is copy "include folder" to D:\BarsWF-master\Poco and that thing seems to work just fine. Now the compiler complains: 1>LINK : fatal error LNK1104: cannot open file 'PocoFoundationmtd.lib' Already tried Project Properties -> Linker -> Additional Library Directories No good result!
-
Any working Ace Extrator on C++ ???
by CodeExplorer- 13 replies
- 4.3k views
Any working Ace Extrator on C++ ??? https://github.com/ipr/qXpkLib https://github.com/ipr/qXpkLib/tree/master/xadACE missing the Extract Entry method! ftp://madmike.ml/Downloads/Software/Archivators/Ace32/UNACESRC/UNACE.C this is in C - DOS and I don't know how to open/compile it https://github.com/droe/acefile/blob/master/acefile.py python Generic tut https://www.roe.ch/acefile Already tried: Anyway: it doesn't work!
-
emplace syntax - error fixing:
by CodeExplorer- 3 replies
- 4k views
emplace syntax - error fixing Having this original method: Source code location: https://github.com/cr-marcstevens/sha1_gpu_nearcollisionattacks/blob/master/contrib/program_options.hpp I am trying this: inline void store(const variables_map& src, variables_map& dest) { // append values in src to dest // for (po::variables_map::iterator it = vm.begin(); it != vm.end(); it++) { // for (auto& l_p : src) for (program_options::variables_map::const_iterator l_p = src.begin(); l_p != src.end(); l_p++) { // for each (std::string s in…
-
need help on this regex pattern
by abbas- 3 replies
- 4k views
tried some online services saying wrong format blah blah... Spoiler ^"\/Date\((?<ticks>-?[0-9]+)(?:[a-zA-Z]|(?:\+|-)[0-9]{4})?\)\/"
-
- 0 replies
- 3.7k views
hi all currently stuck on FromJason(). googled for hours but every thing i pass to it, raises exception. Spoiler {System.Resources.MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure ".resources" was correctly embedded or linked into assembly "netutilities" at compile time, or that all the satellite assemblies required are loadable and fully signed. at System.Resources.ManifestBasedResourceGroveler.HandleResourceStreamMissing(String fileName) at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(C…
-
How to get RVA from MethodBase?
by CreateAndInject- 9 replies
- 5.7k views
How to get the RVA of a method from MethodBase/MethodInfo?
-
Rebuilding PE sections
by Codelove- 1 reply
- 4.5k views
Hello guys, I'm trying to rebuild the PE sections because I want to reorder them. Has someone done this? What are the requirements for that? Some addresses are linked to certain directories and the padding between them? Any possible examples? I'm asking that because usually .reloc section is the last one and when I add a new section, it comes after it.
-
How to handle proxy addresses?
by LCF-AT- 7 replies
- 6k views
Hi guys, can anyone tell me how to handle a proxy using windows socket & OpenSSL functions?So I get all working on normal way to call any addresses and to get response but now I tried to do the same but with any proxy address but get some issues.So what is the correct way to handle the proxy address before handle the main request address / header? Example: Proxy: 123.123.123.123:8080 Request to google.com inet_addr, proy address filling peer struct socket, AF_INET, SOCK_STREAM, IPPROTO_IP ; or IPPROTO_TCP connect, s, addr peer, sizeof peer Now on internet and in OpenSSL I see it does call send function... CONNECT google.com:443 HTTP/1.0 ...and after …
-
Harmony Injector Help
by Ahmad_k- 2 replies
- 5.3k views
I was trying Harmony it looks very promising as it is very useful for me. My problem is i can't inject the created dll into my assembly to do some test using MegaDumper. I got (Failed to get Base of kernel32) What i did is just intercept the calculate function inside another form application. Is there any simple application for injecting dll ? DLL Code to inject using Harmony; using System; using System.Reflection; using Harmony_test; using System.Windows.Forms; namespace ClassLibrary1 { public class Class1 { static void Main(string[] args) { var harmony = HarmonyInstance.Create("com.test.test"); h…
-
- 19 replies
- 6k views
Hi guys, I have a new small question. I would like to start a new other process from my app using CreateProcess function.Now if the new other app runs I would like to send some datas into the other app like to an edit control. Example: App 1 and App 2.Both can run for itself without to need each other.Now I wanna start App 2 from App 1 = both apps running.Here I would like already to send some datas from App 1 into App 2 on startup like PID / Handle infos etc and if App 2 runs it should check whether infos was send on startup or not to know that App 1 is waiting for some infos from App 2.App 2 should now send infos to App 1 so in my case example it should j…
-
C++ code editing
by schoolboy- 0 replies
- 4.6k views
Hi guys, can you edit that code for me? I don't know C ++, unfortunately. I tried to do it myself but I guess my codes are wrong. #include <stdio.h> int main() { FILE* fp; fp = fopen("test.exe", "r"); if (v0 && (fseek(fp, v0 + 16, 0), fread( & v2, 8u, 1u, fp), !strncmp(&v3, "EA06", 4u))) fclose(fp); }
-
- 3 replies
- 4.7k views
the problem is i cannot run and getting this error i dont get it at all, really need some help
-
.ICO to Bitmap...
by LCF-AT- 23 replies
- 9.3k views
Hi guys, I have another small question about icons / ico files.Is it possible to load ico files from resources and change them to bitmap icons?I would like to use the "SetMenuItemBitmaps" function but its not working with normal ico files.Normaly I am mostly just using ico files and I dont wanna convert them to another bitmap icons if I need them in this format.So is it doable to load & convert ico files / handle on fly with any xy function (Icon2BitmapIcon etc) and using them with SetMenuItemBitmaps function? greetz
-
- 0 replies
- 4.4k views
#delphi #python #conditional_access #encryption hi everyone, maybe you can help me, about source code DVB-S2(Digital Video Broadcasting) Encryption. like Power Vu, Tanberg, XCrypt, Irdeto 1,2&3, conax in Delphi or Python, i interesting to learn it 😉 thx b4. i have several source like this all about DVB Encryption [Digital System] https://en.m.wikipedia.org/wiki/Conditional_access Indonesian Sattelite Forum & about Dish Pointing https://www.forumsatelit.com FB Group Keyword search to get Firmware Forsat, Forsat Indonesia, Teknisi Parabola, by vendor, product & chipset name Matrix, Tanaka, Getmecom, …
-
How to read JSON correctly?
by LCF-AT- 24 replies
- 17.5k views
Hi guys, I would like to code a JSON viewer and showing the datas as tree.The problem I have is that I dont know how to read the JSON markers inside correctly without to produce any handling errors to check whether its an object or array etc.So should I read the JSON content spot by spot and checking each one by signs { , [ ] } : etc?Or should I use any API etc?Just looking for a parse solution you know.Maybe you can tell me something about this and what could be a good method I could use later. Thank you
-
- 0 replies
- 3.7k views
Hi everyone. I have tried get clean strings after obfuscation and encryption, but it's not successfully. I was doing similar things that i've done in .Net app (and it works fine). Previous work (in C#): The main app have ecrypted string with this alghorithm: public static string ?1?(string ?1?) { int length = ?1?.Length; char[] array = new char[length]; for (int i = 0; i < array.Length; i++) { char c = ?1?[i]; byte b = (byte)((int)c ^ length - i); byte b2 = (byte)((int)(c >> 8) ^ i); array[i] = (char)((int)b2 << 8 | (int)b); } return string.Intern(new string(array)); } I have changed it to the next help method: static string M…
-
- 24 replies
- 7.3k views
Hi guys, I would like to know whether anyone knows a method to create rounded corners (buttons / Icons) filled with gardient colors inside and transparent outside the corners.At the moment I didnt found any way to make it with a simple method.Only thing I could do is to fill each outside pixel manually with some color xy. Example: Using static color of menu (no gardient style) I create a context menu with drawed icons before each menu entry.Now I draw the background with same color like the menu has and then creating the round corners. ............... invoke GetSysColor,COLOR_MENU ; get system menu color …
-
WM_MEASUREITEM problem
by LCF-AT- 1 follower
- 3 replies
- 4.4k views
Hi guys, I have a new problem found at WM_MEASUREITEM message and using the content of MEASUREITEMSTRUCT.itemData. I created a normal popmenu with ownerdraw flag and at WM_MEASUREITEM & WM_DRAWITEM I am using the content of itemData of both structs (DRAWITEMSTRUCT and MEASUREITEMSTRUCT) to read the menu string and draw it.But anyhow its working diffrent so I dont get the same results.For my popmenu everything works well and the menu strings are comletely inside of itemData to see but when I am also using a second normal main menu with ownerdraw flag then I dont have the whole menu string inside of itemData and I got only ONE letter and the menu does also sho…
-
dnLib Inject MethodDef in TypeDef
by Kaidoz- 1 reply
- 5.6k views
Hey everyone. I try inject Method in TypeDef, but i cant do. Maybe anybody help me? My code: try { ModuleDefMD typeModule = ModuleDefMD.Load(typeof(Encrypt).Module); var mthDef = typeModule.ResolveMethod(MDToken.ToRID(typeof(Encrypt).GetMethods().Where(x => x.Name == "EncryptOrDecrypt").First().MetadataToken)); foreach (var d in module.Types) if (d.HasMethods) { d.Methods.Add(mthDef); } foreach (MethodDef md in module.GlobalType.Methods) { if (md.Name == ".ctor") { …
-
- 22 replies
- 6.6k views
Hi guys, I have a new question.I wanna ask whether its possible to use diffrent colors for a single menu item string entry? Example: ContextMenu Menu ---------------------------- ABC 123 <-- blue & red 111 222 <-- only red AAB SAB <-- only blue 1A2 B4C <-- blue & red ---------------------------- Above you see 4 menu item entry / string.Just some letters and numbers.Now I would like to show the letters in color A (Blue) and the numbers in color B (Red).So is that possible to do that anyhow in a same single menu item?I am also not sure whether its possible with a Ownerdraw to seperate the text color.Does anyone know that or had …
-
How to use WM_MENUDRAG message?
by LCF-AT- 0 replies
- 4k views
Hi guys, I was trying to create a popup menu using CreatePopupMenu function and SetMenuInfo function (MNS_DRAGDROP) to get triggered by WM_MENUDRAG message = Ok.Now on this message I can read wparam content to check out where the drag did started lik from position 1 for example.The problem now is how to check where the drag did end if I release the left mousebutton again?There is a message called WM_MENURBUTTONUP but not for the left button.Now I dont know how to find that out to catch the drag end of this operation you know.Only thing I could do is to catch WM_MENUSELECT after WM_MENUDRAG (setting a marker of drag start item index) and checking at WM_MENUSELECT whic…
-
Want to learn C Programming ?
by malware- 4 replies
- 6.5k views
I want to learn c programming language. Now i understand basic of asm (nasm & masm). Which ebook or tutorial should i follow. *Best resources* The purpose of learning is i want to develop malware (legal monitoring). (Also reverse engineer malware). Thanks
-
Sending Alt+Pause (Alt+Break) to dosbox debugger???
by CodeExplorer- 6 replies
- 5.7k views
Sending Alt+Pause (Alt+Break) to dosbox debugger ??? DosBox uses SDL.dll so I think SendInput function has to be used: https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-sendinput SendInputExamples: https://batchloaf.wordpress.com/2012/04/17/simulating-a-keystroke-in-win32-c-or-c-using-sendinput/ https://stackoverflow.com/questions/6811899/how-would-i-use-keybd-event-to-send-a-for-example https://batchloaf.wordpress.com/2012/10/18/simulating-a-ctrl-v-keystroke-in-win32-c-or-c-using-sendinput/ https://stackoverflow.com/questions/29129987/c-simulating-keystrokes-using-sendinput-method-failure-to-distinguish-right Anyway Visual C++ …
-
C generate all possible combination of strings - for brute force
by CodeExplorer- 5 replies
- 5.2k views
C generate all possible combination of strings - for brute force: char* ValidChars = "0123456789ABCDEF"; int MinimLen = 1; int MaximLen = 2; char SpecialChars[255] = {0}; char GeneratedString[50] = {0}; int Valid_Chars_len = strlen(ValidChars); SpecialChars[0] = ValidChars[0]; // the first char will be first allowed char // SpecialChars[i] will point to next char like this: // SpecialChars['a'] = 'b'; // SpecialChars['b'] = 'c'; // SpecialChars['c'] = 00; // the end of a loop for (int i=0;i<Valid_Chars_len-1;i++) SpecialChars[ValidChars[i]] = ValidChars[i+1]; memset(GeneratedString, ValidChars[0], MinimLen); // we start with 'aaa' string char NextChar; int P…