Programming and Coding
Programming and coding tips, help and solutions...
1,882 topics in this forum
-
- 8 replies
- 8.8k views
I'm using : - windows 7 x64 - Android studio 2.3.3 with offline gradle (gradle-4.2) - Ndk is installed (android-ndk-r15c-windows-x86_64) - CMake is installed (cmake-3.10.0-rc4) - lldb for debuging is installed Why the native method is always in red? How to load Prebuilt Libraries ".so" files properly into android studio? If possible, i need a demo project for using prebuild libraries. I attached a sample project for my work and a screen capture for android project. Forgive me if i can't reply in time, i have a limited internet connection. -------------------------------- how to use Android.mk? ----------------…
-
- 6 replies
- 6.3k views
Hello, I have been trying to make different self modifying programs in c++, but there have been some problems I am facing due to my less knowledge and experiences. I would be grateful if anyone helps me about these 2 question. 1. how to make the exe's code section writable programmatically? normally, after compiling the program, I use cff explorer and change the "is writable" flag of that program to allow it modify itself. But what code can I write inside the main() function to make it compile with the write allowed? 2. So, far, to make some certain lines self modifying, I am doing it this way : asm("nop"); asm("nop"); asm("nop"); asm("nop"); asm("no…
-
- 1 reply
- 4.8k views
Hello there.. There is some C paper about dll ? I already compiling dll... but I can't find any in depth article or paper about it in pure C. Only in C++... I do like C, but anywhere that i look is C++.
-
- 10 replies
- 6.3k views
Hello, how do you make a .net coded program self modify itself at run-time? I am not talking about making a loader program or something like that. Like, in native, you can make the program xor itself from and upto certain addresses at runtime, is it possible to do the same in .net? Then how? Now, about modifying IL codes. So far, I know about basic code injection in a method using mono.cecil library, but I can do it only in a non-running app. I intend to add some codes in sub_new () or entry point method to make the program add/remove/modify few IL code lines in a specific method. Like this, sub new() // get the certain method // add/remove IL code fr…
-
Need help with Delphi
by T-rad- 5 replies
- 6.6k views
I started playing with Delphi again after a couple of years and now I am feeling dumb, really dumb. Is there a function in Delphi that reads an ascii string, say 54 2D 72 61 64 (T-rad) as 64 00 00 00 54 2D 72 61 (d...T-ra) string type Thanks for any help T-rad
-
- 0 replies
- 4.1k views
Hello, I'm developing a processor module for IDA (using the C API) and I've run into something that has me quite annoyed. Sometimes, when I call the blocking functions from kernwin.hpp (warning(), for example, which displays a MessageBox), they would cause IDA to crash. Removing those function calls from the processor module makes it work fine. I'm calling those functions from within my emulator function, and when IDA calls my outputter afterwards to output the instruction it crashes inside the call I make to MakeLine(). Digging a bit deeper, it seems like IDA loads and unloads some sort of context related to the GUI or outputting of disassembled t…
-
LM-X SDK (4.8) [Request]
by h4sh3m- 0 replies
- 5.9k views
Hi all friends Please share this SDK if you have it ! I need some header files if anyone have it but don't like share full sdk ! BR, h4sh3m
-
Find the process name that locks a file
by djpolgio- 4 replies
- 6.4k views
I know this is not an easy one .... I tried with IFileIsInUse but works only if the Process uses it to lock the files. I tried also what suggested as "The Hard Way" here : hxxps://stackoverflow.com/questions/8726906/delphi-finding-the-process-that-is-accessing-a-file-from-my-program but seems not working either any idea ? Regards S
-
- 5 replies
- 6.5k views
Hello guys, how are you all ? I trying to do a PoC about PEB hooking and at this point i just trying to code a dll that receives the call and pass to the original dll. I have the dlltest2.dll with 3 functions and in the nasm I am exporting these same 3 functions. I thought that if I did a LoadLibrary with the original the __imp_ would be the original function, but instead the NTDLL is loading my own nasm/dll functions on the IAT making a infinite loop... For example the function NOME goes to the IAT that it forced to ack to the same nasm/NONAME function instead of the dlltest2.dll/NONAME. I did this piece of code in NASM [BITS 32] global _start gl…
-
How to minimize open windows?
by LCF-AT- 5 replies
- 5.3k views
Hi, just have a tiny question.So I was just looking for a small code what can send a minimize command for all open windows and also these who are not present in the taskbar and only using tray icon.So I found something like that... invoke FindWindow,chr$("Shell_TrayWnd"),0 invoke SendMessage,eax,WM_COMMAND,419,0 ....its also working to minimize all at once which are also present in taskbar but I also have running a other app which isnt present in taskbar and just using a try icon to show & minimize the window there and this keeps open.So what lpClassName parameter name I have to use for this to minimize that too? Shell_TrayWnd + ReBarWindow32 + TryNo…
-
Change of ImageBase in code section - MASM disassembler??
by CodeExplorer- 5 replies
- 4.4k views
On x64 there is no need for fixing code section, so all worked ok. For x32 I have to change ImageBase (rebase) for code section. For doing that I have disassemble code section or at last parse instruction and add its size, then check for instructions I wanna fix, is there any MASM disassembler with source code?
-
- 1 reply
- 5.5k views
Hey, Can someone explain how I can get rid of all these crt and runtime crap? tried static link, no effect tried /MD -> /MT no effect thanks!
-
[?] java byte code
by abbas- 3 replies
- 6.2k views
hi can anyone help me with compiling this piece of code? public static boolean xUFT() { return true; } iconst_1 1 ireturn private boolean GyLP() { return true; } iconst_1 1 ireturn public static String xUFT(String paramString1, String paramString2) { return null; } aconst_null areturn private String LCuJ() { return this.GyLP + "XXXXX"; } private gIbD(String paramString1, String paramString2, int paramInt) { this.GyLP = "XXXX"; this.PcqR = true; } aload_…
-
CRC Cracker / Easy Crc calculator
by CodeExplorer- 7 replies
- 10.7k views
CRC Cracker / Easy Crc calculator source Visual C++
-
Adding asm files via include command
by LCF-AT- 6 replies
- 6.4k views
Hi guys, I have a new small problem.I wrote a code entire code part and would like to make a extern asm file so that I can use / add it via include command in my main app.So the problem is if I do this then the extern asm file code will used as entry point = it runs this code first but I dont want this so.I also get other errors like this if I just wanna add any .asm files via include command... warning A4011: multiple .MODEL directives found : .MODEL ignored LINK : error LNK2001: unresolved external symbol _WinMainCRTStartup ...so the most present .asm files having model datas included.If I remove it then first error is gone but CRT error keeps.Below a exampl…
-
Dumping section in c#?
by MindSystem- 7 replies
- 5.1k views
Hi, I would like to know how I can dump the section of a NATIVE executable using c# ? PS : the section I would like to dump is an added section (so not .text, .reloc, .rsrc) Thanks you
-
value was either too large or too small c#
by knight039- 1 reply
- 6.4k views
I am having a problem with a code, with the following message value was either too large or too small for an unsigned byte. code is private static void ByteWrite(IntPtr address, byte[] bytes) { int lpNumberOfBytesWritten = 2; Player.WriteProcessMemory((int) Proc.Handle, address, bytes, bytes.Length, ref lpNumberOfBytesWritten); } public static void UsarItem(int Slot) { Player.ByteWrite(new IntPtr(7875792), new byte[32] { (byte) 36, (byte) 0, (byte) 0, (byte) 0, (byte) 115, (byte) 3, Player.ClientID[0], Player.ClientID[1], (byte) 0, …
-
- 9 replies
- 5.9k views
I am using the dnlib and I want to insert Console.ReadKey() at the end of the Console.WriteLines in another executable. Note I am extremely new to dnlib and wish to learn more about it. The code below partly works. Though the issue is. It produces the MSIL: IL_0028: call void [mscorlib]System.Console::ReadKey() When I want it to produce IL_015a: call valuetype [mscorlib]System.ConsoleKeyInfo [mscorlib]System.Console::ReadKey() Code ModuleDefMD mod = ModuleDefMD.Load(args[0]); ModuleDef mode = new ModuleDefUser(args[0]); Importer importer = new Importer(mod); AssemblyDef asmr = mod.Assembly;…
-
Microsoft Detours 2.1
by ragdog- 10 replies
- 12.1k views
Hi I search a download link for Microsoft Detours 2.1 This website or download link to ms cannot connect or download from this site http://anonym.to/?http://research.microsoft.com/sn/detours Can any upload this libaray please? Thanks
-
What is the equivalent in dnlib?
by Perplex- 1 reply
- 5.8k views
What is the equivalent in dnlib? MethodBase.IsGenericMethod; MethodBase.DeclaringType.IsGenericType;
-
V2M + uFMOD Lib Engine VB6 + video tutorial
by ghsafsdfsdhfghfgjhgkj- 11 replies
- 7.6k views
-
- 1 reply
- 4.4k views
Hello, folks! Here me again.. I'm trying to implement PEB hooking, but as you may know we have first to export the same symbol as the other dll exports... So i'm trying to do this with nasm. I dind't find yet a way to create a dll with def files on alink.. The idea is to import the dll inside the nasm.. define all the symbols my_OriginalDlllSymbol... inside all these fake symbols JMP to the original. I couldn't find a way to do this. NASM doesn't offer even any type of aliases to the imported symbol. ALINK seem doesn't support def files. EXPORTS my_OriginalDlllSymbol = OriginalDlllSymbol Any ideas ? Thanks in advance...
-
How to handle console window in GUI?
by LCF-AT- 15 replies
- 7k views
Hi guys, today I would like to ask something about CMD / console windows so I have again a little problem and need some help. Problem: I am trying to create a new GUI app and using a library from a commandline app.So everything ok so far so I can normaly use the functions of that library for my GUI app.Only problem I have now is that the original commandline app does also LOG informations into the console window and I just use a GUI without console window yet.I also see that the library still does LOG everything but I dont have a console window to see that infos into etc you know. My question is how to start a simple console window and what to use to see th…
-
- 0 replies
- 8.1k views
the original cracktro for this release by "widowmaker" was broken and had alot bugs inside. I made a proper recode by this cracktro (Sourcecode attached to this post). - rewritten another HLSL waving shader onto the Logo (i like em more) - added drag cracktro screen with mouse - removed fullscreen support, (no demo or cracktro is working on my sys. (have 3 tft plugged)), so fullscreen won't work - removed the hidden credits screen when hit the "print screen" key on keyboard (was bugged too) - shrinked and fixed the soundfile original code: widowmaker (skidrow) gfx: ? sfx: ? fixed recode: inc. gfx: inc. sfx: ? …
-
Wanting Android Devloper
by SameerRaj- 0 replies
- 10.8k views
Want To Have A An Android Devloper Who Can Maintain An App . Our Startup Budget Is 3,927.50 USD