Results 1 to 3 of 3

Thread: [Fix] mdk3-v5 compiling with gcc-4.3

Hybrid View

  1. #1
    Member
    Join Date
    Jan 2010
    Posts
    140

    Default [Fix] mdk3-v5 compiling with gcc-4.3

    I know this has been covered in a couple of threads.
    http://forums.remote-exploit.org/sho...highlight=mdk3
    http://forums.remote-exploit.org/sho...highlight=mdk3
    But the solution was more of a workaround with gcc-4.2 then an actual fix. Mdk3 uses some code from aircrack-ng in the osdep directory, so I used some of that code for linux.c and just updated the file. Additionally there were some innocuous warnings from the printf() statements in mdk3.c. eg.:
    Code:
    ...
    mdk3.c:3348: warning: format not a string literal and no format arguments
    mdk3.c:3364: warning: format not a string literal and no format arguments
    ...
    The following is a patch to compile mdk3-v5 with gcc-4.3.

    First, download the code and unpack it.
    Code:
    # wget http://homepages.tu-darmstadt.de/~p_larbig/wlan/mdk3-v5.tar.bz2
    # tar -jxf mdk3-v5.tar.bz2
    # cd mdk3-v5
    Now, open up your favorite text editor and create a file called mdk3-v5-gcc-4.3.diff.
    Code:
    # nano mdk3-v5-gcc-4.3.diff
    Paste the following code from http://pastebin.ca/1389806 into mdk3-v5-gcc-4.3.diff. The text box near the bottom of the page can be used to easily copy and paste the patch code. Save mdk3-v5-gcc-4.3.diff in the current working directory which should be the mdk3-v5 directory.
    Now patch, compile and install mdk3.
    Code:
    # patch -p1 < mdk3-v5-gcc-4.3.diff
    # make
    # make install

  2. #2
    Just burned his ISO
    Join Date
    Aug 2007
    Posts
    12

    Default

    I see this post is old but, anyone notice the gibberish the bruteforce mode generates? ie: your SSID length is 3, yet MDK is on a roll with "dfhkxc24 &&#"

    Well I have a small fix, below line 3448: (add the function on line 3449) add the following to mdk3.c,

    memset(brute_ssid, '\0', 256);

    load up wireshark, you will see your bruteforce now normalized and not filled with garbage, same for the output.

  3. #3
    Very good friend of the forum Virchanza's Avatar
    Join Date
    Jan 2010
    Posts
    863

    Default

    This is the first I've seen this thread.

    This "fix" is useless, there's nothing that needs to be fixed, the source code for mdk3 is absolutely fine.

    The only problem with mdk3 is the makefile that's distributed with it, in that it treats warnings as errors. The latest version of GCC contains more warnings than previous versions, and because the makefile is set to treat warnings as errors, the compilation is failing.

    The solution is to fix the makefile, simple as. You just remove the compiler flag that says "Treat warnings as errors".
    Ask questions on the open forums, that way everybody benefits from the solution, and everybody can be corrected when they make mistakes. Don't send me private messages asking questions that should be asked on the open forums, I won't respond. I decline all "Friend Requests".

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •