Programming and Coding
Programming and coding tips, help and solutions...
1,877 topics in this forum
-
HVLPlay : A AHX/HVL playback library in C
by mudlord- 13 replies
- 4.5k views
Hello, Here's some stuff I have been mucking around with since WinAHX has a tendency to play some AHX tunes completely wrong. This lib is based on Xeron/IRIS's official code, straight from the official replayer and Winamp plugin sources. CPU usage of the library is very small too (around 0-4% on a E2200 dual core). The lib is public domain and is built with MSVC6. Included is the source code as well as a usage example. hvlplay.zip
-
Interview with a former adware author
by glaufan- 1 reply
- 3k views
Interesting interview http://philosecurity.org/2009/01/12/interv...n-adware-author
-
- 11 replies
- 7.2k views
hi This post is in literate Haskell which means the entire post can be posted into a .lhs file and compiled by GHC. Haskell is a lazy pure functional programming language named after the logician Haskell Curry. http://en.wikipedia.org/wiki/Haskell_(programming_language) http://haskell.org The following code generates a random cd key for an old game, Battlefield 1942. I derived the keygen method with OllyDBG on a random keygen I found on astalavista. Thanks NaG-Scrim/Fighting For Fun - it had good music ;D but your generated code is weird, either msvc6 is not so smart at optimization or your src code is strange, never mind I still made sense of the larger picture. >…
-
Copying A Fille U/ Dynamic Array
by 0xFF- 0 replies
- 2.5k views
a very simple procedure (add to private declaration unless other units need access to it) that'll read and write 1 byte each time using "for" loop to the file size, just look and read comments. This supports a progress bar for user interface ;] procedure TMainForm.Copy_File(Source, Dest: PChar; ProgressBar: TProgressBar); var MyArray: Array Of Byte; //Dynamic Array Of Byte hRead, hWrite: THandle; //Handles returned by CreateFile, usage for Reading file size and writing the new file lpNumberOfBytesWritten: Cardinal; //Store how many bytes have been written lpNumberOfBytesReaded: Cardinal; //Store how many bytes have been readed nFileSize: Integer; //Stores the size of t…
-
Dll injection + message loop
by Killboy- 5 replies
- 5.6k views
Hi I'm injecting a Dll into a process, the Dll then creates an empty window (creating a new class + Createwindow). In my main process, I find the window with FindWindow(ClassName, NULL) and send WM_COPYDATA to it with the stuff it needs to handle. The problem is that I need a message loop for my window to receive messages sent to it. If I create the window and start the loop in DllMain (on DLL_PROCESS_ATTACH), I never return, thus I can't check if the Dll injection worked. (I could check if the window existed, but I dont really like that) So I created a thread from DllMain, in which I create the window and loop the messages. This works, but it feels weird. I wanted…
-
[C++ Release] PatchLib
by atom0s- 19 replies
- 5.8k views
No longer sharing this project on this site.
-
Hook KeInsertQueueApc
by dayed- 3 replies
- 6.5k views
//By Dayed #include <ntddk.h> #include <ntifs.h> #include <windef.h> #include <Dayed.h> #include <LDasm.h> #define PS_CLEAR_BITS(Flags, Flag) \ RtlInterlockedClearBitsDiscardReturn (Flags, Flag) #define PS_CROSS_THREAD_FLAGS_TERMINATED 0x00000001UL //================================================================================ ================ BYTE g_HookCode[5] = { 0xe9, 0, 0, 0, 0 }; BYTE g_OrigCode[5] = { 0 }; BYTE jmp_orig_code[7] = { 0xEA, 0, 0, 0, 0, 0x08, 0x00 }; //------------------------------------------------------------ ULONG g_ProcessNameOffset = 0; ULONG g_ThreadFlagsOffset=0; ULONG OldMask; …
-
Need C# Patch And Keygen Source For Studying
by r00t_H@ck3r- 9 replies
- 6.1k views
Need C# Patch And Keygen Source For Studying Purpose Thanks.
-
Resolve method handle with cecil?
by high6- 1 reply
- 2.7k views
How do you do something like ModuleHandle.ResolveMethodHandle(token); in cecil? Assembly.MainModule.MemberReferences doesn't contain all the references. Only way I can think is by loading each referenced assembly and check it. Would be very very slow though... (also locating the assemblies...)
-
SendMessage in a debugger in another thread
by Killboy- 2 replies
- 4.6k views
Hi, I was trying to inject a dll into a process and use WM_COPYDATA for sending the data needed for the dll to work. The problem is that I'm in the middle of the debug loop, ie the remote thread on LoadLibrary doesn't return until I loop through WaitForDebugEvent/ContinueDebugEvent. So I called it in another thread, and found something weird happening: When I call SendMessage (logging something to a listbox) in the thread, it doesn't return and seems to hang up. At the same time, WaitForDebugEvent hangs up as well, and doesn't return (it's set to INFINITE). I found this at MSDN but I'm probably too retarded to get it... The thread sending the messages waits for SendMessa…
-
VisualAssistX Patch
by high6- 3 replies
- 4.6k views
Posted this on another forum and thought I should post it here too. This is how I made a .dll loader for VisualAssistX.
-
Yoda's Protector 1.03.3 source
by 0ron- 2 replies
- 3.8k views
Does anyone have the source for Yoda's Protector 1.03.3 source? I found version 1.02. Anyone have it?
-
keep the window on top
by Bleed- 4 replies
- 3.4k views
Hi, I'm coding on some win32 c++ app. What API should I use to keep the window on top of other windows regardless if it is selected or not? I'm just guessing it is an API, but I'm not sure if it is one.
-
[HELP!] Keygen About Dialog
by DeRoX- 1 reply
- 3.2k views
hey community, i need some help in ASM. I use a keygen template from UFO-Pu55y. I modified it a little bit for a about button to show a new window with a text in a bitmap. my problem is to get the cursor animation same like the main window. If the about dialog pops up the mouse cursor is changing to normal. i'm sitting here for 4 hours and i don't get it to work. About proc hWnd:DWORD,uMsg:DWORD,wParam:DWORD,lParam:DWORDlocal ps:PAINTSTRUCT.if uMsg == WM_INITDIALOG invoke SetWindowPos,hWnd,HWND_TOPMOST,0,0,0,0,SWP_NOMOVE + SWP_NOSIZE invoke LoadPng,1501,addr sizeAbout mov hAboutBg,eax invoke CreatePatternBrush,hAboutBg mov hAboutBrush,eax invoke CreateFontIndir…
-
Using WIN32 APIs
by Nieylana- 0 replies
- 3.5k views
Last night I decided to try and see if it was possible to create a messagebox in VB6 without using the built in MsgBox function. I chose to do this because the MsgBox function actually calls rtcMessageBox() located in the MSVBVM DLL. I wanted my application to instead of using this function, use the MessageBox function located in USER32.DLL. The Link below takes you to my source code on how i did it. It was done by executing some pre-compiled ASM that is executed from VB. In order to see what the ASM is doing, compile the program and debug it using Olly. Then place a BP on CallWindowProcA. Run the application, when it breaks... right click on ESP+4 (PrevProc) and se…
-
[Help] Process Dumper - Delphi
by steve10120- 1 follower
- 16 replies
- 7.2k views
Hi, I'm trying to make a dumper, but run into some problems. program Delphi;uses Windows, SysUtils;{$R *.res}type TByteArray = array of Byte;var hMod: THandle; hOpen: THandle; hFile: THandle; IDH: TImageDosHeader; INH: TImageNtHeaders; ISH: TImageSectionHeader; dRead: DWORD; dWritten: DWORD; dSize: DWORD; bBuff: TByteArray; i: integer; begin hMod := GetModuleHandle(nil); hOpen := GetCurrentProcess; if ReadProcessMemory(hOpen, Ptr(hMod), @IDH, SizeOf(IDH), dRead) then begin hFile := CreateFile(PChar('dumped.exe'), GENERIC_WRITE, FILE_SHARE_WRITE, nil, CREATE_ALWAYS, 0, 0); if hFile <> INVALID_HANDLE_VALUE then begin SetLength(bBuff, SizeOf(I…
-
UPX Scrambler
by tagor- 0 replies
- 6.5k views
Please give some source code with UPX Scrambler????? I try to make UPX Scrambler with Visual Basic 6??? Please?????
-
Question..
by HEROiC- 6 replies
- 9.5k views
Hello, Im making a program that will load an setup file for example: I fire up my delphi project and i got a installer.exe now how do i execute it (if i press on Button in Delphi)
-
Delphi Help!
by HEROiC- 0 replies
- 2.8k views
Hello, im creating a program in delphi, its a simpel database program to store Serials in it (personal use). Now what i need is: i got a TreeView now if i click on the SubItem wich is 3Q Software i want to see all my available serials i got, but i dunno how, can i use a edit1 box or somting else...?
-
Coding a small anti cheat .dll help
by ShadowRayz- 5 replies
- 3.4k views
I wanna code a not complex anti-cheat .dll. Features: -Checksum of critical files. (No idea how to do yet, need to learn) -Search for programs with a specific title that the cheat's have. -Search for specific processes, like packet editors. -Loop every few sec the three above features. I wanna make it a .dll and hook it into the main executable, so it will be harder to beat and will take a reverser to code out the hook to the .dll from the main executable, of course i could just write a .exe that will be launched with the main executable but what will stop anyone from Opening Task-Mgr and killing it?... any suggestions in the matter? thx
-
Winamp's scrolling song title
by hakand- 2 replies
- 3k views
Hello, I think you all know winamp's scrolling song title. It scrolls horizontally(to left and to right). Could anyone code a sample program and share it with us? Thanks.
-
- 15 replies
- 6.2k views
I want to send WM_COPYDATA messages to my dll injected in a exe. Sorta like how WPE Pro works. I currently am trying this. GMAptr GMATrampoline = 0; GMAptr GMATarget = 0; BOOL __stdcall GetMessageADetour(LPMSG lpMsg,HWND hWnd,UINT wMsgFilterMin,UINT wMsgFilterMax) { BOOL ret = GMATrampoline(lpMsg,hWnd,wMsgFilterMin,wMsgFilterMax); if (lpMsg->message == WM_COPYDATA) { if (lpMsg->wParam == MessageNum) { COPYDATASTRUCT * data = (COPYDATASTRUCT*)lpMsg->lParam; ParseCommand(data); lpMsg->message = 0; } } return ret; }BOOL APIENTRY DllMain(HINSTANCE hModule, DWORD Reason, LPVOID lpReserved) { HMODULE mod; switch(Reason) { case DLL_PROCESS_…
-
keyfileme source
by Goldocrack- 8 replies
- 3.5k views
Hello all, Could someone have a source for a keyfile in asm? thanks for answer.
-
How To Use Custom Fonts 1 2
by TheCodeCracker- 25 replies
- 11.8k views
Hi Guys...i am learnning masm...and have managed to learn howto skin windows, buttons as well as some other controls. I have even managed to design some small keygen templates. but guys i need some help regarding using custom fonts both open type as well as True Types I'll be grateful for any help greetz, TCC/CiB
-
Window Minimizer V1.0 + Source code [ASM]
by zEaK47/AT4RE- 1 reply
- 5.4k views
السلام عليكم Hi guys ! this is my 1st asm program Window Minimizer V1.0 It's a simple program to control any window Plz test it Download links : Program : Source code :