2of1
half a nibble of another

Home
Projects
About
Jul

04

DC9723 – Exploiting LD_PRELOAD slides and code examples

Filed Under (C, Code injection, Coding, Compilers, DC9723, Hacking, Linux, Linux kernel, Open source, Reverse engineering, Social, Tips & tricks) by 2of1 on 04-07-2011

Here are the slides and code examples of the talk that I gave at the 7th DC9723 meet a few weeks ago.

To all those that came; thanks – I hope you found it interesting!

No Comments
Read More
Mar

21

Cross-compiling x86 from x86_64

Filed Under (C, Coding, Compilers, Linux, Open source, Tips & tricks) by 2of1 on 21-03-2011

Here are two easy ways to compile 32-bit binaries on a 64-bit system.
Read the rest of this entry »

No Comments
Read More
Aug

23

Cross-compiling a Qt win32 app on Linux

Filed Under (Coding, Compilers, Linux, Open source) by 2of1 on 23-08-2010

I’ve been looking for a way to compile an app developed with Qt Creator on Linux for Windows.

I came across this but I needed to tweak it before it worked so I decided to blog my own mini-guide (tested working with with Qt 4.6.3).

This assumes that you already have the Qt SDK (for Linux) installed.

  1. The first thing to do is download and install the MinGW cross compiler
  2. Then download the Windows version of the Qt SDK. As it’s distributed as a Win package, you’ll need to either install it on windows and copy the necessary files across to your linux distro (what I did) or install it through Wine (not sure if this even works). You can cross-compile it as well if you’re being adventurous
  3. Place the Qt Win SDK libraries in /usr/lib32/qt4win32 and headers in /usr/include/qt4win32
  4. Copy /usr/share/qt4/mkspecs/win32-g++/ to /usr/share/qt4/win32-x-g++/
  5. In the above directory, replace qmake.conf with the one found here
  6. Make sure that the paths in qmake.conf match those of your system (see NOTE below); specifically QMAKE_CXX, QMAKE_LINK, QMAKE_INCDIR, QMAKE_INCDIR_QT, QMAKE_LIBDIR_QT
  7. Run qmake adding –spec win32-x-g++ command line arg. This should cross-compile your app.

NOTE: As my linux box is a x86_64, my /usr/lib is /usr/lib32. Please adjust this accordingly for your setup.

(2) Comments
Read More
Jul

22

Direct2D headers for MinGW and mingw-w64

Filed Under (C, Coding, Compilers, Direct2D API, Open source) by 2of1 on 22-07-2010

I wrote some Direct2D compatibility headers to allow for cross-compilation using MingW or mingw-w64.
Read the rest of this entry »

No Comments
Read More
Jul

22

MinGW Direct2D headers – vftable issue

Filed Under (C, Coding, Compilers, Direct2D API, Open source) by 2of1 on 22-07-2010

A while back I wrote a tool to build Direct2D api headers off the public information on MSDN.

Yesterday I noticed that my vlc patch – while compiling fine – crashes on a certain D2D API call.

The reason for this it seems that my generation tool pulls off the API from MSDN in the order that it appears there – i.e. alphabetical order.
Read the rest of this entry »

(3) Comments
Read More
  • Recent Posts

    • GlitchMeister 1.0 – Simple, Stupid FPGA-based Glitcher
    • Friends; this memcmp() implementation?? Really!!!??
    • Decoding obfuscated strings in What’s App Dalvik Executable bytecode
    • Seculert’s Malware Reverse Engineering Challenge
    • Removal of Themida reverse engineering posts
  • Archives

    • February 2013
    • October 2012
    • July 2012
    • June 2012
    • May 2012
    • April 2012
    • January 2012
    • September 2011
    • August 2011
    • July 2011
    • May 2011
    • March 2011
    • February 2011
    • January 2011
    • November 2010
    • October 2010
    • September 2010
    • August 2010
    • July 2010
    • June 2010
  • GitHub

    2of1 does not have any public repositories.
  • qrcode

  • Site Search

  • Categories

    • Apps (7)
      • Preloader (1)
      • Symbian S60 (1)
      • VLC (4)
      • Wordpress (1)
    • Coding (32)
      • Assembly (1)
        • ARM (1)
      • C (15)
      • Compilers (5)
      • Direct2D API (4)
      • Linux kernel (3)
        • Drivers (1)
      • Networking (4)
      • Python (1)
      • Sqlite (1)
      • Version control (5)
        • Git (5)
      • VHDL (1)
    • Hacking (12)
      • Code injection (1)
      • Reverse engineering (9)
    • Hardware (6)
      • Arduino (1)
      • PCBs (3)
    • Linux (22)
      • Bash (1)
      • Tips & tricks (13)
      • Virtualization (1)
      • VNC (2)
      • Xmonad (1)
    • Open source (39)
    • Other stuffs (4)
    • Social (4)
      • DC9723 (2)
  • OctoFinderProgramming Blogs - Blog Catalog Blog Directory

    Locations of visitors to this page

© 2of1.