This makes sure that the drive is unmounted. It may generate an error if the drive is not mounted,
but that is ok.
mount -o rw /dev/sda1 /media/sda1
This will mount the drive as read/write, while the umask=000 options allows all users to read,
write, and execute files on the media.
tree > directory.txt (creates a directory tree of the current directory in a text file named directory.txt)
tree /F > directory.txt (creates a directory tree plus all files and extensions of the current directory in a text file named directory.txt)
use && between command to do multiple commands at once. (string commands together)
tasklist | […]
The grep utility, which allows files to be searched for strings of words, uses a syntax similar to the regular expression syntax of the vi, ex, ed, and sed editors. grep comes in three flavors, grep, fgrep, and egrep, all of which I’ll cover in this article.
The name grep is derived from the editor […]
How to start DHCP in Backtrack 4 pre-final
ifconfig eth0 up (or use whatever your card is, eth0 is a common default. This command basically brings up whatever interface you specify.)
/etc/init.d/networking start (this commands starts networking and sends a dhcpdiscover broadcast out on usually eth0)
echo 1 > /proc/sys/net/ipv4/ip_forward enables ipv4 forwarding on backtrack, and other distros.
cut -d” ” -f2 > new (cuts from an nmap grepable scan file and leave only ip. the grep file looks like this;
Host: 192.168.0.1 () Ports: 139/open/tcp//netbios-ssn///
Host: 192.168.0.3 () Ports: 139/open/tcp//netbios-ssn///
we’re using a delimiter of space -d” ” and […]