Information Security

smbclient : Backtrack 5: Non Menu Items: CLI Commands: smbclient

The smbclient command line application included in Backtrack Linux is a staple for pentesting. I would imagine anyone that has done a pentest has used it to quickly verify SMB (Server Message Block) or CIFS (Common Internet File System) shares. The smbclient manpage describes it as a FTP-like client to access SMB/CIFS resources on servers. Below we describe varios smbclient commands in details to provide a basic understanding of its capabilities and what output will look like when using this tool in Backtrack Linux.

Details
Information Security

smbclient – Backtrack 5 – Information Gathering – Network Analysis – SMB Analysis – smbclient.py

In the Backtrack menu under Information Gathering > Network Analysis > SMB Analysis there is a menu item named smbclient which should actually be named smbclient.py. While the smbclient.py script does actually use smbclient it provides a different interface, commands, no switches, etc. making it fairly different than smbclient itself. While both smbclient and smbclient.py are supposed to provide the same end results they don’t because smbclient.py is extremely buggy so I will be writing an article on each so there is no confusion.

Details
Technology Errors

smbclient Backtrack Linux – sh: line 0: cd: /pentest/python/impacket-examples/: No such file or directory

When attempting to launch smbclient via the Backtrack menu in Backtrack Linux version 5 release 3 you will receive an error stating there is no such file or directory. It appears some of the paths have changed between Backtrack Linux releases and the menu item for smbclient was not updated. I personally prefer smbclient from the command line however if you like the smbclient.py python script then fixing it is easy as noted in the details below.

Details
Technology Errors

RightScale Stop Recipe From Being Used In RightScript, GIT /tmp/ssh.key.sh

If you have created a custom RightScript in the RightScale interface that uses git to clone a repository and you are running that RightScript on boot following the RightScale git_repo recipe then you likely are having issues. The problem appears to stem from the fact that the environment variables are not completely cleaned up as expected including $GIT_SSH and possibly others. I have a work around noted below along with a line you can enter in your RightScript to clear the $GIT_SSH ENV variable as well.

Details
Information Security

sqllhf – Backtrack 5 – Vulnerability Assessment – Database Assessment – MSSQL Assessment – sqllhf

It appears that SQLLHF no longer works in Backtrack 5 release 3. When attempting to run this application it throws an error. I may update this article later with more information as I know the author of the software and once I can speak with him I will update accordingly. The good news is SQLLHF doesn’t accomplish any goals that other Microsoft SQL Server tools can accomplish so there is no loss in terms of functionality however at this point its just taking up real estate in the BT5 menu.

Details