and Install NASM and Write and Test Assembly Program in Visual Studio
and Install NASM and Write and Test Assembly Program in Visual Studio
3
Step 6 - Windows ask for restart allow it and wait for update
Step 7 – Open PowerShell as Administrator (Start menu > PowerShell > right-click > Run as Administrator) and enter
this command:
2
Step 8 – Restart Windows
Step 9 – Download the Linux kernel update package
Download the latest package:
Link - https://learn.microsoft.com/en-us/windows/wsl/install-manual
2. Shellcode Studio
2
2. Click on Code-runner: Executor Map By File Extension
Edit in settings.json
5. Creat a New Text File and Saved the file with .asm Extension:
6. Copy the give code and Paste in Test.asm test file and Save ( Ctrl+ S ) :
global _start
section .text
_start:
mov rax, 1 ; write(
mov rdi, 1 ; STDOUT_FILENO,
mov rsi, msg ; "Hello, world!\n",
mov rdx, msglen ; sizeof("Hello, world!\n")
syscall ; );
section .rodata
msg: db "Hello, world!", 10
msglen: equ $ - msg
7. For Right Click and click on Run code Wait for some time Ubuntu Terminal is Open:
8. Paste The given Command :
ld Test.o -o Test
./Test
1
2
OutPut 3
Linkedin: https://www.linkedin.com/in/ishwar-sonawane-298025260