Programming and Coding
Programming and coding tips, help and solutions...
1,876 topics in this forum
-
[Help] about hookjit and ilcode compile
by DragonX- 1 reply
- 4.4k views
hook compileMethod like this HMODULE hJitMod = LoadLibrary(_T("mscorjit.dll")); if (!hJitMod) return; p_getJit = (ULONG_PTR *(__stdcall *)()) GetProcAddress(hJitMod, "getJit"); if (p_getJit) { JIT *pJit = (JIT *)*((ULONG_PTR *)p_getJit()); if (pJit) { DWORD OldProtect; VirtualProtect(pJit, sizeof(ULONG_PTR), PAGE_READWRITE, &OldProtect); compileMethod = pJit->compileMethod; pJit->compileMethod = &my_compileMethod; VirtualProtect(pJit, sizeof(ULONG_PTR), OldProtect, &OldProtect); bHooked = TRUE; } } .but how to hook the jitNativeCode and Compiler::compCompile method....
-
Memory Leak with VTK engine.
by Vic- 2 replies
- 5k views
Hi guys, I need your help. I'm using the VTK engine for my project but it's occurring memory leaking. It's occurring when go over InsertNextScalarValue function. Leak about 1~2MB when CSurfaceRenderer::Setup function finished. I haven't determined the detail cause and I'm looking for a method to fix it. Who has experience about it can help me? Thanks so much. std::auto_ptr<CSmoothSurfaceData> m_pSmoothSurfaceData; bool CSurfaceRenderer::Setup(const CCalcMatrix3D* pCalcMatrix) { int numRows = pCalcMatrix->GetRows(); int numCols = pCalcMatrix->GetCols(); int numPlanes = pCalcMatrix->GetNumPlanes(); const float* pPosX = pCalcMatrix…
-
Listbox control lags on XP
by LCF-AT- 2 replies
- 5k views
Hi guys, got a short question and looking for an answer.At the moment I code something in MASM and use a Listbox control to list informations etc.All fine so far but there is any issue with the scrolling of the Listbox so this just lags and scrolls slowly down / up!?!The question is "why?" and "how to fix this?".By the way,I have test the same file I made under Win7 VM and there it dosen't lag.Its strange so on my XP it lags.Hmmm.Is it maybe any bug in XP or any setting I need to change etc to prevent this lag stuff for Listboxes?Also its strange that the Listviews dosen't lag only Listboxes.Maybe you know the answer to help me to remove this lagging. Thank you
-
How do local kernel debuggers work?
by Hakman- 0 replies
- 3.7k views
Some kernel debuggers are capable of working on the same machine where target OS is being debugged. There is no need to set up a virtual machine or connect two computers via a cable in such case, everything is done locally. For instance, I've used Syser debugger and noticed that it adds message during Windows XP booting screen. During kernel debugging everything is unresponsive, except debugger window. And if you install it on Windows 7 it makes system unbootable. So it definitely has something to do with the way everything boots. How do they achieve that? Do they alter the way computer boots? Do they supply their own boot loader which loads their code, the…
-
Cant open JAR
by whoknows- 0 replies
- 5k views
-
Bot theory?
by hotpockets- 3 replies
- 8k views
I've been creating bots to purchase items for the last year or two now for my own personal use and it's been a hit or miss. I understand that it's competing with other programs/bots but I just want to get a general idea of YOUR idea of an efficient bot. I believe my bot is as efficient as it can get but I could be wrong so I wanted to reach out and get advice. Currently I am creating my bots using C# and a headless browser. Each product request/purchase is done in an individual async task until it returns successful. The internet speed is about 500 mbps. Basically, I hope to win by numbers. I've met other programmers who claim they didn't use many threads and …
-
Enigma VirtualBox
by _Nooper- 1 reply
- 6.5k views
Hello guys, I have a question. How Enigma Virtual Box does files virtualization? How he unpacks the files silently? After execution, I cant see the virtualized files but other programms can see it When I check if (PathFileExists("virtualized_file.dat")) {}
-
A pointer mess!
by 0xNOP- 4 replies
- 8.2k views
I'm using a library called PE Bliss it's a PE Manipulation library, pretty good, however, I'm having problems writing data to a PE section this is my section scope so far: ////////////////////ADD NEW SECTION////////////////////// section new_section; cout << "[+] Adding New Section ..." << endl; //Section Name (8 Chars MAX!) const char section_name[8] = ".hw"; char data[] = { 0x6A, 0x00, // push 0 0x68, 0x00, 0xA0, 0x02, 0xE1, // push "PeBliss" 0x68, 0x00, 0x00, 0x00, 0x00, // push "Built with PeBliss" 0x6A, 0x00, // push 0 0xE8, 0x00, 0x00, 0x00, 0x00, // call MessageBoxA 0xE9, 0x00, 0x00, 0x00, 0x00, // JMP to OEP 'B','u','i','l',…
-
- 1 reply
- 4.8k views
This is my code so far!!! I'm using a PE Library called "PE Bliss" its quite an extensive and nice and rich in features Library as far as I've seen, but given my novice skills with this, I've been running into a problem lately, I want to inject code to a file this are the steps I have gathered used to do that manually: - Get & Store OEP - Add Section - Replace old OEP to new Section OEP - Write MessageBoxA Structrue to new Section & Jump to old entry point - Rebuild PE - Save PE However in my code as shown below when I try to write such data, I can't, it writes the first few bytes into the section, and I still don't know why it's happenin…
-
Any api hook library ?
by White- 16 replies
- 6.3k views
Hi,guys Do you know any hook api library with its open source code ? I have tried mhook library,not quiet good with named 'RtlAllocateHeap' api. So I am wandering if you guys may know some better library that I can use it to hook that api. Currently I am re-coding a plugin,you may see it within Christmas Thanks in advance.
-
SnR Patch FASM example source
by addhaloka- 0 replies
- 6.8k views
Ported to FASM diablo2oo2's snr patchengine and little search&replace patch example. snr_example_scr_fasm.zip
-
Scrollers Collection For Keygens
by Jasi2169- 0 replies
- 4.7k views
Scrollers Collection For Keygens You can either use the DLL or the static libraries depending on your need. C#, Java and VB.NET developers can use the DLL to invoke the scrollers, C or C++ developers can use both as per need. Source code for the DLL loader and loading DLL's is attached, you can easily manage to get it working with static libraries too. (If you have any issue, post it here). All scrollers are made with all possible simplicity and functionality. See the loader.exe in attached file. Run it and move/play with scrollers, you can also rearrange them,can change there positions,change colors of text,height,width,selfmove,parent move etc Downlo…
-
[Help] VBA Hardware locking
by Arnie- 1 reply
- 8.5k views
Could you advice on code snippet or application for simple and cheap solution of Word/VBA hardware locking preferrably working on both x86 and 64 bit. If possible no external dll due to restricted environment.
-
virtual usb source code
by zeytunak- 5 replies
- 7.2k views
Hi I want to emulate dongle and need source code of virtual use skeleton to make my own emulator I search on google and nothing found . maybe you can help me thanks
-
AssemblyLoadHoocker C#
by CodeExplorer- 1 reply
- 6.8k views
AssemblyLoadHoocker C#: Hoocks Assembly.Load(byte[] array) so you could change the loaded assembly with your own code. AssemblyLoadHoocker-ImportantFiles.zip attached or the whole Project (also include dnlib): http://www112.zippyshare.com/v/jj3hT5Ik/file.html The project is only inject MessageBox.Show("String") in loaded assembly, you got to customize it, this is why I shared the source code! AssemblyLoadHoocker-ImportantFiles.zip
-
Delphi Code Generator
by root- 0 replies
- 6.7k views
I released the initial version of my generator assembly code(porting Nasm codegen to delphi). It 'the first version and it needs a long time to be improved, I hope someone in collaboration to improve the project. https://github.com/Pigrecos/D_CodeGen
-
StringToHexToString(S2H2S)
by Modify- 0 replies
- 8.2k views
StringToHexToString(S2H2S) View File Support AutoIt Version: 3.3.12.0 String To Hex, Hex To String Write Big Size File Very Fast. Submitter GoravGupta Submitted 01/21/2016 Category Source Code
-
[Help] How to make explorer transparent
by Modify- 0 replies
- 4k views
anyone tell me, how to make explorer transparent use visual basic
-
[Help] How to change pc time vb.net
by Modify- 0 replies
- 3.7k views
anyone tell me, change pc time and date use vb.net language
-
[Help] convert vb.net code to autoit
by Modify- 0 replies
- 10.9k views
code Imports System.Management Imports System.Security.Cryptography Public Class Encrypt Public Shared Function REn(ByVal Data As Byte(), ByVal Key As String) As Byte() Dim oAesProvider As New RijndaelManaged Dim btSalt() As Byte = New Byte() {1, 2, 3, 4, 5, 6, 7, 8} Dim oKeyGenerator As New Rfc2898DeriveBytes(Key, btSalt) oAesProvider.Key = oKeyGenerator.GetBytes(oAesProvider.Key.Length) oAesProvider.IV = oKeyGenerator.GetBytes(oAesProvider.IV.Length) Dim ms As New IO.MemoryStream Dim cs As New CryptoStream(ms, _ oAesProvider.CreateEncryptor(), _ CryptoStreamMode.Write) Try …
-
Encrypting resource problem
by MindSystem- 1 reply
- 5.3k views
Hi all, i try to make a simple resource decryption. Resource are decrypted in .cctor And then it calls this method -> But exe is not runable. I can't find where is the error. Please help me
-
- 2 replies
- 4.5k views
I have a situation over here and I need some help, well, figure the following: EDX Holds a value of an address, in which that address contains data in a byte array I want to check... But I have something like this: 0167C000 | 66 BB 40 B4 | mov bx,B440 | 0167C004 | 66 39 DA | cmp dx,bx | 0167C007 | 74 08 | je unknown.167C011 | 0167C009 | 90 | nop | 0167C00A | 90 | nop | 0167C00B | 75 0A | jnz unknown.1…
-
- 0 replies
- 3.4k views
How can transfer unmanaged ImageBase to managed export parameter?
-
A few personal projects
by saneki- 7 replies
- 6.7k views
Hello, I'm new here I guess. I was originally planning on just posting a keygenme solution, but for some reason I'm not allowed/able to reply to threads in that section. Maybe if I make a few posts elsewhere it will let me post? If so, I guess I'll start by sharing a few of my projects (related to reverse engineering, of course): eazdevirt - a devirtualizer for Eazfuscator.NET. Not guaranteed to work on recent releases unfortunately (at least not yet). pyinst_tools - a toolkit for working with and modifying executables generated with PyInstaller. Pretty much ExtremeCoder's pyinstxtractor with some extra stuff. dnlib-examples - some extra examples for dnlib …
-
- 8 replies
- 7.7k views
Hello, for the last few days I have been trying to figure out how to use diablo2oo2's dUP2 SNR patch engine in a scripting language called autoit, the way you call Dll's from autoit is as follows DllCall ( "dll", "return type", "function" [, type1, param1 [, type n, param n]] )I don't understand ASM very well, and since the examples are only in ASM, I'm having quite a difficult time translating it to autoit, and I was hoping someone could help me figure out how to call it, Thanks.