Programming and Coding
Programming and coding tips, help and solutions...
1,877 topics in this forum
-
(c++) simpe output
by deepzero- 4 replies
- 11k views
hi, this program is supposed to output the pids & names of all running processes: PROCESSENTRY32 pe32; HANDLE procsnap = CreateToolhelp32Snapshot( TH32CS_SNAPPROCESS, 0 ); pe32.dwSize = sizeof(PROCESSENTRY32); Process32First(procsnap, &pe32); while(Process32Next(procsnap, &pe32)) { printf( "PID: %d [%s]\n", pe32.th32ProcessID, pe32.szExeFile); } However, only the first char of the process name is printed. The PROCESSENTRY32 structure can be found here: />http://msdn.microsoft.com/en-us/library/ms684839%28v=VS.85%29.aspx
-
[Delphi] Help in scanning bytes in process
by iLuvCoding92- 4 replies
- 12.5k views
Fixed. Please close thread. Thanks.
-
NASM - USB ERROR
by JMC31337- 0 replies
- 9k views
Windows XP with all the updates and yet this nasm code will work fine and end its routine just fine UNLESS a USB is plugged in.. in which case it crashes ntvdm ;nasm -f bin -o ebpp.com ebpp.asm push ebp mov ebp,esp push ds push es push ebx push esi push edi add ebp,0000FFFFh mov ah, 0x0e mov al, '!' int 0x10 mov ah,00 int 0x16 ;lss esp,[0000] pop edi pop esi pop ebx pop es pop ds lss esp,[0000] pop ebp retf if ya can tell me why it crashes that'd be cool and if ya try to debug it with TD it'll crash ntvdm too
-
test al,al ? isn t that weird
by uusser- 8 replies
- 29.5k views
hello everyone i have a litle question (i know that s stupid) but plz help me to understand it, well suppose that we have this code call func.00404521 test al,al jnz 00404747in which the call well change the al register so the question is why did we use test instruction on the al register(with itself) even if we know that the result will always be the same (example of that in reversing) so test al,al will always have the same result why did we used and thanks
-
[Delphi] Variables in statement
by iLuvCoding92- 1 reply
- 7k views
How to I create a variable in the statement(between the begin and end;) instead of before the statement? I don't want to waste a lot unused array. I want the program to be able to change the no. of array during runtime.
-
Win32 GUI apps in VS2008
by deepzero- 9 replies
- 11.1k views
Hi, This is something that`s been bugging me for a long time. I downloaded "Microsoft Visual C++ Express Edition", which works just fine for creating native console apps and .NET GUI apps. I cant figure out how to create a native GUI app, though. Choosing "Win32->Win32 project" is not a Win32 Form Project. Nor can i find how to create MFC projets... help?
-
coding disassembler with hde32 library
by abhijit mohanta- 1 reply
- 8.3k views
I am trying to code disassembler using hde32 libary following is the part of code ReadFile(hFile,&lpBuffer,16,&noOfBytes,NULL); void *code = (void*)pbFileEP;//pbFileEP is entry point unsigned int len = hde32_disasm(code,&hs) can anybody suggest how to proceed further.
-
MFMPlayer library troubles
by F0X- 9 replies
- 6.6k views
I'm having some troubles with the mfmplayer library, seems the .lib file is no good. Writing a keygen template in assembler, when I link I get this: And all I do is, include mfmplayer.inc (which works fine ) then I include the library with includelib mfmplayer.lib and I get those 100 errors... without the lib its alright so it is something with the .lib file. Anyone a clue what could be happening? In an other project I have it works fine so I do not get what's going on here. Note: This is even before I add some code, just linking the library gives problems.
-
Unpecompact 2 + Source Code... 1 2
by Teddy Rogers- 26 replies
- 33.6k views
UnPeCompact 2 version 1.0 + Source Code by Mad Mickael... Ted. Unpecomp2.zip
-
Win32 GUI - Message on Text Change
by Unbekannt1- 5 replies
- 7.3k views
I have tried searching and downloaded various sources but I did not find one where the "key" in a Keygen is generated when the input is changed. Most of them require you to press a button. Can anyone tell me the correct Message I could use to retrieve a text change in a textbox/edit control? I already tried WM_KEYDOWN etc but they did not work. Thanks in advance!
-
Mono.Cecil Patch
by high6- 2 replies
- 15.6k views
Open "Mono.Cecil.Cil/CodeWriter.cs" Find "ComputeMaxStack" Add this line above it "if (!CodeWriter.FixedMaxStack)" Add field to the CodeWriter class "public static bool FixedMaxStack = false;" CodeWriter.FixedMaxStack = true; Reason for this patch is because otherwise Cecil will attempt to recompute the MaxStacks. It does not work on obfuscated code. For example ldc_i4 0 ldc_i4 0 ldc_i4 0 ldc_i4 0 br lb2 lb1: ret lb2: ldc_i4 0 ldc_i4 0 ldc_i4 0 ldc_i4 0 br lb1Cecil will compute it as 5 when it really is 8. Causing a stack overflow (InvalidProgramException) when it runs.
-
[C++] Example_Loader
by Zer0Flag- 2 replies
- 10.6k views
Hello, I made a little loader for a reverseME from Lena151. In this case a Patch would be better but I made this for my own practice and I hope someone can use this souce to learn In the attachement you can finde the loader.exe and the reverseMe. #include <Windows.h>#define WIN32_LEAN_AND_MEAN #define VC_EXTRALEANint WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {/* CPU Disasm Address Hex dump Command Comments 0040107B EB 1D JMP SHORT reverseMe.0040109A 0040107D . 6A 00 PUSH 0 ; Type = MB_OK|MB_DEFBUTTON1|MB_APPLMO…
-
ASP.NET: ASM to IL compiler
by sirp- 1 reply
- 7.5k views
Lately we have been swamped with Bill Gate's new .NET vision. Once again even respectable people are crying out that C++ and assembler programmers will become extinct dinosaurs. My reaction to that is: "It's not fair!" Why are they always picking on assembler programmers? We don't do a lot of harm! Just because we like to have total freedom and like to be close to our hardware doesn't make us bad people. Go pick on someone else (like LISP programmers. I don't like them). Frankly, I was getting a little tired of this whole discussion, so I decided to do something about it - by bringing x86 assembler programming into the .NET age. Well, at least to allow ASP.NET pages to be…
-
- 0 replies
- 3.2k views
Wrote a little app .. it first gets all OpCode Types through System.Reflection.Emit and then puts em in a DataGrid have fun ! MSILOpcodes.rar
-
learning C# by example
by CodeExplorer- 2 replies
- 6.1k views
learning C# by example />http://www.fincher.org/tips/Languages/csharp.shtml />http://www.java2s.com/Code/CSharp/CatalogCSharp.htm />http://en.csharp-online.net/Manipulating_Strings_in_CSharp%E2%80%94Extracting_Part_of_the_String />http://csharpindepth.com/Downloads.aspx
-
- 0 replies
- 4.6k views
BlackMagic -- Managed Memory Manipulation This is a class library to make process, thread, and memory manipulation a bit easier from a managed application. It takes care of most of the Win32 imports and a lot of the methods and tricks for you, making memory reading, writing, injection, execution, and DLL injection a snap, among a bit else. It uses ManagedFasm for JIT assembly, as well. Take a look through the code, the included examble, and the documentation. Most everything should be pretty easy and intuitive to use. If you have any questions, comments, or suggestions, please do not hesitate to post. Attached are the source, the documetation, and the binary class library…
-
How To Set Condition BreakPoint ?
by Sh4DoVV- 1 reply
- 6.2k views
Hi Friends How To Set Condition BreakPoint Like OllyDBG With A Debug_Loader That Coded By ASM ? Thanks
-
- 5 replies
- 6.5k views
Hello people i am using miracl and i was trying to implement a *SECURE*`elliptic curve standard. So my parameters should be valid. The curve details is: : type binary over 2^n : curve name: SECT-193R2 curve parameters: a: 0163F35A5137C2CE3EA6ED8667190B0BC43ECD69977702709B b: 00C9BB9E8927D4D64C377E2AB2856A5B16E3EFB7F61D4316AE n: 010000000000000000000000015AAB561B005413CCD4EE99D5 q: 02000000000000000000000000000000000000000000008001 Base point: x: 00D9B67D192E0367C803F39E1A7E82CA14A651350AAE617E8F y: 01CE94335607C304AC29E7DEFBD9CA01F596F927224CDECF6C The problem resides in the public point (x,y) are not getting accepted by miracl as members of the current curve …
-
modify the instructions in ollydbg
by tianna0370- 6 replies
- 7.4k views
Hello: I am developing a plugin for Ollydbg now, but I am struggled to modify the assembly code by Ollydbg API. For example, in the main windows, there is an instruction "PUSH EAX". I'd like to change it to "PUSH EBX". I have tried two APIs: Assemble() and Writememory(), but didn't success. Am I right? Could anyone write a piece of sample code for me? thanks a lot in advance. Fan
-
Service is runnig
by ragdog- 2 replies
- 3k views
Hi Can i get the status of a service (if closed or if running) Thanks
-
Hooking to defeat hardware breakpoints
by FlySky- 3 replies
- 7.2k views
Hey guys, New to the forum and wondering the following. Been doing reversing for a while now and recently jumped into unpacking. What I am facing atm is that a lot of packers are detecting hardware breakpoints. I am currently on Windows 7 64 bit version and none of the Ollydbg plugins are working for me, so I started looking in writing my own hooks. Been programming / coding for a couple of years in assembly and I am hoping you guys could push me in the right direction about hooking to prevent hardware breakpoint detection. The hardware breakpoint detection is accessed and controlled from an exception handler. So I read up about it and found out an area to hook could be h…
-
Vista
by ranadharm- 3 replies
- 10.1k views
hi dear all, i m a programmer and i created a VB-6 application. the problem is that it works fine on windows xp but it cant works on windows Vista. how can i make my application vista compatible.
-
Problem with get the first bytes file offset
by black8x- 5 replies
- 4.1k views
Hello all ! I got problems with the delphi code how get the first bytes file offset in delphi. It's works correctly which normal files and some packed files. But it returns wrong offset value when a file packed by Dwing WinUpack, FSG...may be the file's pe sections problems. I have been searching this question for a long time and no luck. i found on cracklab.ru a topic like this, correct me if i am wrong, but it has not solve yet. http://www.cracklab.ru/f/index.php?action=vthread&forum=6&topic=5930&page=0 Here is delphi code i am using. Many thanks in advance and hope you could help me figure out the problems. My apologies for wasting your time. Best Regar…
-
Error compiling loader in TASM32
by mscofield- 13 replies
- 8.6k views
hello friends , i want to compile the deroko example non-intrusive loader create in tasm32 for execryptor target, but ever that i compile show me the same message this is a log Microsoft Windows XP [Versión 5.1.2600] © Copyright 1985-2001 Microsoft Corp. C:\Tasm32\loader>makeloader C:\Tasm32\loader>..\tasm32\tasm32 /ml /z /m9 /q loader Turbo Assembler Version 5.3 Copyright © 1988, 2000 Inprise Corporation Assembling file: loader.ASM Error messages: None Warning messages: None Passes: 2 C:\Tasm32\loader>..\tasm32\tlink32 -x /Tpe /aa /c loader,,,..\importlib\import32.lib Turbo Link Version 1.6.71.0 Copyright © 1993,1996 Borland Int…
-
Making NFO Wiever [PROBLEM]
by RoYaL- 2 replies
- 3.9k views
I'm trying to make my first NFO viewer (and i'm a noob with VB.NET) and i am at good point but i have a problem with the font for display correctly the ASCII Infact the font that i need is Terminal but the application can read only True Type font, what can i do now? Thanks