Create the following hellorelative.nasm code
Ask Expert

Be Prepared For The Toughest Questions

Practice Problems

Create the following hellorelative.nasm code

Problem 4 –Extract opcode

1. Create the following hellorelative.nasm code


2. Use nasm to generate the object file hello.o

3. Use the debugger to find the relative address that contains the string hello_world. 

4. Use objdump -d hello.o to display the opcode

5. Use the following regular expressions to extract the opcode (shellcode) from objdump as follows:

Objdump –D –M intel hello.o | grep ‘[0-9a-f]:’  | cut –c7-26 | paste –d ‘   ’  -s 

| tr –s  ‘   ’ ‘   ’| sed  ‘s/ /\\x/g’ | sed ‘s/\\x$//’ | sed s’/55/\\x55/’  > shellcode

6. Attach the opcode and the extracted opcode(shellcode)

Hint
ComputerAn opcode indicates which fundamental computer operation is to be carried out in the instruction set. When writing machine code, it is employed. It instructs the computer to take certain action. An opcode and operands are normally present in every machine language instruction....

Know the process

Students succeed in their courses by connecting and communicating with
an expert until they receive help on their questions

1
img

Submit Question

Post project within your desired price and deadline.

2
img

Tutor Is Assigned

A quality expert with the ability to solve your project will be assigned.

3
img

Receive Help

Check order history for updates. An email as a notification will be sent.

img
Unable to find what you’re looking for?

Consult our trusted tutors.

Developed by Versioning Solutions.