NASM - The Netwide Assembler
NASM Forum => Programming with NASM => Topic started by: SHITTY23 on September 04, 2022, 09:21:34 PM
-
I am a novice in assembler programing, I will will appreciate if someone could review these NASM assembler code for me. Is about encoder decoder.
The encoder performs the following:
- pads the shellcode with NOP opcodes so it is 4 bytes aligned
- a random byte is generated for each 4 bytes of the shellcode
- the 4 bytes are put in the reverse order and XORed with the XOR byte
- process is repeated until the 0x9090aaaa marker is reached
For those good at NASM assembler for Microsoft Windows, please could you optimize this code? the Code is working but takes lot of time. The shellcode is a windows/meterpreter/reverse_tcp x86 from msfvenom.
global main
; gone
; Frank
-
Shellcode has rather a bad reputation. Why are you using it?
Best,
Frank
-
Very funny how you tried to inffect somebody computers with Trojan:Script/Wacatac.Html...
To the moderator I recommend deleting this and ban the user.
PS: Decode (do not run!) the byte stream and let the antivirus do its trick...
-
Thank you, Fred!
I hadn't decoded decoded his shellcode, but would have before I ran it.
He's gone in just a second.
Best,
Frank
-
I chuckled at the username and it was a bit suspicious because of it :)
-
Hello,
It looks like the code you've provided
Redacted by moderator!
-
The person with the questionable name has been banned from the forum.
If you do not want to join him, do not discus malware here!
Seriously,
Frank