Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: How to set up ndiswrapper

  1. #1
    Just burned his ISO
    Join Date
    Jan 2006
    Posts
    22

    Default How to set up ndiswrapper

    ==How to get ndiswrapper working==

    Warnings
    • ndiswrapper will not allow you to use wireless tools such as aireplay, only access the internet and network normally
    • You will need a HD-install
    • You will need internet access from Back|Track
    • I am assuming you already have your driver files accessible by Back|Track
    • I found that the kernel module posted on this site does not contain all required files (Tutorial works around this)
    • I'm a n00b and I take no responsibility for destorying your nicely configured HD-install
    • This will take a while!

    Ok, lets go:

    1. Boot Back|Track
    2. Open a console and type (where eth0 is your network card)
      Code:
      dhcpcd eth0
    3. Open Konqueror and download Development Module, Kernel Source and ndiswrapper source
    4. Open a console and type
      Code:
      mo2dir Official_Development_module_5_1_4.mo /
    5. Once it's finished close the console and open Konqueror and go to /root
    6. Open linux-2.6.15.6.tar.gz
    7. Right click on the linux-2.6.15.6 folder and click copy
    8. Open another Konqueror window and go to /usr/src
    9. Right click and click paste
    10. Once done, close that konqueror window and go back to the previous one
    11. Go to /proc
    12. Double click config.gz, Ark will open
    13. Click extract (Purple button) and extract to 'file:///root/
    14. Close Ark and open a console
    15. Type
      Code:
      cd /usr/src/linux
      make menuconfig
    16. The linux kernel configuration menu will come up
    17. Go to 'Load an Alternate configuration file'
    18. Remove what's there (.config) and type /root/config
    19. Go to 'Exit' and when asked, say yes to saving
    20. You are now back at a console, type
      Code:
      make clean
      make
      This will take ages, ignore any warnings which show.
    21. Then type
      Code:
      make modules_install
      make install
      ===Reboot===

    22. Open konqueror and go to /root
    23. Open ndiswrapper-1.17.tar.gz
    24. Right click on ndiswrapper-1.17 folder and click copy
    25. Go back to /root
    26. Right click and click paste
    27. Open a console and type
      Code:
      cd ndiswrapper-1.17
      make
      make install
      ndiswrapper -i <PATH TO YOUR .INF DRIVER FILE>
      ndiswrapper -m
      modprobe ndiswrapper


    DONE!

  2. #2
    Just burned his ISO
    Join Date
    Jun 2006
    Posts
    1

    Default

    Sorry I'm really new to all of this.
    I got everyting to work until the last line of modprobe ndiswrapper.
    It spits back-Error inserting ndiswrapper (/lib/modules/2.6.15.6/misc/ndiswrapper.ko): Invalid module format.
    I'm sure I'm just missing something, but any help would be appreciated.
    Thanks

  3. #3
    Junior Member markds's Avatar
    Join Date
    May 2006
    Posts
    49

    Default

    Toadie,

    Try :

    modprobe -f ndiswrapper

    This will force the module to load despite version differences.

  4. #4
    Just burned his ISO
    Join Date
    Jun 2006
    Posts
    1

    Default

    in my proc folder isn't any file.....why?? what can i do??

  5. #5
    Just burned his ISO
    Join Date
    Jan 2006
    Posts
    22

    Default

    Quote Originally Posted by markds
    Toadie,

    Try :

    modprobe -f ndiswrapper

    This will force the module to load despite version differences.
    Ha! I didn't know you could bypass the version check... That's why my tutorial involves recompilation of the kernel *slaps forehead*

  6. #6
    Junior Member markds's Avatar
    Join Date
    May 2006
    Posts
    49

    Default

    Quote Originally Posted by darkip
    Ha! I didn't know you could bypass the version check... That's why my tutorial involves recompilation of the kernel *slaps forehead*
    its one of the first things you learn (albeit the hard way) when you mess around with the kernel and drivers. In my line, we got no time to make it pretty - we just make it work.

    If you want to avoid the "-f" option, just open hexedit and edit the ndiswrapper.ko and change gcc-3.4.x to gcc-3.3.x. Need to check dmesg to find out exactly what the version conflict was and edit the ndiswrapper.ko file accordingly with hexedit.

    The modules for wpa_supplicant with madwifi support and ndiswrapper that I made (without recompiling the kernal :P) and distributed to some members are working fine. If you come across anyone else who wants them, point them my way and I'll mail it to them - its just too big to upload here.

    EDIT : 30th July 2006

    The ndiswrapper module and wpa_supplicant modules I created can now be downloaded from here:

    http://137.132.19.24/security_course...x-mod/ndisw.mo
    http://137.132.19.24/security_course...-mod/wpasup.mo

    Instructions for both are here :

    http://137.132.19.24/security_course...d/ndis_wpa.txt

  7. #7
    Just burned his ISO
    Join Date
    Jul 2006
    Posts
    2

    Default

    HElP! i followed all instructions, installed the inf for my wpc54g linksys card, did a ndiswrapper -l and it said driver was installed and all was good, but when i did a modprobe ndiswrapper it said fatal: modlue ndiswrapper not found!? wtf? pls help

  8. #8
    Junior Member markds's Avatar
    Join Date
    May 2006
    Posts
    49

    Default

    Quote Originally Posted by trekkie711
    HElP! i followed all instructions, installed the inf for my wpc54g linksys card, did a ndiswrapper -l and it said driver was installed and all was good, but when i did a modprobe ndiswrapper it said fatal: modlue ndiswrapper not found!? wtf? pls help
    Whose instructions did you follow? You can download the ndisw.zip from the sites I listed in my post and try that. That one works for sure.

  9. #9
    Just burned his ISO
    Join Date
    Jul 2006
    Posts
    2

    Default

    i followed the instructons by darktip in this thread, i do not see the link to ndisw.zip, pls repost that

  10. #10
    Junior Member markds's Avatar
    Join Date
    May 2006
    Posts
    49

    Default

    ndisw.mo in post #6. Its right there.

Page 1 of 2 12 LastLast

Posting Permissions

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