Programming and Coding
Programming and coding tips, help and solutions...
1,877 topics in this forum
-
VB.NET Trainer Template
by Caliber.- 5 replies
- 9k views
File Name: VB.NET Trainer Template File Submitter: Caliber. File Submitted: 01 Mar 2011 File Category: Source Code GencliQ Cracking Team Trainer Template & Source Code Compiler : VB.NET Author : zugo & Caliber Click here to download this file
-
Writing a Simply debugger
by ragdog- 5 replies
- 9.9k views
Hi I Write a simply debugger in masm32 now have i a problem why crash it the Target If set a Bp by other Address Test Target if "crackme.upx.exe" from Apox Set i a BP by 004082AF works it fine But set i a bp by 004082A8 or other address if my Bp not reached and the target crash it ;004082A6 .^\EB E1 JMP SHORT 00408289 ;004082A8 > FF96 54850000 CALL DWORD PTR DS:[ESI+8554] ;004082AE > 61 POPAD ;004082AF .- E9 0C90FFFF JMP 004012C0 ;004082B4 00 DB 00 mov eax,004082A8h mov [bpAddress],eax invoke SetBP,eax ;Set a Int3 Breakpoint ;from winhex if INT3 written ? ;and Yes if written ;EBE1(CC)965485 .while TRUE invoke WaitForDebug…
-
Collection.of.Delphi.Examples.v2.7
by CodeExplorer- 0 replies
- 3.1k views
Collection.of.Delphi.Examples.v2.7 by Cin TEAM />http://www.mediafire.com/?p0gzngq1q6hsgoa
-
C# Keygen and Solution
by argv_arteam- 5 replies
- 7k views
Hi. I wanted to ask a small favor if anyone has some spare time. I guess most of you could do it in 15min or so. I am working on a project but I don't want bla bla bla about that and I found myself in need of C# Keygen and also solution. While I may be one of best ARM Assembly guys around, C# is really not my thing. So, I was thinking something in these lines: 1. Make a "standard" C# keygen 2. Put a small "twist" in it (if possible). By that I mean a small obstacle. Anything you can think of. 3. Make a solution. 4. PM me the stuff. If anyone could do it I would be very grateful and if you need something from ARM world, just let me know and it is done. I hope you understoo…
-
exe/dll
by deepzero- 7 replies
- 4.3k views
Hi, I´m trying to create an .exe file, which can be used as a dll file at the same time. Take, for example, this piece of code: #include <Windows.h>BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { MessageBoxA(0,"dll","dll",0); } int main() { MessageBoxA(0,"exe","exe",0); } Just executing it like any other exe will run int main(). Now, the idea is that when this .exe file is loaded via LoadLibrary DllMain is called as if it was a dll. Is this actually possible? Or is there any other way the exe gets notified when it is LoadLibrary loaded? deep
-
Compressing floats in a tiny format
by hmi222- 6 replies
- 3.7k views
Hi. I want to store floats in a tiny format. As small as possible eg to 8bit or 16bit. Anyone an idea how that could be done? I need to have a precicion of 3 digits behind the comma. Thanx in advance
-
VB.NET 2008 Simple Debugger CORE
by Kurapica- 0 replies
- 3.3k views
This is an old Project to create a debugger core using VB.NET 2008 ofc it's not the best choice to code a debugger not because it's weak ! but because VB.NET doesn't support unsafe code like C# so you will have to add extra lines of code to pass structures between managed and native code. this Project requires some knowledge of Marshaling techniques, i.e passing data structures between native and managed code. I hope someone will find it useful all comments are welcome ofc P.S : It won't work on XP because I used a new API which is only supported by Vista and later OS, this API is "GetFinalPathNameByHandleW" ofc it can be wrapped using some other techniques to …
-
Methods Parser Source Code
by Kurapica- 2 replies
- 5k views
This is the full source of this little tool, I hope someone will find it useful as you can see It was a 2 day tool so don't expect too much but I commented the code well The Project is coded with Visual studio 2008 using C# Any comments are welcome, you can use this code as you like but It will be nice if you give some credit to Black Storm TEAM... />http://portal.b-at-s.net/download.php?view.479
-
Multi-Threaded Debugger-Injector *Delphi Source
by Kurapica- 0 replies
- 3k views
This is a simple multi-threaded debugger which can be used to inject a DLL into a creatable process and detaches from the process before it starts. It can be used for many purposes... Works like a charm on Windows 7 Source code is included in Delphi Pascal />http://portal.b-at-s.net/download.php?view.480
-
Using RuntimeTypeHandles to improve Memory of .NET Apps
by CodeExplorer- 4 replies
- 5.1k views
Using RuntimeTypeHandles to improve Memory of .NET Apps />http://www.bryancook.net/2009/07/runtimetypehandle-performance-memory.html
-
VB.net LateBinding?
by high6- 2 replies
- 19.4k views
Does the VB.net compiler using LateBinding or is this a feature of the obfuscator being used? And what is LateBinding? Is it just helper functions for reflection? public static byte[] Ã?a????Ã?öo??aâ?I(string Ã?????ÕoÓ??o??â??) { byte[] buffer2 = Ã?Å?Ò??áu????óaaÂø?oÃ(Convert.FromBase64String(Ã?????ÕoÓ??o??â??)); using (object obj2 = new MemoryStream()) { int num = BitConverter.ToInt32(buffer2, 0x0); object[] arguments = new object[] { buffer2, 0x4, buffer2.Length - 0x4 }; bool[] copyBack = new bool[] { true, false, false }; NewLateBinding.LateCall(obj2, null, "Write", arguments, null, null, copyBack, true); if (copyBack[0x0]) { b…
-
calloc question
by ToMKoL- 6 replies
- 7.5k views
I've got question about calloc. From what i know calloc uses two paramas - size of element & number of elements. It allocates memory of size of elements * number of elements and returns a pointer to that memory in eax. Memory allocated is filled with 0. My question is what is in four bytes before the pointer? I.e.: push size of elements push number of elements call calloc ;now eax holds pointer to mem mov edx,[eax-4] - what will be in edx Is it totally random or is it somehow determined?
-
custom string class: memory leak
by deepzero- 5 replies
- 5.4k views
hi guys, i was trying to implement a custom string class for practicing purposes, but i hit a problem regarding memory leaks... to be more precise, the problem is the substring-method: substr(int start, int length); to be used like this: mystring a = "deepzero"; mystring b = a.substr(4,4);//b == "zero" or MessageBox(0,a.subtr(4,4),"test",0); the problem is: when i create the substring, where do i store it? When i allocate space on the heap, it wont be freed anymore... So i figured i`d have .substr() return a mystring object (containing the substring): mystring mystring::substr(int start,int len) { //ptrtostr == pointer to the actual char-array which stores t…
-
PELOCKnt decryptor
by bigboss-62- 3 replies
- 9.3k views
Yohoo guys, I'm proud to present my new decryptor: PELOCKnt decryptor v1.0. This one is based on my previous BJFnt decryptor, because PELOCKnt is an update release of BJFnt. It currently has support for PELOCKnt v2.01, v2.03 and v2.04. (I haven't actually PELOCKnt v2.02) If someone have a copy of PELOCKnt v2.02, don't hesitate to send me it... I will include support in my decrypter... As usual, source code in masm and cryptors are also included for interested ones... Any comments, bug reports or others are welcome... See you soon ... Laurent aka BIGBOSS from COPs CPS!UnPELOCKnt_v1.0.zip PELOCKnt_v2.01.zip PELOCKnt_v2.03.zip PELOCKnt_v2.04.zip
-
[c++ snippet] MD5 of string using wincrpyt API
by deepzero- 0 replies
- 7.4k views
Hi, I always thought calculating the MD5 digest of a string required adding external code, i was using this: http://www.zedwood.com/article/121/cpp-md5-function which works fine. I was messing around with Windows crypt api, and noticed one can easily calculate the digest using WinCrypt APIs: string MD5(string input) { HCRYPTPROV CryptProv; HCRYPTHASH CryptHash; BYTE BytesHash[33];//! DWORD dwHashLen; string final; if(CryptAcquireContext(&CryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT | CRYPT_MACHINE_KEYSET)) { if(CryptCreateHash(CryptProv, CALG_MD5, 0, 0, &CryptHash)) { if(CryptHashData(CryptHash, (BYTE*)input.c_str(), input.le…
-
breaking nicely out of nested loops
by deepzero- 5 replies
- 5.6k views
hi, everyone seems to hate on the use of "goto" commands in c/c++ and i dont like it too much myself, but i dont see any other way with nested loops: good: for(...) { if(...) break; } not good: for(...) { for(...) { for(...) { if(...) goto done; } } }done: ... any "better" or "cleaner" way, avoiding the goto commmand?
-
- 1 reply
- 3.3k views
Reflection - The Java Reflection API With the introduction of Java Beans was also the birth of Reflection (formerly " Introspection ") forced initiated because objects were previously found only in static structures. This in turn meantthat the classes had already at compile be available. Because of this fact but the genericapplication form request can not be extended to the interface of a plugin, corresponded, it wasdecided to introduce a new technique? Introspection (later Reflection ). The term Reflection here means that programs which are a generic design to be able put in for herclasses (unknown such as by direct user input) to create instances of objects. The Ref…
-
- 0 replies
- 3.3k views
Calling invokedynamic in Java DynamicIndy There is no way to invoke invokedynamic using the Java language. So testing invokedynamic is not that obvious if you don't have your own dynamic language. I've developed a small class DynamicIndy that uses ASM 4.0 (not an official release) to generate a static method that calls invokedynamic. These static method is after converted to a MethodHandle that can be called in Java. invokedynamic
-
- 4 replies
- 3.2k views
My problem is how build driver for Windows7 64Bits... i don't understand o how can make driver for this OS... I've downloaded WDK 7600.16385.1 and use for build my simple driver for XP but now, I want o to make for W7 but i have problem..? "build driver on windowsxp 32 bits for windows7 64 bits" How?
-
"Hooking" into Java App Engine
by CodeExplorer- 1 reply
- 7.5k views
"Hooking" into Java App Engine />http://blog.appenginefan.com/2009/10/hooking-into-java-app-engine.html
-
Visual Basic Bassmod Source Code... 1 2
by Teddy Rogers- 1 follower
- 26 replies
- 14.5k views
Here is some Visual Basic source code from Black Byte to use BassMod to play XM and MOD tunes... Ted. bLaCk_bytE_XM_MOD___FULL.RaR
-
I need help to uncap fps in games
by iVanisher- 2 replies
- 5k views
Hello everyone. The reason of this topic is because I want to make a program to uncap the framerate of some games. I got inspired when I saw some patches achieving unlimited fps on games capped at 30 fps. (Blade Kitten, Transformers: War of Cybertron, Star Wars: The Force Unleashed, etc). I tried to do a d3d hook and also tried to look at those patches in Olly (some of them were packed with PECompact/UPX) but unfortunately my reversing skills are still too weak to know what they did... so in the end I had no success... I'm asking for some help as there are very talented and experienced people here at tuts4you. I really want to know how to do this, specially for learning p…
-
String compression algorithms
by CodeExplorer- 3 replies
- 5.6k views
String compression algorithms: 1. First simple algorithm: Input string "Acccc"; We store first 2 chars "Ac" + a char: - first bit should be set whit 1 for marking that we have a compression here - rest of bits will filled whit numbers of duplicates - under this case 3 "Acccc" -> Ac[3] 2. Second algorithm: Input string "the Udrea, the Basescu"; * We store "the Udrea, " + First char: - first bit should be set whit 1 for marking that we have a compression here - rest of bits will filled whit the lenght of duplicate string - under this case Second char: - all bits should contain the position from where to take the string - under this case 11 "the Udrea, the Basescu…
-
How to protect .NET/Native Applications
by Aguila- 0 replies
- 3.8k views
If I create an application with managed and unmanaged code (mixed assemblies), how can I protect it? I tried already: Themida v2 Smartassembly v4 DotFuscator Community Edition DotNet Reactor v4 MPRESS v1 All create a corrupted PE file. Somebody know any working protector? Is there any sourcecode obfuscator available for C#? I attached an example file... i_ufmod.rar
-
- 2 replies
- 2.7k views
As it happens, I'm not the first to look into this particular algorithm: the full listing of the decompression routine with some annotations is available on a Chinese blog. I've already been able to write a "poor man's compressor" for it (well, with compression rate 0 so it actually increases the file size), but I'd like to know what algo it is. I suspect it's a readily available open source algo but I have no experience whatsoever with compression algorithms so I figured someone here might know more than I do about the topic. I'm also attaching a small file packed with it. When decompressed, it's actually a resource file with some strings and a bitmap in it. packed.zip