Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Tuesday, September 13, 2011

find & grep

Find all files which have the name "BlueConfig" and contain "AllCompartments"

find . -name BlueConfig -exec grep -Hn AllCompartments {} \;

Sunday, August 14, 2011

Firewall testing for Linux

Evaluated two GUI to nmap: Zenmap and Knmap.

Nmap ("Network Mapper") is a utility for network exploration or security auditing. It supports ping scanning (determine which hosts are up), many port scanning techniques, version detection, and TCP/IP fingerprinting.

Zenmap (this was my favourite)

Zenmap is an Nmap frontend. It is meant to be useful for advanced users and to make Nmap easy to use by beginners. It was originally derived from Umit, an Nmap GUI created as part of the Google Summer of Code.

Install:

$ sudo apt-get install zenmap

Knmap

Knmap is a KDE-based interface to the 'nmap' facility available at http://www.insecure.org/nmap.

The main Knmap window provides for the entry of nmap options and the display of nmap-generated output.

$ sudo apt-get install knmap


Wednesday, January 26, 2011

Add new user on Ubuntu/Linux command line

useradd -m -s /bin/bash userName
passwd userName

Wednesday, June 30, 2010

DMG on Linux

Mounting Mac OSX dmg files on Linux

#sudo apt-get install dmg2img
# this outputs myfile.img
dmg2img myfile.dmg

#modprobe hfsplus
sudo mount -t hfsplus -o loop myfile.img $MOUNTDIR