VMware – Back Track 5 Start Up

log in with the default user name and password ( user root, password toor)

root@bt~#

start x (the windows gUi)

root@bt~# startx

View all the network interfaces on your machine

root@bt~# ifconfig -a

turn up (on) the desired network interface

root@bt~#eth0 ifconfig up

Assign an iP address manually

root@bt~# eth0 ifconfig up 192.168.0.1

View the manually assigned iP address

root@bt~# ifconfig

Assign an iP address through dHcP

root@bt~# dhclient eth0

View the dynamically assigned address

root@bt~# ifconfig

reboot the machine using the command line interface

root@bt~# reboot

Poweroff the machine using the command line interface

root@bt~# poweroff

StartUp.sh

#!/bin/bash
echo "Setting up the victim machine, this will take just a moment..."
ifconfig eth0 down
ifconfig eth0 172.16.45.$((( $RANDOM %254)  1)) up
# uncomment the following lines by removing the #, to start up services on your victim
# please note, you may need to change the location / path depending on your distro
/etc/init.d/ssh start
# note, you may have to generate your SSH key using sshd-generate
/etc/init.d/apache2 start
/etc/init.d/atftpd start
echo "This victim machine is now setup."
echo "The IP address is somewhere in the 172.16.45.0/24 network."
echo "You may now close this window and begin your attack...Good luck!"