Programming and Coding
Programming and coding tips, help and solutions...
1,882 topics in this forum
-
memory breakpoints like olly
by snoopy- 0 replies
- 18.9k views
Hey Guys I am having a question about memory breakpoints, like Olly implements. The main issue is that doing it myself with a dll I am injecting into the process, the concept is extremely slow. While breakpointing with Olly it's just as fast as any other breakpoints. I am having a spot inside the program I want to set the breakpoint on. I copied this spot into a variable called: [HardwareBreakpointAddress] I am hooking KiUserExceptionDispatcher to catch the exceptions. I know I could also install a Vectored Exception Handler but this seems to suit just fine aswell. The code is WORKING, it's just I am wondering why it is so terrible slow. Is it because of the wa…
-
Ways to use .Net Reflector #2.1: Creating your own add-ins
by CodeExplorer- 1 reply
- 3.9k views
Ways to use .Net Reflector #2.1: Creating your own add-ins: Link: http://jasonhaley.com/blog/post/2007/08/25/Ways-to-use-Net-Reflector-21-Creating-your-own-add-ins.aspx and http://jasonhaley.com/blog/post/2008/11/05/Extending-Reflector-Menus-ContextMenus-and-Toolbars.aspx
-
[.NET][Cecil] ILProcessor
by XenocodeRCE- 1 reply
- 5.9k views
IL code i'm trying to inject n assembly : IL_0000: nop IL_0001: ldc.i4.0 IL_0002: stloc.0 IL_0003: ldc.i4.5 IL_0004: stloc.1 IL_0005: br IL_00b1 IL_000a: ldc.i4.s 63 IL_000c: call string [Microsoft.VisualBasic]Microsoft.VisualBasic.CompilerServices.Conversions::ToString(int32) IL_0011: call int64 [mscorlib]System.Int64::Parse(string) IL_0016: conv.ovf.u8 IL_0017: stloc.s 4 IL_0019: ldc.i8 -9223372036854775808 IL_0022: stloc.3 IL_0023: ldc.i4.1 IL_0024: stloc.s 5 IL_0026: nop IL_0027: ldc.i4.s 42 IL_0029: call string [Microsoft.VisualBasic]Microsoft.VisualBasic.CompilerServices.Conversions::ToString(int32) IL_002e: …
-
de-allocate memory necessary?
by FastLife- 6 replies
- 5.5k views
i allocated memory using VirtualAlloc. this i have done 9 times. now i don't need those memory anymore so do i have to free/remove them to improve the application's cpu? i mean, i know when the application is gonna terminate, all memory will be freed, but while the application is running, and i don't need the allocated memory anymore, is it better to remove/free that memory to have a lower pcu usage or something?
-
.NET support to a packer
by Lostin- 1 follower
- 8 replies
- 10k views
Hi I am wondering how to add .NET support to a native packer? because i tried using RLPack but the packed file failed to run with an error Unable to find a version of the runtime to run this application Is there something missed to be fixed before running the file like the Metadata or something.
-
HELP
by h4t- 4 replies
- 11.6k views
Help needed! I want to add my chiptune background music code from this project "projects.zip\1\" To this project here "projects.zip\2\" But i get alot of errors when i try it. Please can sombody help me with that projects.zip
-
Signature Scanner for Delphi by ArxLex
by arxlex- 1 reply
- 5.7k views
Signature scanner written by ArxLex specifically for site members Cheaton.ru. Material purely for informational purposes. As a basis and work were taken functions from C++. Example is written for beginners and amateurs of WINAPI as a console application, for more comfort and understand the code. Enjoy! program signaturescanner; {$APPTYPE CONSOLE} uses Windows, SysUtils, TlHelp32; var m_pID: integer; m_hProc: THandle; module: TModuleEntry32; m_Sign: integer; const procName = 'D3D9Test.exe'; procedure GetPID; var snapshot: THandle; pInfo: PROCESSENTRY32; begin snapshot := CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0); pInfo.dwSize := si…
-
- 9 replies
- 9.1k views
Help needed! I want to be able to push one button only, and when I do it the text in the two boxes will be different. I want to just push the bottun and then the different texts are visible, but without me needing to write anything in the 'name' box, then push 'keygen' and then the serial is visible. ONLY me pushing 'keygen' and then both name and serial will appear. I can only get the same text in both 'name' and 'serial' boxes to appear when pressing 'keygen' button. I using "WinAsm Studio" base.zip
-
close window
by FastLife- 9 replies
- 9.4k views
i want to inject some code into a running process. This process have a gui and uses a window. (I know the handle of this window) so i want to close this window, but let the process running. i used the API DestroyWindow but get a 0x5 error ( acces denied ), because i dont know the thread which created the window. ( GetCurrentThreadId is not the answer). so my question is do you know a way how to close/destroy a window knowing its handle, but NOT closing the process, just the window of it?
-
get handle from window
by FastLife- 5 replies
- 6.3k views
hello i injected a new thread into a running process, the thread displays a MessageBox. This is working fine. However i want to get the handle (hwnd) of the running window to pass them as parameter in the MessageBox api, like: MessageBox(hWnd, str1,str1,1); but i can't retrieve the right handle of the window. i already tried api's such as Get(ForeGround)Window etc. Any ideas how to get the handle of the running window?
-
NetBox - the secret beyond!
by CodeExplorer- 1 follower
- 4 replies
- 13k views
1. First build the program! The most important code is this: Process process = new Process(); process.StartInfo.FileName = FileName; process.StartInfo.WorkingDirectory = Path.GetDirectoryName(FileName); process.StartInfo.UseShellExecute = true; processes.Add(process); It is very important to set UseShellExecute to true else won't work! And finaly the code which start the process: public List<Process> processes; void RunSelectedToolStripMenuItemClick(object sender, EventArgs e) { if (assemblieslist.Items.Count>0&&assemblieslist.SelectedIndices.Count!=0) { if (File.Exist…
-
Batch file programming
by zingle- 2 replies
- 8.5k views
Hello, I have this small batch file to make computer shutdown or reboot after "xx" seconds, to change the value "xx " the user should edit the file each time, i do not know how to make the program ask the user to chose the value of "xx" for example a dialog : "Please enter the value "xx". @echo off Title Scheduled ShutdownPC,RestartPc or Abort the two previous actions. cls echo. echo Please select an action : echo *********************** echo. echo 1) Shutdown computer in 01 minutes echo 2) Restart computer in 01 minutes echo 3) Abort all actions echo 4) exit echo. set /p web=Type option : if "%web%"=="1" shutdown -s -t 60 if "%web%"=="2" shutdown -r…
-
Keygen Template in C
by Cyclops- 18 replies
- 9.5k views
Hi all! Just thought to share my keygen template coded in C. Enjoy! src+bin: http://cyclops.ueuo.com/sources/Template.rar
-
ollydbg 2.01 plugin template
by njkermk- 0 replies
- 4.8k views
I've written a simple template of ollydbg2 plugin for latest flatassembler compiler. ollydbg2_plugin_template.7z
-
Debug Registers
by snoopy- 10 replies
- 12.8k views
Hey guys, I am reading up on ARteam securom information. What I am wondering is the following. Deroko in his post is posting a method to set hardware breakpoints to work his way around with the code splicing. What I am mis understanding is the following code from the goodies dir there is vmtrace.asm. In here he sets Dr0 with the following info: mov [ecx.context_dr0], eax //eax reg hold the address to breakpoint mov [ecx.context_dr7], 10101h //should be a breakpoint on write What I am missing here is how did he calculate 10101h. According to the intel manual, there is 31 bits: 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4…
-
Magic_h2001 v2m player source
by Freefall63- 4 replies
- 6.8k views
Hey guys, I just wanted to ask if somebody has the delphi source of magicĀ“s v2 lib. Should be easier to translate .NET I think. Translation help is ofc appreciated, too.
-
VB .NET Low Level winmm Audio playback
by Freefall63- 8 replies
- 8.4k views
Hello guys, I tried to work the low level winmm.dll functionality out in VB .NET, but encountered several problems. My goal is to play a wave file from stream using WaveOutOpen, WaveOutPrepareHeader und WaveOutWrite, using it only once to play the whole file: Imports System.GlobalizationImports System.Runtime.InteropServicesImports System.TextImports System.IOImports System.ThreadingPublic Class Form1 <StructLayout(LayoutKind.Sequential)> _ Private Structure WAVEHDR Public lpData As Integer Public dwBufferLength As Integer Public dwBytesRecorded As Integer Public dwUser As Integer Public dwFlags As Integer Public d…
-
Yasp - Web-based Assembler/Emulator to Learn Assembly...
by Teddy Rogers- 1 reply
- 7.5k views
yasp-Assembler Title pretty much sums it up... http://demo.yasp.me/ Ted.
-
PureBasic Keygen Template
by tim619- 8 replies
- 15.2k views
File Name: PureBasic Keygen Template File Submitter: tim619 File Submitted: 21 Mar 2014 File Category: Source Code Today I release a Keygen which I programmed a few days ago. It is written in PureBasic (v5.0) and can be compiled using x86 or x64 Compiler. The features of this Keygen Template are: -The language is very easy to understand and the code is not too much. -transparency -chiptune support -fading in and out of transparency and music -window always on top -Key copied to clipboard autom. -the "core" should also compile on MAC and Unix Version. have fun Click here to download this file
-
OllyDBG 2.01 plugin SDK bug ?!
by cypher- 0 replies
- 6.3k views
when using Ollys builtin options feature ODBG2_Pluginoptions with static WCHAR opt_ollyTitle[TEXTLEN] = {}; static t_control scyllahideoptions[] = ..... { CA_EDIT, OPT_16, 200, 30, 40, 10, NULL, opt_ollyTitle, L"Olly title" }, ... the SDK doc says that the opt_ollyTitle variable will be updated with the modifications you did on WM_CLOSE. however this doesnt work for some reason ! For CA_CHECK (checkboxes) it works... Am I doing sth wrong ? As a hacky workaround I now do extc t_control* ODBG2_Pluginoptions(UINT msg,WPARAM wp,LPARAM lp) { if(msg==WM_COMMAND) { if(LOWORD(wp)==OPT_16) { //yes this …
-
ollydbg 2.0 plugin
by walter1945- 2 replies
- 6.9k views
Hi all, i'm writing a small plugin for olly but i can't figure out how tell olly (from plugin) to resume process,do you know what's the right way to do that from plugin? thanks.
-
[Help] Inject x64 DLL into x64 PE File
by Gladiator- 15 replies
- 9.3k views
HelloI have problem with injection 64 bit dll into 64 bit exe file , in case i don't know what i should to do ? any one can help me with information , sources or some thing that solve my problemThanks
-
Generating a MethodDef signature
by ubbelol- 0 replies
- 9.8k views
Nevermind.
-
- 3 replies
- 4k views
Hello, I have coded a software, and its working fine on latin and english operative systems, but it does not work godd on Chinese Windoxs XPI have a module, for strings, conversion etc etc....Code is: st1 = HexToAsc("100404084A011004C8DC")Winsock2.SendData st1in latin server / client app, I receive very same string I sent.... I use winsock.GetData but on chinese windows xp it does not I receive this: 100404084A0110040000 (C8DC is now 0000)what could the problem be?? unicode related?? thanks
-
Firework LIB+DLL
by SmilingWolf- 1 reply
- 8.6k views
This is an implementation of the Fireworks effect by ronybc as a library with a little enhancement: you can now run multiple fireworks instances! Preview (3 instances): Documentation, sources, examples, compiled LIB and DLL are included. Hope you will like this Now go and set your CPU on fire! Firework.7z