Programming and Coding
Programming and coding tips, help and solutions...
1,894 topics in this forum
-
Hello All, I am trying to add two methods in de4dot.blocks.cflow.InstructionEmulator. private void Emulate_Stelem_I4(Instruction instr) { Value value = this.valueStack.Pop(); bool flag = value.IsInt32(); if (flag) { Int32Value int32Value = (Int32Value)this.valueStack.Pop(); List<Value> list = this.valueStack.Pop(); list[int32Value.Value] = (Int32Value)value; } else { this.valueStack.Pop(); this.valueStack.Pop(); } private void Emulate_Ldelem_I4(Instruction instr) { Int32Value int32Value = (Int32Value)this.valueStack.Pop(); List<V…
-
-
- 2 replies
- 2.3k views
- 2 followers
-
-
Hi guys, don't remember anymore whether I did ask about it in past already (can not find post) so I need to ask now about it. A while ago I did already notice that I got trouble with filenames which using specific chars like symbols in the name. Mostly you can see that on youtube title names of any video using funny symbols etc, The problem is that I was just using normal ASCII functions in my MASM codes and I can not handle those symbol chars etc you know. Now I would like to fix that but how? Example: How to get the entire correctly filename (with symbols) on WM_DROPFILES message / edit controls etc? How to read those strange filename and how to handle them? …
-
-
- 19 replies
- 4.6k views
- 1 follower
-
-
hi i have a dll code in delphi language to extract .mp4 and .m4v format. but it doesn't work for .mkv format and when i want to inject the code , i'll get an error. anyone's can help me to solve that and make compile again? the code is written by somebody else : @GautamGreat click to download
-
-
- 13 replies
- 4.1k views
- 2 followers
-
-
Help me please for this code on java what i do her i new with java please anyone can help me? thank you all
-
- 0 replies
- 7k views
- 2 followers
-
-
Sometimes, you need to manipulate low-level functionality (C APIs, etc) from high-level languages (Python). Eg. Force the low-level side calls directly to your own Python override functions. This repo will help you do that. [x] Windows [x] Linux [x] MacOS [x] iOS [x] Android To hook & unhook a function, you only need to write codes as the following import ctypes from PyHooking import PyHooking, load_external_shared_library, arch, bits # define the hook function mylib = load_external_shared_library(f"Examples/mylib_{arch}_{bits}") @PyHooking.CPrototype(ctypes.CFUNCTYPE(None, ctypes.c_char_p)) def hk_print_message(message): message = f"Invo…
-
-
- 1 reply
- 3k views
- 2 followers
-
-
How to resolve forwarded import programmatically? I need general concept. They are some forwarded imports: [4274]=773D3660 ntdll.dll NtdllDefWindowProc_A user32.DefWindowProcA ->ntdll.dll NtdllDefWindowProc_A I need to get it back ntdll.dll NtdllDefWindowProc_A -> user32.DefWindowProcA Scylla does a quite great job on this, I've looked at source code but I can't understand it.
-
-
- 16 replies
- 4.1k views
- 3 followers
-
-
Hello everyone Hello everyone, I was try to compile titanhide I got some error. First I try compile by visual studio 2013 as @mrexodia write in his readme. It got failed by error not compotaible supported. I try - Property to change comptable mode w7 - change REGEDIT -Try service method also all faild Now I move to next For develp driver for old windows need EWDK so I try to install it again I got error devenv.exe is missing on it . It going fear full now. Now I move to install lasted version of visual Studio 2022+sdk+wdk. First I intall visual Studio 2022 with these all -. net 8.0 runtime -net fram…
-
-
- 4 replies
- 68.7k views
- 1 follower
-
-
Hello everyone I was check there are limited examples are available on internet to develop plugin for ollydbg so I resources and found plugin source code in ASM C++ DELPHI etc hope this will help someone good for new members (noob)like me(😋). https://mega.nz/file/8u1wSI4T#_8h_ftyqTAkP9scrtZm75hGayIGlso_vsSbkdoPYPw0 Enjoy.
-
- 0 replies
- 2.1k views
- 1 follower
-
-
Years ago, site migeel.sk had put a project called PE-Inject as Open Source for Delphi 7, and now site DelphiBasics has that project, but it is not complete, and I am looking for the complete and original version of this project. Please send if this project or a similar project has code or DLL file injection into the Exe file (I don't mean injecting the code into the running processes, but creating a new section in the exe file and injecting the DLL file or code into this section) There is new and then OEP change etc.) Thanks
-
-
- 2 replies
- 2.3k views
- 1 follower
-
-
Hello i've been reading up on some APIs and I came accross this api. I was trying to code a small debugger from it that attaches itself to a process but it seems a bit difficult to implement. Found some examples but they are not coded in delphi. Can anyone show a delphi example on how to use to attach to process? (DebugActiveProcess)
-
- 6 replies
- 7.5k views
- 1 follower
-
-
more - flerka.github.io/personal-blog/2022-06-21-ahead-of-time-compilation/ well explained by @th3pt python-Split dotNET AOT native compiled files-th3pt.rar
-
-
- 1 reply
- 2.4k views
- 1 follower
-
-
Language: Pascal/Lazarus supports running and stopping scripts, installing & uninstalling libraries, displaying libraries easily, there are some problems in windows 10, when running as administrator drag & drop doesn't work properly. You are free to modify this source as you wish, without needing my permission, but if possible, don't remove traces of my ID in the source code. Z-Code Editor LE 10902023.zip
-
- 0 replies
- 2.6k views
- 2 followers
-
-
hello i want know how i can fix this code program loader; uses Windows, Messages; {$R Loader.RES} var si : Startupinfo; pi : Process_Information; NewData : array[0..1] of byte = ($90,$90); NewDataSize : DWORD; Bytesread : DWORD; Olddata : array[0..1] of byte; begin NewDataSize := sizeof(newdata); IF CreateProcess(nil,'Example.exe',nil,nil,FALSE, ; >>>>>>>>>>>********** here its like loader work i neeed change this place to run from memeory mean program is run it fully then run this code and patch prog like > i thi…
-
Change the color of grid lines for ListCtrl so I've set this: m_List.SetExtendedStyle(LVS_EX_GRIDLINES | LVS_EX_FULLROWSELECT | LVS_EX_SUBITEMIMAGES | LVS_OWNERDRAWFIXED ); I've created message like this void MyListCtrl::OnCustomDraw(NMHDR* pNMHDR, LRESULT* pResult) { ... if (ShowCustomGridLines) DrawGridLines(); Now problematic code: // https://aucd29.tistory.com/2078 void MyListCtrl::DrawGridLines() { // TODO: Add your message handler code here // Do not call CListCtrl::OnPaint() for painting messages // First let the control do its default drawing. const MSG *msg = GetCurrentMessage(); DefWindowP…
-
- 5 replies
- 3.2k views
- 1 follower
-
-
Checkboxes in multiple columns in Visual C++ 6 ??? References: https://stackoverflow.com/questions/27309526/how-to-add-checkboxes-in-multiple-columns-in-vc https://www.codeproject.com/Articles/29064/CGridListCtrlEx-Grid-Control-Based-on-CListCtrl I can't find simple solutions, m_List.SetExtendedStyle(LVS_EX_GRIDLINES | LVS_EX_FULLROWSELECT | LVS_EX_SUBITEMIMAGES | LVS_EX_CHECKBOXES ); int itemPos, x; CString data; m_List.InsertColumn(0,"Column 1",LVCFMT_LEFT,100); m_List.InsertColumn(1,"Column 2",LVCFMT_LEFT,100); m_List.InsertColumn(2,"Column 3",LVCFMT_LEFT,100); for (x=0;x<3;x++) { data.Format("(%d,1)",x); …
-
-
- 4 replies
- 2.4k views
- 2 followers
-
-
hi I was wondering if anyone is interested in contributing to creating a de4dot wrapper for ilspy i have started some of it I'm looking to see it anyone is interested and are willing to help if you please get in touch with me on Discord the source code is private on my GitHub page until further notice modz2014#4684 here is a sneak peak as well
-
- 0 replies
- 2.6k views
- 1 follower
-
-
EDIT: Link added below to the full project for downloading > Link: http://www.kittmaster.com/imagedump/snd/App1.rar Long time....Greetz to all. I'm honing some skills going forward and I can't seem to get my head around how to call a function without issue of it being static or object errors....or simply, it doesn't work. I have built an MFC MDI using the wizard, compiled it...great...starts up works fine. The point, I'm trying to write messages to the output panes......3 of them...find/debug/build. There is pre-code that starts up showing the controls all work etc....so structurally I have done nothing to alter the code from the wizard.....all is right with …
-
-
- 8 replies
- 7.9k views
- 2 followers
-
-
Download Link: http://www.networkdls.com/Download/CRC32.zipTed.
-
I'm trying to set a page of memory to PAGE_EXECUTE only, I don't want any reads or writes to be possible to this page. However, after setting the page protection to PAGE_EXECUTE, read attempts can freely be made. I assume this has something to do with the CPU needing to fetch instructions from the RAM? anyway, is there any way that I can accomplish my goals here? that is: can I set a page to execute only such that no read or write attempts can be made on said page?
-
-
- 2 replies
- 2.8k views
- 1 follower
-
-
Decoding xmm instruction ??? like: https://c9x.me/x86/html/file_module_x86_id_204.html I've investigated a bit distorm: https://github.com/gdabah/distorm/tree/master/src https://github.com/gdabah/distorm/blob/master/src/instructions.c static _InstInfo* inst_vex_lookup(_CodeInfo* ci, _PrefixState* ps) { ... /* start can be either 1 (0x0f), 2 (0x0f, 0x038) or 3 (0x0f, 0x3a), otherwise it's illegal. */ switch (start) { case 1: in = Table_0F; break; case 2: in = Table_0F_38; break; case 3: in = Table_0F_3A; break; default: return NULL; } in = InstructionsTree[INST_NODE_INDEX(in) + *ci->…
-
- 4 replies
- 2.2k views
- 1 follower
-
-
Clr Profiler - difficulties on communications - on tracing result result back from dll to main exe's listview. I have an Visual Studio 2010 project, profiler.dll is made on C++, main exe interface is also made on C++. I've set two environment variables: Cor_Enable_Profiling=1 COR_PROFILER={DFEC737C-D0B1-4b86-A6FD-FDD998BEEB03} and I start the process with CreateProcess The problems comes that I can't log event information back to main exe interface - listview. Profiler dll gets called inside traced process. Already tried: main exe: unsigned int wndHandle = (unsigned int)GetDlgItem(IDC_LIST1)->m_hWnd; char buffer[10]; std::sp…
-
-
- 11 replies
- 3k views
- 1 follower
-
-
Hi guys, I've coded a basic memory scanner(DLL) in Delphi to search a string in game's memory.. but I'm with a problem.. After a few seconds scanning, the scan stops.. and I don't know why... Can you help-me? function HexToInt(s : string) : Int64; begin if (s <> '') and (s[1] <> '$') then result := strToInt64('$' + s ) else result := strToInt64(s); end;procedure FirstScan(valor: string); var dwEndAddr : dword; i:dword; mbi : TMemoryBasicInformation; valor:string; begin while (VirtualQuery(Pointer(DWORD(mbi.BaseAddress) + MBI.RegionSize), MBI, SizeOf(MEMORY_BASIC_INFORMATION))=SizeOf(TMemoryBasicInformation)) do begin if (MBI.State = MEM_COMMIT) a…
-
Hi guys, I'm trying to find out how to make this (title question) possible. Normally I'm using Windows Explorer as file manager and the WE does handle the drag & drop function so that all other app windows which are set in from on the WE area keep in front when you do press the left mouse down on any selected file/s so that you can move that file in any other app window if you want. Just a normal drag & drop from WE into any other app Window like Notepad for example. I would like to know how to code this. So what I have to do or possibly hook to prevent setting the focus on my own app when I press left mouse etc you know. Since a while I'm using another …
-
-
- 7 replies
- 2.4k views
- 1 follower
-
-
Looking for low level x86 dissasembler code c++ I want it at low level with knowing everything is going on, altrought information from libraries may bring usefull information. In the end I want to grab all operands, but that's final step.
-
-
- 12 replies
- 3.8k views
- 2 followers
-
-
error C2133: 'cmddata' : unknown size in h file: extern const t_cmddata cmddata[]; typedef unsigned long ulong; // Unsigned long typedef struct t_cmddata { ulong mask; // Mask for first 4 bytes of the command ulong code; // Compare masked bytes with this char len; // Length of the main command code char bits; // Special bits within the command char arg1,arg2,arg3; // Types of possible arguments char type; // C_xxx + additional information char *name; …
-
- 3 replies
- 2.4k views
- 1 follower
-