Programming and Coding
Programming and coding tips, help and solutions...
1,890 topics in this forum
-
Need help fixing a line.
by Invoked- 2 replies
- 4k views
Hello everyone. Im fairly new to c# and currently learning it ,but I came up on an error. I had someone suggest me to use an array ,but I still get errors. Any tips? Code: foreach (Process process in Process.GetProcessesByName("dnspy-x86")) { Environment.Exit(0); } I want it to accept more then 1 process. thanks !
-
Creating Patch in VB.Net
by zackmark29- 16 replies
- 6k views
Hi everyone. I was having trouble of creating and learning of patching with VB.NET Can anybody tell me what's wrong with that code? I tried many times but the bytes still not replacing Please help Imports System.Runtime.CompilerServices Imports System.IO Public Class Form1 Private Shared ReadOnly FindHex As Byte() = {&HE0, &H42, &HFC, &HB1, &H3, &H40, &H75, &H75, &H75, &H75, &H75, &H75, &H75, &H75, &H75, &H75, &H75, &H75, &H75, &H75, &H75, &H75, &H75, &H75, &H8F, &H75, &H74} Private Shared ReadOnly ReplaceHex As Byte() = {&H0, &H0, &a…
-
[Help] Patching Tool In VB.Net
by Guest forum- 7 replies
- 5.2k views
Hi all. i am new to the patching. i want to make a patch in vb.net , which will replace multiple bytes of a program. like when i load the original & patched file in DUP , its comparision : there are many patterns how to make its patch in vb.net
-
VB.net input 6 million lines
by zackmark29- 2 replies
- 4.1k views
Hello I'm newbie here. I'm learning to make a patch using vb.net and I'm almost there but my problem is I cannot put million words into my code my visual studio is just freezing when I'm pasting the million bytes I just wanna ask how can I insert 6 million length of text
-
- 0 replies
- 4.6k views
Hi, I'm new here. Thanks for the code in https://www.rohitab.com/discuss/topic/41529-stealthier-process-hollowing-code/ But, it only works with x86, then I was trying to make it work with both x86 and x64. But I received the following error when attached windbg to running x64 bit hollowing (in hollowed process). What would be wrong ? (768.edc): Access violation - code c0000005 (first chance) First chance exceptions are reported before any exception handling. This exception may be expected and handled. ntdll!LdrpAllocateTlsEntry+0xda: 00000000`7759466a 8911 mov dword ptr [rcx],edx ds:00000000`00904b5c=???????? Here is my code for Proce…
-
UPX unpacker Delphi Src
by pwnium- 2 replies
- 5.3k views
Hello eveyone , Am looking for a source code for UPX unpacker written in Delphi, I couldn't find anything on the internet . Any article , link , code snippet will be more than helpful . thanks in advance .
-
writing a plugin for OllyDbg in Delphi
by pwnium- 2 replies
- 4.3k views
Hello everyone , I hope you're doing good , I've been searching for a while about how to write a plugin for OllyDbg , with the help of the (plugin api unit) I was able to make a simple plugin that retreives the value of the flag (BeingDebugged) which is used by the function (IsDebuggerPresent) . now the problem is that i still can't change that byte . The function WriteProcessMemory isn't working , can you give me some help please , here's the full code : thanks in advance library AADebug; uses SysUtils, plugin, windows, Classes; {$R *.res} type PEB = record Reserved1: array [0 .. 1] of Byte; BeingDebugged: Byte; Reserved2: B…
-
AMED: Advanced Machine Decoder.
by SMP3- 1 reply
- 4.3k views
Hello guys, I'm proud to announce the beta release of AMED (an Advanced Machine Decoder). It's extremely fast, lightweight and supports the following architectures : - x86(with all its extensions including xeon instruction set). - aarch32(arm, thumb, neon, ARMv8+). - aarch64(with all its extensions including SVE). I also released the new version (v3) of opcodesDB. https://github.com/MahdiSafsafi/AMED https://github.com/MahdiSafsafi/opcodesDB What do you think guys ?
-
Oracle Announces Java 14
by whoknows- 2 replies
- 4.1k views
Oracle is providing Java 14 as the Oracle OpenJDK release under an open-source GNU General Public License v2. It's also released under a commercial license using Oracle JDK. Most of the nearly 2,000 fixes in JDK 14 have been made by Oracle employees while 528 came from individual developers and other organizations. Some of the main contributors included Red Hat, SAP, Google, Arm, Intel, and NTT Data. @CodeExplorer happy? #haha https://www.techinvestornews.com/Oracle/Latest-Oracle-News/oracle-announces-java-14 bonus - github.com/sagarkarira/coronavirus-tracker-cli
-
[?]code snippet meaning
by abbas- 2 replies
- 4.3k views
hi all can some one please tell me what does this code do? private boolean d(String paramString) { boolean bool = false; byte[] arrayOfByte = paramString.getBytes(); if (arrayOfByte.length == 26) { byte b1 = 0; byte b2 = 0; while (b1 < 24) { b2 = (byte)(b2 ^ arrayOfByte[b1]); b1++; } if ((b2 & 0xF) == -65 + arrayOfByte[25] && (0xF & b2 >> 4) == -65 + arrayOfByte[24]) bool = true; } return bool; }
-
Combo box
by krotty- 1 reply
- 4k views
I'm making a project Please help me How can add adb devices connected port On combobox thanks
-
How to drag links from browser to app? 1 2
by LCF-AT- 25 replies
- 9.9k views
Hi guys, I have a new question I am trying to find a solution.I would like to drag a link from browser directly into my app to get the full link address without using any copy / paste functions manually via mouse.Now I see its not working and I can only just drag files from Windows / Explorer etc into my app window.So how can I enable the drag operations also from any browser to outside like into my app window etc? greetz
-
Delphi combobox help
by krotty- 3 replies
- 4k views
Hi everyone I'm making a project on Delphi How can show name like I'm select man See all man name And I'm select women the. Show women name Thanks
-
- 5 replies
- 6.7k views
I am trying to build dnspy with dnlib as a dependency project in VS2019. So I can debug dnspy and follow whats happening in the dnlib source. Things I have tried: 1. git clone just dnspy and build using "dotnet build" works. But how can I add dnlib project to dnspy solution in vs2019 and make it build. 2. I also tried the NuGet from vs2019 and install dnlib, but it gets only the dnlib.dll not the entire project. 3. downloaded the dnlib project and added manually to the dnspy sln. it wasnt building at all. 4. dnlib byitself builds fine. 5. dnspy builds fine in git bash shell. Once this is done. the dnspy sln builds fine in vs2019 but only with…
-
- 5 replies
- 5.5k views
My Question How to VMProtect Application Crc calcuated I Want embed hash into my application but , if embed any crc hash to application final checksum changed how VMProtect like software ex Themida calculating own hash I'm Deobfuscated VMProtect and i get this ;VMProtect CRC START: mov edx,dword ptr ss:[ebp] add ebp,0x4 LOOP: xor eax,eax mov ecx,eax shl eax,0x7 shr ecx,0x19 or eax,ecx xor al,byte ptr ds:[edx] inc edx dec dword ptr ss:[ebp] jnz LOOP mov dword ptr ss:[ebp],eax END But how crc values calculated and embeding into application i don't understand how it's work and i need i want to make my own protector…
-
Delphi patch template 10 by [SST] source code
by Bilbardfayim- 9 replies
- 7.6k views
File Name: Delphi patch template 10 by [sST] source code File Submitter: Bilbardfayim File Submitted: 12 Apr 2015 File Category: Source Code Delphi patch template 10 by [sST] source code Click here to download this file
-
[Delphi]rad music player
by JustAGuy- 0 replies
- 4k views
Some time ago I found C source for playing the oldschool Reality AdLib Tracker (.rad) tunes, after a while of compiling and experimenting I managed to get a simple working delphi player. + no external dlls + no hassle compilation + music file embedded inside + fairly small size cca 50kb (not packed) Hope somebody finds it useful. RadPlay.zip
-
A keygenme With source code in WinAsm
by tarequl.hassan- 3 replies
- 5.9k views
Dear All These is a Small KeygenMe with source Code(in Masm32). Thanks to Lena 151. KeygenMe With Source Code.rar
-
How to bring a window active to front? 1 2
by LCF-AT- 32 replies
- 13.4k views
Hi guys, I have a small question.I would like to bring my app into front by itself when something was found in browser I am looking at.I tried using SetForegroundWindow but dosent work also AllowSetForegroundWindow either.Only way I am able to do is just using SetWindowPos function with HWND_TOPMOST paramter & again with HWND_NOTOPMOST paramter.So I wanna just bring my app window in front only without to have / keep HWND_TOPMOST flag. invoke SetWindowPos,hWin,HWND_TOPMOST,0,0,0,0, SWP_ASYNCWINDOWPOS or SWP_NOMOVE or SWP_NOSIZE invoke SetWindowPos,hWin,HWND_NOTOPMOST,0,0,0,0, SWP_ASYNCWINDOWPOS or SWP_NOMOVE or SWP_NOSIZE Using that 2 functions is working…
-
Problem With Searchandreplace Patcher
by ragdog- 17 replies
- 6.8k views
hi guys i have a SearchAndReplace patcher source in masm32 search a loop algo for patch more patternsequence can your help me PATTERNSIZE equ sizeof SearchPattern1 PATTERNSIZE2 equ sizeof SearchPattern2 PATTERNSIZE3 equ sizeof SearchPattern3 SearchPattern1 db ... SearchMask1 db ... ReplacePattern1 db ... ReplaceMask1 db ... SearchPattern2 db ... SearchMask2 db ... ReplacePattern2 db ... ReplaceMask2 db ... SearchPattern3 db ... SearchMask3 db ... ReplacePattern3 db ... ReplaceMask3 db ... .code ... ..... ...... PatchFile proc _targetfile:dword LOCAL local_hFile :DWORD LOCAL local_hFileMapping:DWORD LOCAL local_hViewOfFile :DWORD LOCA…
-
Cuda force use mad.lo.u32 for ROTATE_LEFT
by CodeExplorer- 1 reply
- 3.8k views
Cuda force use mad.lo.u32 for ROTATE_LEFT ??? Compute Capability 1.2 __global__ void fun(unsigned int * mem) { int a = 3; int b = 5; int c = 6; int d; asm("mad.lo.u32 %0, %1, %2, %3;": "=r"(d) : "r"(a), "r"(b), "r"(c) : ); // d = a*b+c *mem = d; } This produce good result, anyway when I define (try): #define ROTATE_LEFT2(x, n) (int)x*(1>>(32-n))+(x<<(int)n) there is no mad instruction. References: https://www.openwall.com/lists/john-dev/2012/03/22/7 https://devtalk.nvidia.com/default/topic/489750/ptx-assembly-help-33-/ https://devtalk.nvidia.com/default/topic/478578/integer-mad-instruction/ https://www.blackhat.co…
-
- 1 reply
- 4.3k views
I know I can do it with dnlib or one by one with DnSpy, but is there other app that ready to use for doing this? example, I want to replace ldc.i4 50 call int32 MyApp.MainForm::getInt(int32) with ldc.i4 5 nop
-
How to find First window of newly created process
by GautamGreat- 7 replies
- 5.6k views
Hello, My question is simple. How we can detect the first window of a program which is created by CreateProcessA api? My objective is simple 1. create process with CreateProcessA api 2. Wait for first window to appear (same like advance loader generator) 3. Suspend thread and patch bytes. Can someone please help me to know how I can wait till the first window appear?
-
WinSock problem 1 2 3 4
by LCF-AT- 84 replies
- 39.3k views
Hi guys, today I have some questions about a problem I have using WinSock APIs and maybe you could help to find & fix the problem reason. So before a while I coded a tool to check many diffrent internet links from same server only with sending a HEAD requests and checking the status value of response.All was working so far without problems.Now I changed my internet provider to get a better internet connection / speed etc and I also have a new device / router I do use for this and with that I get always this problem.On the first view all is working as before too but with the diffrent that after I did send some requests (30 - 50) it stops for some seconds and …
-
How to integrate a browser into app?
by LCF-AT- 1 reply
- 4.1k views
Hi guys, I am looking for any engine to build a browser in a app window for MASM.I found some example sources using some IWebBrowser2 (IWB2.inc) but it has no descriptions inside how to use it etc.Just would like to know if there are any hlp file to download to know how to work with it?Also wanna know how save it is using something like this.If I see it right then its using the IE stuff for browsing.In this case I also dont know whether its doable to create a own popupmenu sending data to my app itself you know.Not sure about that yet.Maybe anyone has some hints for me.Below I did attach a example source I found. 9957_Browsertest.zip greetz