Programming and Coding
Programming and coding tips, help and solutions...
1,877 topics in this forum
-
[C++] CreateRemoteThread & WriteProcessMemory
by deepzero- 3 replies
- 6.7k views
Hi, I wanted to inject some code into another process & execute it as a separate thread. This is my code so far: DWORD PID = 0; //PID goes here! HANDLE hProcess = 0; hProcess = ::OpenProcess( PROCESS_CREATE_THREAD | PROCESS_QUERY_INFORMATION | PROCESS_VM_OPERATION | PROCESS_VM_WRITE | PROCESS_VM_READ, FALSE, PID); cout << hProcess;void *p = 0; const DWORD MAXINJECTSIZE = 4096; p = VirtualAllocEx( hProcess, 0, MAXINJECTSIZE, MEM_COMMIT, PAGE_EXECUTE_READWRITE );DWORD bem = 90909090; if ( ! WriteProcessMemory(hProcess, p, &bem, MAXINJECTSIZE, 0 ) ) { cout << "WPM() failed, gle = " << GetLastError(); return 0; }::CreateRe…
-
Adding X2m Files Into A Delphi Project?
by .::God::.- 2 replies
- 4.2k views
Can anyone help me with this by giving me example source? Thanks.
-
- 0 replies
- 2.5k views
http://delphi.icm.ed...wl/midxd60f.htm In this link more then 400 delphi library components. Some of these components might be useful for some people.
-
Printing int in assembly
by dreambig2212- 3 replies
- 9.4k views
Hi, I am new to assembly and want to know how to print integers in assembly on stdout. As printing string is straight forward. But i am not able to find how to put integers on stdout. I am using as and ld in linux to compile my program and run. I am not using HLA or MASM etc. Thanks.
-
Copying instructions?
by high6- 13 replies
- 3.8k views
I want to make my own detours class. What reference should I use for the instructions and their sizes? Also is there anything more to it then just calculating their sizes and figuring out how much you need to copy?
-
Module32First and Module32Next not working under Windows 7
by Guest tehgame- 5 replies
- 12.4k views
Hello! I tried to list modules of foreign processes with and without admin rights under Windows 7 Pro 64bit by using APIs Module32First, Module32Next and CreateToolhelp32Snapshot. It only works on my own process and like 10% of other the ones like Firefox. For the rest the Module32* APIs return FALSE. Is this associated with the Windows 7 "protected processes" security model where even administrator can't use a debugger on every process? While it makes injection to even notepad.exe impossible, is there a way around this besides not using Windows 7? I could not find a new tutorial on DLL-Injection in Windows 7.
-
ECX in C++ app is std::string?
by high6- 6 replies
- 4.5k views
Sorry for the bad title . Anyways... How would this look in C++? PUSH 2 ; Constant PUSH ESI ; CWorld LEA ECX, [ESP+0xE4] ; std::string CALL 1521ED60 ; AddString What I don't get is why ECX is being set to std::string. It is used inside the function. I don't think it is a fast call. But I have no idea what it is. It is like the first push and ecx are backwards 0,o...
-
How to get the ACL number of a registry key
by alaphate- 0 replies
- 2.7k views
I'm using regini to set a registry key's permission. one parameter is called ACL(Access Control List) number. Microsoft says people can use regdmp to retrieve the ACL number of a registry key. I tried, however, no ACL number was displayed. I found regdmp cannot show permissions of registry keys. Refer to: />http://support.microsoft.com/kb/264584 Any buddy knows any tools to retrieve the ACL number of a registry key? Thanks.
-
Listing and preventing file access under XP/Vista/W7
by bendeguzz- 2 replies
- 4.6k views
Hi! I would like to write an application which shows all file accesses in system. With the help of madshi component I was easily able to list the file accesses, but unfortunately I can't find anything on the internet (maybe I'm using the wrong keywords :S) to prevent access from certain files. What should I look after to do that? Thanks Oh I almost forgot it I'm using delphi, but almost anything helps... except asm
-
Disassembling MFC with OllyDbg
by sm0rh- 0 replies
- 4.5k views
I'm writing a basic CrackMe with Visual C++ 2008, MFC. And I want to create a solution too, but when I load my application to OllyDbg, there is no any symbols loaded. MFC version is 9. I decided to try another MFC version, when I load a MFC 7 application OllyDbg load symbols. If you'll say load pdb or something, please show me another way. Thanks in advance.
-
how write assembly code by ollydbg
by alim2201- 4 replies
- 4.8k views
how write assembly code by ollydbg compile and debug it thanks
-
Self Extracting File
by starzboy- 6 replies
- 6.1k views
Hi, guys i am working on a self extracting project and i need some ideas. What i want to do: I have 2 files, File1 and file2. File1 will open file2 and add some data into file2. And when file2 is run, it will simply dump the data. What i need to know is that the size od data to be added is not specific, so what will be a better option: a. Add the data as overlay b. Add the data as a resource Please help. *If you have an example in asm, your most welcome. Thankyou starzboy
-
Google Code Jam
by Hyperlisk- 0 replies
- 19.3k views
Just thought I'd give a heads-up to people that don't know. Today is Google's programming competition, Google Code Jam. If you're in to programming, join in! It shall be fun~!
-
NCRYPTX
by JMC31337- 2 replies
- 5k views
...
-
Keygen Graphics
by Guest Tundra- 21 replies
- 20k views
I've found a nice-looking keygen background bmp, with name/serial fields included on it. The problem is, when I add a text field in with WinASM's resource editor, the text field is white and covers up the background bmp. I've gotten rid of the borders, but I want the text field to be transparent. How would I do this? Also, is it possible to change the font/size of a text field? Thanks for the help.
-
inject code
by xsp!d3r- 5 replies
- 6.9k views
hi all does anyone know how to inject a code into pe using asm?! and thank's
-
Simulating USB hardware existance
by NewBHack- 7 replies
- 5.5k views
Can somebody please show me the method on how to make Windows "think" that a new hardware has been inserted into the usb slot - i mean simulate existance of some hardware. thnx.
-
ufmod and c#
by akusei- 5 replies
- 6.3k views
I'm trying to get ufmod to work with c#. I've followed their example and it works perfect! The problem is that if I add any images or icons to my c# app and compile those resources into the it with the build script then the application crashes every time. I think it might be because the final link with the .res file which contains the .xm overwrites the previous images resources... maybe? Anyway, I'm lost and can't think of anything else to do. Does anyone have any experience with this? Here is what I'm doing: 1. Compile my .net resources with "resgen /compile MainForm.resx" which creates MainForm.resources 2. Run build.bat MainForm.resources contains the .net app icon an…
-
Get Process List without using any APIs
by Kabamaru- 5 replies
- 5.9k views
Hi Do you have any code for retrieving the list of running processes without using any API from Windows? Thank you for your help.
-
MagicV2mEngine.lib wight out LIBC.lib
by Accede- 10 replies
- 4.2k views
Hi can some one make theMagicV2mEngine.lib how dont need LIBC.lib,i can not found the LIBC.lib. I thing this dll is needed for make the lib file. her is the downloadlink for the dll.dll
-
ufmod error
by Accede- 0 replies
- 2.9k views
I us ufmod code on asm(masm) it dont work for me i see two errors. As ide i us Winasm. her the errors Assembling: C:\WinAsm\projects\me2\base.asm C:\masm32\include\cryptohash.inc(48) : error A2008:syntax error : proto //if i copy the lib from the archiv to the masm32 lib folder is ar error on line 63 C:\WinAsm\projects\me2\base.asm(78) : error A2070:invalid instruction operands Make finished. 2 error(s) occured the frist error is on this line. 78 : invoke uFMOD_PlaySong, addr table, xmSize, XM_MEMORY the second error is from the file on the downloadlink. inc I us ml.exe version 8.
-
Iczelions Win32 Assembly Tutorials...
by Teddy Rogers- 1 follower
- 15 replies
- 14.2k views
Download Link: http://www.tuts4you.com/download.php?view.1200Ted.
-
Help with Implementing ECC in Delphi
by KKR_WE_RULE- 6 replies
- 4.9k views
Well guys, I went back to school as I went through the certicom ecc theories. Now, I wanna implement ECC, & I am having a lil problem. I am using delphi, & FGInt. I am using ECB as the parameter generator. But the Point G (base point of the curve), is represented as X & Y coordinate. I But in the ECDSA unit available, the G is a function parameter of TECPoint type. I saw in Crypto++ there is a function to combine the X & Y coordinates into a Point. Is there any delphi eqivalent of that ? Would be glad if any 1 points me 2 the right direction
-
tuneRip
by Tenshi- 4 replies
- 17.3k views
hi there! ive done an chiptune ripper which can detect and grab chiptunes from resource! maybe i will do another version wich will also extract chiptunes from packed files. ive included the sources(masm) so feel free to use! tuneRip.zip
-
Loggind addresses without debugger
by GoJonnyGo- 3 replies
- 5.4k views
Hi! I am thinking off a tool, which can log all addresses that are executed but not by beeing a debugger. Is this possible? If yes, how can i implement this? I thought about hook EP and then set again hook at every line but that would never work I think because of timing. The reason why this would be useful, is to counterpart custom anti debug. I think in the future will be more and more well hidden custom anti debug, which shows its results about 1000 lines later and you cant find them. So if this would work we could see the flow of the program without using a debugger or olly at least and see at which line the flow of olly and the flow of this program would be differen…