Assign Static IP
ifconfig eth0 192.168.0.4/24
route add default gw 192.168.0.1
echo nameserver 192.168.0. 200 > /etc/resolv.conf
Apache
You can control the apache server using the apachectl stop / start commands
apachectl start
SSHD
The SSH server can be very useful in various situations, such as SSH tunneling SCP file transfer, remote access etc.
Before the SSH server is started for the first time, SSH keys need to be generated.
To start the SSHD server, issue the following command
#sshd-generate
You can verify that the server is up and listening using the netstat command
#netstat -ant | grep 22
Tftpd
A Tftpd server can be useful in situations in which you need to transfer files to or from a victim machine.
To start the tftpd, issue the following command
#atftpd --daemon --port 69 /tmp
Verify if tftpd is running
netstat -anu | grep 69
VNC Server
A VNC Server is useful for remote desktop sharing or for sending remote reverse VNC connections from an attacked machine.
To start the VNC Server simply type vncserver. You will be prompted for a password and VNC server will open on port 5901
netstat -ant | grep 5901
Check what network interfaces you have
#dmesg | grep -i eth
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment