Programming and Coding
Programming and coding tips, help and solutions...
1,876 topics in this forum
-
[Delphi]rad music player
by JustAGuy- 0 replies
- 3.7k 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.6k 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
- 12.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.4k 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.5k 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.1k 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.2k 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
- 37.6k 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
- 3.8k 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
-
Make anticheat for unity engine
by er132- 4 replies
- 11.8k views
Hi im trying to code anticheat in c# for unity games But i cant detcted dll injection actually i try loaded dll and moudel but itsnt work becuse its mono inejection Any buddy can help me?
-
- 1 reply
- 3.9k views
I would like to know how most of the software developers create their own licensing key system. I would like to create my own one for my software application. I believe it is something related to cryptography. As I am already using Crypto++ library in my application for MD5 and SHA1 hashing, I would be happy and thankful if someone with expertise explain to me how to do it. NB: I mainly use C++ in my coding. Also, I need it to be related to a hardware number obtained from a USB connected SIM card in the format of 123456789, so the end-user will only send me that number and I will send him back the license key. TIA.
-
- 6 replies
- 4.7k views
Hi guys, I have a small question and dont remember anymore the answer at the moment so maybe you could help quickly. How was it going to load a module / dll into own & other process without to execute the init / run of the dll?Normaly if I am using LoadLibrary / Ex function the dll was running the init = did run on time from EP etc.In my case I wanna load the dll then changing some code in the dll and then it should process the init / EP etc you know what I mean right? In OllyDBG its like if you would enable the option "Break on new module".If Olly stops then I can see whole dll code in memory map and can also set a BP at EP for example to stop there.…
-
HTTPS Autorepsond without Fiddler
by Rekky- 8 replies
- 4.4k views
Hello everyone I want to code program or dll to hook it with application that I've to bypass it atm I'm using Fiddler to auto respond the url requested but I need to keep the Fiddler running all of the time and I don't want that if I could code a program or dll like I said and set it only flag specific url and change it to another custom respond Thank You.
-
how to create empty object in IL?
by abbas- 1 reply
- 3.5k views
hi anyone can help?
-
leftrotate in SSE
by CodeExplorer- 1 reply
- 6.2k views
Having those different ways of doing leftrotate: versus: Which one would you choose? The second one without temporal variable? The speed difference seems to be small - can be a speed calculation bug.
-
MaxSpeedHighLevel in Visual Studio ???
by CodeExplorer- 4 replies
- 4.4k views
I use Visual Studio 2010 Enterprise! In a Visual Studio project barswf_cpu.vcxproj I've saw this <ClCompile> <Optimization>MaxSpeedHighLevel</Optimization> Apparently this value is not valid, https://docs.microsoft.com/en-us/cpp/build/reference/o-options-optimize-code?view=vs-2019 I've replaced that (MaxSpeedHighLevel) with: <ClCompile> <Optimization>MaxSpeed</Optimization> Now compiles, the problem is that speed is of 45 MHashes/second instead of 60 MHashes/seconds (in already compiled exe by someone else) - so the speed is 25% slower. Anyone know what is with MaxSpeedHighLevel ??? And …
-
- 6 replies
- 4.9k views
Detecting Advanced Vector Extensions (AVX) support in Visual Studio??? https://insufficientlycomplicated.wordpress.com/2011/11/07/detecting-intel-advanced-vector-extensions-avx-in-visual-studio/ The problem is that I have Visual Studio without Service Pack so _xgetbv method can't be used! Any other ways to detect if a CPU hash AVX?
-
Unable to use printf in CUDA!
by CodeExplorer- 3 replies
- 4.4k views
Unable to use printf in CUDA! Having this code: __global__ void md5_gpu_bruteforce_thread(unsigned int *data_d, unsigned int *result_d, unsigned int pwd_len, int charset_len) { printf("Hello from block %d, thread %d\n", blockIdx.x, threadIdx.x); Error: C:/BarsWF-master/algo/md5/md5_kernel.cu(77): error : calling a host function("printf") from a __device__/__global__ function("md5_gpu_bruteforce_thread") is not allowed
-
__m128i definition in BarsWF SSE2 project
by CodeExplorer- 1 reply
- 4.9k views
Hi again. BarsWF once again. So the CUDA project I got it working. The SSE2 project is still bogus. I could notice only these warning: 1>LINK : warning C4743: 'union __m128i sse2_nodata' has different size in 'C:\BarsWF-master\md5.cpp' and 'C:\BarsWF-master\global.cpp': 18 and 16 bytes .... 1>LINK : warning C4743: 'union __m128i gpu_mask_2_128' has different size in 'C:\BarsWF-master\algo\md5\algo_md5.cpp' and 'C:\BarsWF-master\global.cpp': 18 and 16 bytes In global.h is defined as fallows: extern global_data *g; //:-[ Not reliable as class member extern __m128i gpu_mask_2_128; extern __m128i CONST_MAX128,sse2_nodata,sse2_lendata,ta…
-
Poco lib in Visual Studio 2010 project
by CodeExplorer- 1 reply
- 3.7k views
I have a project which includes barswf_cpu - in this one there is no POCO_STATIC; in Preprocessor Definitions in two other subprojects barswf_brook and barswf_cuda there is POCO_STATIC; in Preprocessor Definitions: in those subprojects when it tries to execute: g->log->information("------------------------------"); g->log->information("BarsWF started"); it crushes when tries to allocate memory! msvcr100.dll!operator new(unsigned int size) Line 63 + 0x1a bytes C++ barswf_brook.exe!std::allocator<char>::allocate(unsigned int _Count) Line 187 + 0x12 bytes C++ > barswf_brook.exe!std::basic_string<ch…
-
Visual Studio 2010 include library???
by CodeExplorer- 7 replies
- 4.5k views
Visual Studio 2010 include library: So I once again have a question: I need to include: https://github.com/jmendeth/ccv15/tree/master/libs/poco I found this info: https://docs.microsoft.com/en-us/cpp/build/walkthrough-creating-and-using-a-dynamic-link-library-cpp?view=vs-2019 So the first thing I do is copy "include folder" to D:\BarsWF-master\Poco and that thing seems to work just fine. Now the compiler complains: 1>LINK : fatal error LNK1104: cannot open file 'PocoFoundationmtd.lib' Already tried Project Properties -> Linker -> Additional Library Directories No good result!
-
Any working Ace Extrator on C++ ???
by CodeExplorer- 13 replies
- 4.3k views
Any working Ace Extrator on C++ ??? https://github.com/ipr/qXpkLib https://github.com/ipr/qXpkLib/tree/master/xadACE missing the Extract Entry method! ftp://madmike.ml/Downloads/Software/Archivators/Ace32/UNACESRC/UNACE.C this is in C - DOS and I don't know how to open/compile it https://github.com/droe/acefile/blob/master/acefile.py python Generic tut https://www.roe.ch/acefile Already tried: Anyway: it doesn't work!
-
emplace syntax - error fixing:
by CodeExplorer- 3 replies
- 4k views
emplace syntax - error fixing Having this original method: Source code location: https://github.com/cr-marcstevens/sha1_gpu_nearcollisionattacks/blob/master/contrib/program_options.hpp I am trying this: inline void store(const variables_map& src, variables_map& dest) { // append values in src to dest // for (po::variables_map::iterator it = vm.begin(); it != vm.end(); it++) { // for (auto& l_p : src) for (program_options::variables_map::const_iterator l_p = src.begin(); l_p != src.end(); l_p++) { // for each (std::string s in…
-
need help on this regex pattern
by abbas- 3 replies
- 3.9k views
tried some online services saying wrong format blah blah... Spoiler ^"\/Date\((?<ticks>-?[0-9]+)(?:[a-zA-Z]|(?:\+|-)[0-9]{4})?\)\/"
-
- 0 replies
- 3.6k views
hi all currently stuck on FromJason(). googled for hours but every thing i pass to it, raises exception. Spoiler {System.Resources.MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure ".resources" was correctly embedded or linked into assembly "netutilities" at compile time, or that all the satellite assemblies required are loadable and fully signed. at System.Resources.ManifestBasedResourceGroveler.HandleResourceStreamMissing(String fileName) at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(C…