Adding CIFS support to Ophcrack (SliTaz)
Hi, I've used linux for basic things in the past but I'm afraid I need to recompile a kernel and I don't even know where to get started. There's so much information on google and I'm not familiar with the terminology to even know how to effectively search for what I'm looking for.
Basically, I'm loading Ophcrack via TFTP/PXE, but I want to be able to mount one of the shares on my samba server instead of it looking for a /tables/ folder on the current device. I already know how to modify the launch.sh script to get it to do what I want, however I'm stuck on how to mount a samba share through CIFS. Code:
modprobe mount.cifs Code:
su |
Try running:
# modprobe cifs and see if that helps. I think you just have the kernel module name wrong for starters. Then check this out for how to mount using cifs with the mount.cfis command: http://www.samba.org/samba/docs/man/...nt.cifs.8.html As you can see from the above, mount.cifs is a command, not a loadable kernel module. Once you load the cifs module, you should have access to the mount.cifs command.If you google around you can probably find some examples to get you on the right track. |
In my research, I've learned that the linux-cifs package does not do much by itself, but rather is a dependency of samba, so I installed samba by doing the following:
Code:
su Code:
tazpkg get-install libcrypto still returns "module not found". # modprobe samba also returns an error even though I've successfully started samba. I guess I'm confused as to how to mount a networked samba share using cifs... |
Samba is not a kernel module, so it has not to be loaded into the kernel. There are to possibilities why the is no kernelmodule "cifs" in your system:
1. Your kernel was built with the "cifs"-functionality built right into kernel, so there is no need to load a module. 2. Your kernel was built with the complete lack of the "cifs"-functionality. In this case you have to build a new kernel. Looking at you mount-command (and the failure of it) from the first post I wonder if your share's name is really pxeboot/ophcrack/tables/XP/ ? Please post your smb.conf and the full output of your mount-command from the first post. |
If it helps, here's my xterm so you can see what I'm doing...
Code:
tux@slitaz:~$ su Also, # find / smb.conf returned No such file or directory. Where would this be located? |
The smb.conf should be located on your server, in the folder /etc/samba/
I looked at the slitaz-website and found that you have to install the package smbfs for mounting samba-shares. Did you install that? |
Yes, smbfs was loaded as one of the dependencies of samba. I force reinstalled it, but it still does not work.
I do not have access to the actual samba machine or smb.conf, but I can access it in debian with smb://10.10.2.3/pxeboot/ohpcrack/tables/XP/ and in windows with \\10.10.2.3\pxeboot\ophcrack\tables\XP\ so I do know that it is functioning. |
Which version of slitaz is ophcrack using? According to their website the modprobe cifs command should work and the smbfs module should be installed to mount samba-shares. I don't know why it is not functioning.
|
I have no idea how to check which version of SliTaz I'm running.
Spider Menu->System tools->System Information Doesn't seem to be working. I scoured google trying to find a command to get a version number out of this thing, but I found nothing. |
There seems to be an ophcrack-package in the slitaz-repositories, maybe it is the easiest way to build your own ophcrack version from scratch with a current slitaz-kernel.
Sorry I can't give you more help. |
Man, I have absolutely no idea how to do that. I have only a basic understanding of linux systems, so rebuilding a kernel sounds terrifying. Thank you for all of your help, I believe we have made at least a little progress...
|
Anyone else have any ideas? I need to mount either a samba share or a windows share from the OPHcrack flavor of SliTaz.
|
Please post the output of uname -r and ls /lib/modules after installing linux-cifs with tazpkg get-install linux-cifs
|
# uname -r: 2.6.29.3-slitaz
after installing linux-cifs: # ls /lib/modules: 2.6.29.3-slitaz 2.6.34-slitaz |
All times are GMT -5. The time now is 09:40 PM. |