Skip to content

Experiencing freeze with ollydbg?

At ollydbg’s Debugging Options, uncheck Registers -> Decode SSE Registers. This should fix the hang up when debugging multi-threaded apps. Sometimes the hang up is caused by the plugins, check if any causing it and remove it accordingly.

Advertisements

Patch for AppLocale

Finally back in action. 🙂 My PC has broke down quite a while ago, spitting random BSOD and eventually met its uneventful death. Amen. Now I am starting a new year with a brand new laptop. 😀 Yay! Okay lets get back to business.

I am a person who frequently use non-English application while running on the default system locale. The result ? Garbage characters in UI as the Microsoft puts it. This is where AppLocale come in, it allows you to run an application in a specific locale without messing around with the default system locale. Unfortunately, for no good reason Microsoft left an annoying message that kept reminds you about “AppLocale is just a temporary solution” whenever you launch AppLocale via shortcut.

So I made a patch to remove the nag. All you have to do is drop the patched AppLoc.exe into C:\Windows\AppPatch\AppLoc.exe and replace it.

Enjoy !


AppLoc.exe Patch
http://opcode0x90.googlecode.com/files/AppLoc.rar

Some Correction

After switching to Code::Blocks, I then realize it is a bug of MinGW and not of Dev-C++’s. The same bugfix too applies to Code::Blocks only with a few difference in the user interface.

For Code::Blocks the directories can be found under Settings -> Compiler. (version 1.0 RC2) Just replace\Dev-Cpp\ with \CodeBlocks\.

After that just follow this link if you still having problem with Code::Blocks:
http://wiki.codeblocks.org/index.php?title=Installing_MinGW_with_Vista

Hope I have clear things up.


Here is a snip that tell us why “ld: XXXXXX.o: No such file: No such file or directory” happens

 

Read more…

wxDev-C++ problems

(Edit: 1 November 2007)
Found out this is a bug of MinGW, and has nothing to do with wxDev-C++ either.

Stumbled into wxDev-C++ problems today, as I tried to compile the template wxWidgets dialog. Refer to my last post about the same old bugs again, and here we got ourself a new problem.

Open up your Compile Log, and there it is:
windows.h: No such file or directory

Another configuration problem, eh? Go to Tools -> Compiler Options -> Directories -> Resource Includes, add this directory.
\Dev-Cpp\include

Problem solved. Hopefully there wont be any pesky config problem anymore. <_<

MinGW bugs under Windows Vista

(Edit: 1 November 2007)
Found out this is a bug of MinGW, and has nothing to do with Dev-C++.

Recently I installed Dev-C++ under Windows Vista, but when I try to compile the template DLL, it gives the following error in compile log.

gcc.exe: installation problem, cannot exec `cc1′: No such file or directory

In Dev-C++, go to Tools -> Compiler Options -> Directories -> Binaries, add this following directory
\Dev-Cpp\libexec\gcc\mingw32\3.4.2

Compile the project again. Okay, now what?

ld: crt2.o: No such file: No such file or directory
ld: dllcrt2.o: No such file: No such file or directory
ld: crtbegin.o: No such file: No such file or directory
ld: crtend.o: No such file: No such file or directory
ld: cannot find -lgcc

(Update: 1 November 2007)
To workaround this errors, you need to do the following steps:

  1. Copy dllcrt2.o and crt2.o from \Dev-Cpp\lib to \MinGW\lib.
  2. Copy crtbegin.o and crtend.o from \Dev-Cpp\lib\gcc\mingw32\3.4.2 (version may vary depending on your mingw version) to \MinGW\lib.
  3. In Dev-C++, go to Tools -> Compiler Options -> Directories -> Libraries, add this following directory
    \Dev-Cpp\lib\gcc\mingw32\3.4.2
    (again, version may vary depending on your mingw version)

Compile your project, it should work now. Now I try to compile the C version, oh no more errors.

In file included from dllmain.c:3:
C:/Dev-Cpp/include/windows.h:47:20: stdarg.h: No such file or directory
In file included from C:/Dev-Cpp/include/winnt.h:37,
from C:/Dev-Cpp/include/windef.h:253,
from C:/Dev-Cpp/include/windows.h:48,
from dllmain.c:3:
C:/Dev-Cpp/include/string.h:24:20: stddef.h: No such file or directory
In file included from C:/Dev-Cpp/include/winnt.h:37,
from C:/Dev-Cpp/include/windef.h:253,
from C:/Dev-Cpp/include/windows.h:48,
from dllmain.c:3:

blah blah blah

Here’s the fix. In Dev-C++, go to Tools -> Compiler Options -> Directories -> C Includes, add this directory
\Dev-Cpp\lib\gcc\mingw32\3.4.2\include
(I dont want to repeat that again)

Okay now everything is working. Hopefully these should solve your problem regarding compiling with Dev-C++ under Windows Vista.

crackme_nop – Full Solution by alex_ls

Been inactive for quite a while, real life stuff made my life real busy. Finally a little break to update this dying blog.

Few things to update. First, I decided to move to another file hosting as the old file hosting been down for a long time. (and their promise to move to new server results in lost of all my uploaded files. -_-“) Now all the uploaded files is located in easy-share.com. Some files is lost, as I dont have a copy in my hard drive. If you are interested with that project, let me know. I might consider to recode the whole thing.


Okay back to the topic. Finally someone who is really good (or probably have to much time to kill, lol j/k) solved my first crackme.Here is a snip of his solution. (only the hash/algorithm part) Read more…

MAC Address spoofer

A brief introduction to MAC address. Its the address your network adapter used to communicate with the router, a layer deeper before IP address. It actually tells the router which network adapter to direct the traffic to, so MAC address is also known as physical address.

The last 3 bytes of MAC address represents Organizationally Unique Identifier (OUI), aka manufacturer of your network card. Let us take MAC address “00-08-74-4C-7F-1D” as an example, the “00-08-74” is the OUI of Dell Computer Corp, therefore we can safely imply your PC is a also a Dell.

MAC address is hard-coded within your network adapter, because it is supposed to be constant and not to be changed. But there is a reason why would you override it, just because you can. 😉

Its pretty much a registry hack, and might not work for some cases. This program is written in VB6 with source code included. It demonstrates how to reset the network adapter using your own code, in which requires access to COM objects that doesnt support IDispatch interface such as INetConnectionManager. It also demonstrates how to retrieve the MAC address through GetAdaptersInfo() API.


MACSpoof
http://opcode0x90.googlecode.com/files/MACSpoof.zip

 

%d bloggers like this: