Programming and Coding
Programming and coding tips, help and solutions...
1,899 topics in this forum
-
Well I came across an interesting article. http://www.codeproject.com/KB/dotnet/Debug...rk_Classes.aspx It is a bit old but with some modifications it works. I was reading about sequence points http://blogs.msdn.com/jmstall/archive/2004/10/03/237137.aspx. Is there any ways with ilasm to maximize sequence points? When debugging I stepped into Thread.Sleep() and got (from the il file I had created from that first link). .method public hidebysig static void Sleep(int32 millisecondsTimeout) cil managed { // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 IL_0001: call void System.Threading.Thread::SleepInternal(int32) IL_0006: ret } // end of method Thre…
-
Let's say I have a piece of code like this one: private void RecursePath(DirectoryInfo Root) { if (Root.Exists) { //System.Threading.Thread.Sleep(15000); FileInfo[] files = Root.GetFiles(); LastFile = ""; foreach (FileInfo fi in files) { try { LastFile = fi.FullName; FileStream f = File.Open(LastFile, FileMode.Open); f.Close(); //FileIO TestFile = new FileIO(LastFile, FileIO.FileIoMode.OpenExisting); } catch (Exception e) { PrintException(LastFile, e); } }Yeah, it's a bit ugly sorry. The point is that I'm having some troubles trying to understand why File.Open() throws PathTooLongException with paths shor…
-
Where can I download an ASM compiler(I know its not exactly a compiler but for lack of a better word...)?
-
Hi, buddies, I used webbrowser (IWebBrowser2) in my code, and I want to disable the navigation sound when I click a link. In case of changing system sound, I'd like to mute my application only. Just like some movie players, they can adjust their volume individully. Thank you for your help.
-
I am a beginner in c++ but i noticed that when i wrote a c++ dll and then loaded it into olly so i could check if everything worked, it would also display the source of what every operand does. It happens completely automatic however this time it does not, so how can i load my source code into olly? thanks
-
Sorry if the topic can be found somewhere in this forum, i used the search with several search words and couldn't find it.. if someone knows the URL to some page where i can get this open-source sidchip player (source codes) please post it here.. Thanks. edit: working on a intro where i want to play c64 sidchip tunes edit2: found it myself,here's the link for anyone interested about it: Stitchy SID
-
BOOLEAN __stdcall fake_KeInsertQueueApc(IN PKAPC Apc, IN PVOID SystemArgument1, IN PVOID SystemArgument2, IN KPRIORITY PriorityBoost) { PEPROCESS pTargetProcess; PUCHAR pTargetProcessName; ULONG XXThread; //------------------------------------------------------------------------------------------------------- pTargetProcess=IoThreadToProcess( (PETHREAD)Apc->Thread ); // pTargetProcessName=(PUCHAR)((ULONG)pTargetProcess+g_ProcessNameOffset); pTargetProcessName=PsGetProcessImageFileName(pTargetProcess); //-------------------------------------------------------------------------------------------------------// if ((strcmp(pTargetProcessName,"notep…
-
Well the provided .def file mismatches with the provided header. How so? Well the header defines every function normally but the definition file defines every function with a underscore in front of the name. So instead of redoing the header file. Can I regenerate the .def file without underscores? Edit: Even though msvc prepends _ to the name it can't find the external reference unless I prepend a _ myself.
-
Anyone have source for a Pe editor or dumper. Any lingo is fine.
-
hi all thanks for you time, i got trouble with about dialog. i use keygen template from ufo-pu55y and about dialog like star fall. but i think i need move it up. what i need to do. if need a bones.inc file for that about dialog, i think i can upload it on here for check it. thanks for your help. regards Note : I added asm file for this troube too... bones.rar IUG_Keygen_GIF_1.rar
-
Didn't see fit to put it in Reversing, its more of coding i think... Well, i try to load a .DLL and, to load one of it's processes...i wrote a test cpp code just to check that the proc name really does exist and it was added to the .DEF and all...everything's fine...it returns a handle to the DLL and the Process, as you can see here. but when i get to the GetProcAddress in olly with code i wrote in the cave, it fails and gives me LastErr = ERROR_MOD_NOT_FOUND. what have i done wrong? thanks.
-
While I was wondering around on the net a stumbled accross and interesting example, Corvu5 has showen this example in delphi {[===========================================] [?]uDllFromMem - Loading a DLL from Memory[?] [v] Version 1.0 [v] [c] Hamtaro aka CorVu5 [c] [@] hamtaro.6x.to OR corvu5.6x.to [@] [================Description================] [With this Code, you can load a DLL in your ] [application directly from Memory, the file ] [doesnt have to be present on your Harddrive] [===================Note====================] [ This example doesnt work with Bound ] [ Import Tables at this time ] [==================thx to===================] [ …
-
Okay, so I thought I knew how to do this, but apparently not... Here's the situation... I'm currently messing around with DLL injection, using Mine Sweeper as my target. I'm just trying to get my DLL code to be able to write in Mine Sweeper's executable memory. I thought that VirtualProtect() would help me there, but apparently not... Any suggestions? This is what I'm currently doing in my DLL code, just trying to do a 1-byte patch, lol: char* addr = (char*)0x00BA76A0; if(!VirtualProtect((LPVOID)addr,1,PAGE_EXECUTE_READWRITE,NULL)){ MessageBox(NULL,"Couldn't protect the memory...","Fail...",NULL); }EDIT: Nevermind, I'm stupid. I just used WriteProcessMemory()…
-
How can make Hook to rtcMsgBox...? i don't understand... similar to __vbaStrCmp... injert in msvbvm60.dll but can learn me about this? Thanks
-
Anyone have a tut on loading a PE file in C# or any source code?
-
How do you edit "malloc" to alloc shared memory? Am I going to have to dig the source out of the cpp file and redefine it?
-
This is the simple Icon Changer.... Build With VB 6.0 Hopefully useful and good for Download Link "Hanjian"
-
What is it called that "PATH" accesses? Also how do you add and remove a directory to it?
-
Hello, I try to make an exe protector like ASPackDIE and Themida. But i have a couple of questions: - How do they hide any string in the .exe ? - Can som1 give me some source codes ? Thnx in advance!
-
Hey everyone, I'm looking to learn how to write a c script I can run that will write the output of a program to another file. Do I just write a small c program that calls exec() and I can get the variables from there? I'm having a hard time searching for some kind of tutorial on what to do, can anyone enlighten me/point me in the right direction? EDIT: So I now understand how to write a shell script to get the output of a program, this was apparently to easy to think of to start with... I'm now looking into how to get specific variables from the output/specific lines, say an output line starts with foo:, can I just get the output of this line? EDIT II: I now underst…
-
I read that with the phoenix framework you can read/write MSIL, Can it? If so, does anyone have an example of using it?
-
Dear Bros I know little bit c# language, im lazy fellow if i did't understand some topics i do't study further , plz refer some text book that is meant newbies n practical oriented. meself i rate 1 out 5. ASP.Net books also. Thanx
-
I would like to start a side ways scroller in ASM. I was using VC++ 2005 which compiled some small tutorials quite well. Does anyone have any code to share, that work in VS 2005 (ASM), or other insights or tools? BTW, there was nothing in the book I was reading (ASM book) about graphics work. Meanwhile I guess I'd better reinstall VS 2005.
-
Hi, sometime ago, I got inspired by the Installer of the game: VietCong II. So, I have coded a custom installer for apps. Its not complete yet- some more features that I would add are; Region-able main window and buttons, masked about window, masked images as progressbar, support for installation using multiple CDs etc. The release I am posting here, is just a preview: its not fully functional yet. One more thing; I have coded a ShellTreeView like TShellTreeView of Delphi, but it might be buggy sometimes. Your suggestions, bug-reports and feedback are of immense importance. So plz let me know of your ideas and findings. Prof. DrAcULA }:-) pd_Installer.rar
-
as the title says, i am creating a new section and storing data in it, i would like to know the best way to store a large amount of data and read it back, perfer delphi, but any lang would be good.