Senin, 27 Februari 2012

Use auxilary metasploit (update)

Open the terminal and type msfconsole
Type this commend below to use the email collector we've been added before


We type "show Auxiliary" to see auxiliary

We use "auxiliary/gather/search_email_collector" and we type "show options" to see parameters can we use
msf > use gather/search_email_collector
msf  auxiliary(search_email_collector) > show options 

Module options (auxiliary/gather/search_email_collector):

   Name           Current Setting  Required  Description
   ----           ---------------  --------  -----------
   DOMAIN                          yes       The domain name to locate email addresses for
   OUTFILE                         no        A filename to store the generated email list
   SEARCH_BING    true             yes       Enable Bing as a backend search engine
   SEARCH_GOOGLE  true             yes       Enable Google as a backend search engine
   SEARCH_YAHOO   true             yes       Enable Yahoo! as a backend search engine

We use Domain to search email y**oo

There it is the email address for the specified domain. There are only example for auxiliary metasploit. 

Jumat, 24 Februari 2012

Linux Exploitation

Before Exploitation Linux we must turn off ASLR with this step

Type script this below

Running the aplication with gdb

overwrite EIP with give sending data fuzzing

Type here for more info register eip

Type on below to see entrance stack application, and look register esp


Running sc_generator to find Shellcode

Insert Shellcode into the fuzzer and exploit linux like this below

Rabu, 22 Februari 2012

Buffer Overflow easy chat server "seh and safeseh"

first  i want to search vulnerability "easy chat server" i choose wireshark to sniffing packet data on easy server. Before i try to use wireshark, i play easy chat server with web browser. Iam register easy chat server.

I want to login easy with server, and i choose frinds to chat with me

Run wireshark to sniffing packet data on easy chat server. I see packet data on easy chat sever with ip 192.168.56.101. 

I type source for fuzzing on wireshark. I build fuzzing this below :

Run easy chat server after that OllyDbg, klik view > attack, search easy chat server > attack. 

This file is crash, however register EIP no crushed of buffer to sending. Because this application use seh. Fot view to seh, choose view > SEH Chain.

Now EIP value to be 41414141

To view data inside the application memory, right click line stack 3 > follow in dump. Then on the left of the memory window seen in the data buffer memory. 

copying file ssleay32.dll in system backtrack to search whether this file contain seh.

Open terminal and enter the metasploit. type ./msfpescan -p /tmp/ssleay32.dll. Try module to have file ssleay32.dll on SEH Chain.

Double click SSLEAY32.dll, right click > search for > sequence of command. After that windows search is appear, type POP r32, POP r32, RETN, click find

Now OllyDbg has found address memory in the SSLEAY32.dll.

Open terminla and search ./pattern_create.rb

Copy pattern_create.rb into script and run script again. easy chat server has been crash. Note value at EIP.

Open terminal and search pattern_offset with value contained in the EIP

Type script this below :

Script sucessfully executed, buffer value \x41 success entry into SEH handler

 Type script below to enter address msfpescan from SSLEAY32.dll

See that the process has break by OllyDbg exactly when it will access the address SSLEAY32.dll
looking into SE Chain

push shift + f9 to countinue prosses in memory SSLEAY32.dll

Open web browser and type localhost with port 5555. Now at the Metasploit, choose payload search os :: win32, after that choose again Windows bind shell

and a know this payload any bad character. Iam reply to build payload with how to clean bad character "\x20\x25\x0a\x0d\x08\x80\x32\x6e\x3f"

Copy payload into script fuzzer

Run the script 

See the result, easy chat server is crash

Access telnet with terminal. Now exploit is success....

Jumat, 17 Februari 2012

Buffer Overflow BigAnt Server "SEH and safeSEH"

type script below :
Run BigAnt server. Click file server > run service control
Run ollyDbg. Click file attach, search Antserver > click attach
Fuzzer application try to send buffer data of 2500 byte to BigAnt server. See the results:
EIP register not affected to buffer of send. To look into SEH, choose view > SEH chain
Visible buffer sent are stored in SEH Chain. EIP value to be 41414141




that the buffer has sent into the stack. For see data which is into application memory, right click line stack > follow in dump
copying file vbajet32.dll in system backtrack. File vbajet32.dll on windows, you can looking in windows > system32 > vbajet32.dll
Open metasploit at comand prompt filewith cd /pentest/exploit/framework
type:
rate  0 at Dllcharacteristics mean this module dont have SEH protection or safeSEH in it.

For search POP, POP RETN in module, open OllyDbg click view > Executable module > double click vbajet32.dll at fil. After that right click > Search for > Sequence of commands
input POP r32, POP r32, and RETN
Now OllyDbg has found address in the memory vbajet32.dll
Open terminla and search ./pattern_create.rb
Copy pattern_create.rb into script and run script again. BigAnt has been crash. Note value at EIP.
Open terminal and search pattern_offset with value contained in the EIP
Type script this below
Script sucessfully executed, buffer value \x41 success entry into SEH handler

 Type script below to enter address offset from vbajet32.dll
See that the process has break by OllyDbg exactly when it will access the address 0FA196A
looking SEh chain
push shift + f9 to countinue prosses in memory vbajet32.dl
 To see memory address a great, right click on the first address of the "012CFD7C" > follw in dump > selection
Run msfweb on terminal
get payload into metasploit
Copy payload and entry into script
Run script and find SEH Chain
Iam try to run script and result is :

and a know this payload any bad character. Iam reply to build payload with how to clean bad character "\x20\x25"
Reply copy payload this below to script:
run again this script
and now see the result
success to exploit..... and i know bad character on \x20\x25\x0D\x0A\2F\x00\x3A.