Programming and Coding
Programming and coding tips, help and solutions...
1,894 topics in this forum
-
Visual C++ 6 maximum textbox len? (improvements?) I have a Visual C++ 6 project which will log all memory allocation of a process to textbox, here is the problem: the log text will be truncated to 5 KB (which is way to small!) Is there any way to improve maximum key length or should I log everything to a text file?
-
I am having trouble understanding struct in assembly from disassembly. can you please explain the code below. Disassembly pseudo code. Thanks
-
Hi guy, I have a small question about TLS so I dont remember anymore and just asking now and I dont find any example file using TLSCallback + relocation to load file with dynamic base addresses. So in the TLS info table I can see direct VA addresses and no RVA addresses.My question is just whether the VA addresses gets updated like this... TLS info table VAs etc - Imagebase from PE Header = TLS RVAs + New loaded targetbase = New TLS VAs.Should be so right? As I said I am just quickly asking about it so I dont find a dynamic file I can checkout now to see it. Thanks
-
How does one know which Dll and Functions to include in the program ?
-
Hi guys, I am looking for a lib which can assemble text commands to binary code.Something like the Multiline Ultimate Assembler plugin by RaMMicHaeL.I do enter my code as text and wanna assemble it. Ok,normaly I can use Disam lib from OllyDBG site using function Assemble to assemble text commands one by one.Problem is I wanna work also with labels and API names etc alomst same as the MUA plugin can do.Has anyone some ideas what I could use for that? Thank you
-
Prime numbers Solution: https://text-share.com/view/03a0d1ed
-
To .NET experts: What's the difference between #~ and #- ??? #~ seems to be the good and default one! #- is used by dnlib #~ is used by Mono.Cecil
-
Hi all, I wanted to execute a fonction on a loaded assembly, my code run well on a normal assembly, but it's failed when i try it on a obfuscated one (rdg packer says .net crypter) I list the string inside the binary like this: try { Assembly asm = Assembly.LoadFrom(executable); foreach (Type type in asm.GetTypes()) { foreach (MethodInfo method in type.GetMethods()) { if (method.MetadataToken == testToken) { Type t = asm.GetType(type.FullName); var methodInfoStatic = t.GetMethod(method.Name); if (methodInfoStatic == null) { throw new Exception("No such static method exists."); } object[] constructorParameters =…
-
Hi guys, I am playing around with that functions & struct to get a dialog same as in notepad to find / repleace etc.I get the new dialog to see where I can enter stuff etc.My problem now is how to catch the messages if I press OK / chancel etc to get the entered data and where?Can anyone post a example code of this? Thank you
-
Pascal's Triangle: solution solved, Pelles C compiler. Attached. PascalsTriangle.zip
-
Hello all, I am trying to build one form auto filler application to book tickets from one indian website. The site is https://irctc.co.in I need to build the auto filler application using either c# or vb .net. The main issue with this site is its too much loaded at the time of booking so need solution for getting the fast response from loaded website in order to book tickets fast.
-
I using uFMOD to Play .xm chiptunes in my Project. It works already finde! When i start the program it plays the music and when i close the program it stop playing. But i like to have one Button where i can start and stop the music. Like.... If music is playing then Stop music else Play music ... I'm a newbie in Delphi. I Hope anybody can Help me!
-
Hi. I am trying to find the best way to programatically "map" and compare code. Basically I have different versions of an application which is partly obfuscated and thus the names are different in every version and I'd like to find certain changes. For example, there could be a class like this: namespace ns1 { public class SomeClass1 { public string MyProperty1 { get; set } public void Method1() { // Code } public void Method2() { // Code } } } Then, in another version of the source code, it could look like this: namespace ns183 { public class AnotherClass112 { public string someProperty1 { ge…
-
Hi all, I start to use dnlib for the first time, and i wanted to made a string desofucator for an unknown malware packer. I list the string inside the binary like this: public static void DecryptStrings(ModuleDef module) { int count = 0; //List module Types foreach (TypeDef type in module.Types) { //List methods foreach (MethodDef method in type.Methods) { //Remove empty method if (!method.HasBody) break; //Check instructions for (int i = 0; i …
-
How to execute embedded exe into memory without extracting ? I can extract file from resources but I want to execute without extracting. I hope this is not duplicate posts.
-
Hey people I just need a little help from someone with some delphi experiance, Im new to delphi coming over from Vb6 and I have no problem writting to memory in Vb6 But I want to do it in delphi, I have used something similar that I would have used in vb6. But I would like to know how I would write multiple bytes to a single address implementation const Address1=$0054B28B; //These will be the address's im going to write to Address2=$0054B297; Address3=$0054B29C; {$R *.dfm}procedure TForm1.Button1Click(Sender: TObject); var Path : string; StartInfo : TStartupInfo; ProcInfo : TProcessInformation; CreateOK : Boolean; Write: Cardinal; NumberOfByt…
-
Hello, at the moment I trying to lern how to work with RegEx syntax and I have to say it makes fun and seems to be also very usefully.I also like the online site regex101 for testing / checking and to get the results and infos in realtime.(I would like to have any offline tool similar as regex101 [not notepad++]) Now my question is whether there are also any libs for MASM already I could use for myself in my apps if I need or want to check text sources for anything,so with RegEx it would be much better than to search manually with limited small pattern.Maybe any lib with functions I can also use with same string syntax etc.Does anyone know some latest thing etc…
-
Looking for all JavaVMOption opt; What I have so far: public static string GetDescriptionFromComand(string command) { if (command.Equals("-Djava.compiler=NONE")) return "disable JIT"; if (command.StartsWith("-Djava.class.path=")) return "user classes"; if (command.StartsWith("-Djava.library.path=")) return "set native library path"; if (command.Equals("-verbose:jni")) return "print JNI-related messages"; return ""; } Any help will be great, also searched with google but no good result.
-
#include <windows.h> #include <stdio.h> #include <tlhelp32.h> unsigned long _GetProcessId( char* szProcName ) { PROCESSENTRY32 pe32; HANDLE hHandle; hHandle = CreateToolhelp32Snapshot( TH32CS_SNAPPROCESS, 0 ); pe32.dwSize = sizeof( PROCESSENTRY32 ); if( !Process32First( hHandle, &pe32 ) ) return 0; while( Process32Next( hHandle, &pe32 ) ) { if( strcmp( szProcName, pe32.szExeFile ) == 0 { CloseHandle( hHandle ); return pe32.th32ProcessID; } CloseHandle( hHandle ); return 0; } unsigned long _ScanForBytes( c…
-
Hi guys, today I got a error message trying to map a large file +1 GB and get error code ERROR_NOT_ENOUGH_MEMORY.For smaller files it works.My question now is how to handle large files without to get any problems? CreateFile GetFileSize // till max 4 GB = -1h CreateFileMapping MapViewOfFile,handle,FILE_MAP_READ,0,0,0 // = ERROR_NOT_ENOUGH_MEMORY (00000008) dwNumberOfBytesToMap --------------------------- Specifies the number of bytes of the file to map. If dwNumberOfBytesToMap is zero, the entire file is mapped. How to handle large files?What is the normal way for that?Should I first check how much virtualmemory the system has (in my case 4 GB - 1 GB for g…
-
I'm reading IDA pro Book 2nd edition, author talks about writing plugin for IDA and uses C++, is this possible to write a plugin entire with python, plugin with menu item and shortcut?
-
If i try to insert a call after a Instruction im getting a Method is not defined in this Module Exception using dnlib.DotNet; using dnlib.DotNet.Emit; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace LeafObfuscator.Protection { //TODO: Fix class Int32 { public static void encode(ModuleDefMD md) { Inject.injectmethods(md,Int(md)); foreach (TypeDef type in md.Types) { foreach (MethodDef method in type.Methods) { CilBody body = method.Body; …
-
If i try to insert a call after a Instruction im getting a Method is not defined in this Module Exception using dnlib.DotNet; using dnlib.DotNet.Emit; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace LeafObfuscator.Protection { //TODO: Fix class Int32 { public static void encode(ModuleDefMD md) { Inject.injectmethods(md,Int(md)); foreach (TypeDef type in md.Types) { foreach (MethodDef method in type.Methods) { CilBody body = method.Body; …
-
Hi there, i have a question for Delphi code. I want to be able to read all text from other processess windows. Now i am aware of FindWindow API, but it only reads Caption of a main form - and I want to be able to read from status bar, menus, memoboxes, from everything that might contain text. So is there a way to get this (except capturing a screen and using ocr to recognize eventualy text)? Any ideas, comments?
-
Hi How to write a loader for bypass hwid of winlicense protected file ? i can patch it in Ollydbg , but i don't know how to write loader for it thanks