Programming and Coding
Programming and coding tips, help and solutions...
1,876 topics in this forum
-
- 2 replies
- 3.8k views
hii! i've looked for a way to manually set the libraries that link.exe includes, by default, when i link using: C:\masm32\bin\link.exe /verbose /nologo /subsystem:windows /opt:noref main.obj it says: Start Pass1 Processed /DEFAULTLIB:C:\masm32\lib\user32.lib Processed /DEFAULTLIB:C:\masm32\lib\kernel32.lib Processed /DEFAULTLIB:C:\masm32\lib\gdi32.lib Processed /DEFAULTLIB:C:\masm32\lib\opengl32.lib Processed /DEFAULTLIB:C:\masm32\lib\glu32.lib so i tried setting the /DEFAULTLIB's parameters myself to override them C:\masm32\bin\link.exe /verbose /nologo /subsystem:windows /defaultlib:C:\masm32\lib\user32.lib /opt:noref main.obj (i was intending to j…
-
Bootkit/Replacing the Bootloader on Windows 10
by null_endian- 1 reply
- 4.3k views
Does anyone know of a way to edit the bootloader on a Win10 machine to force it to execute arbitrary code when Windows starts up? I'm not sure if this is possible on a new WIn10 box because I know that there are much stricter checks at bootup now. I don't care if it is a one-off as I'm trying to do a specific experiment on MY machine, it doesn't need to apply to all machines. Thanks. PS: Actually, I don't necessarily need to replace the bootloader - this code accomplishes something similar to what I need (I just need code execution control prior to everything else on the system when the OS loads) but it doesn't work for Win10. Looking for something similar.
-
Remove listbox content Visual C++ ???
by CodeExplorer- 4 replies
- 9.7k views
Remove listbox content Visual C++ ??? I wanna remove all items from listbox, Already tried ResetContent but it doesn't work: CWnd *pWnd = GetDlgItem(IDC_LIST1); CListBox* listbox = static_cast<CListBox*>(pWnd); //dynamic_cast does not work listbox->ResetContent();
-
Simple x64 Loader[Delphi SRC]
by h4sh3m- 7 replies
- 8.1k views
Hi Maybe help someone to create custom loaders ! BR, h4sh3m x64_Simple_Loader_Delphi.rar
-
Visual C++ 6 maximum textbox len? (improvements?)
by CodeExplorer- 13 replies
- 6.4k views
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?
-
Explain struct in assembly?
by James Taylor- 2 replies
- 6.7k views
I am having trouble understanding struct in assembly from disassembly. can you please explain the code below. Disassembly pseudo code. Thanks
-
Quick TLS Info question
by LCF-AT- 14 replies
- 6.9k views
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
-
- 18 replies
- 5.9k views
How does one know which Dll and Functions to include in the program ?
-
How to assemble text to binary code for MASM? 1 2 3
by LCF-AT- 54 replies
- 21.2k views
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
by CodeExplorer- 13 replies
- 9.6k views
Prime numbers Solution: https://text-share.com/view/03a0d1ed
-
Difference between #~ and #-
by CodeExplorer- 3 replies
- 25.2k views
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
-
- 3 replies
- 4.9k views
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 =…
-
- 5 replies
- 4.8k views
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
by CodeExplorer- 0 replies
- 6.9k views
Pascal's Triangle: solution solved, Pelles C compiler. Attached. PascalsTriangle.zip
-
- 2 replies
- 4.6k views
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.
-
Help using uFMOD in Delphi!
by Nextasy2k- 3 replies
- 5.3k views
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!
-
Comparing code
by CloneWa- 0 replies
- 4.6k views
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…
-
[DNLib] write a string desobfucator
by Futex- 3 replies
- 6k views
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 …
-
- 3 replies
- 6.6k views
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.
-
Write Multiple Bytes To Memory [delphi]
by Departure- 14 replies
- 8.3k views
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…
-
Looking for Regular Expression lib
by LCF-AT- 8 replies
- 5.9k views
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
by CodeExplorer- 1 reply
- 7.9k views
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.
-
help me ,...can you convert c++ to delphi?
by Guest Steve- 3 replies
- 5.1k views
#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…
-
How to map large files?
by LCF-AT- 5 replies
- 7.1k views
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…
-
Writing plugin for IDA Pro
by Aldhard Oswine- 1 reply
- 7.8k views
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?