; =========================================================================
; EXTREME GEEK EXIT ROUTINE (8 Bytes Special)
; =========================================================================
; Never use standard INT 21h.
; Simulating CP/M’s “CALL 5” via 8086 stack injection and RETF warp.
; =========================================================================
db 0xB1, 0x00 ; MOV CL, 00h (CP/M Terminate function)
db 0x1E ; PUSH DS (Get PSP Segment address)
db 0xBB, 0x05, 0x00 ; MOV BX, 5 (Target offset)
db 0x53 ; PUSH BX (Stack layout -> DS:0005h)
db 0xCB ; RETF (Warp to OS mutual layer!)
おい、ウイリス貼るな
トロイの木馬じゃん
通報した
今AIで作ったやつめっちゃ狙われるで
なろう くらいかみ砕いて、簡潔に説明しろよ
そのあとに細かくわかるようにいえよ
誰がわけわからんものを使うんぢょ
; 17-BYTE SEGMENT-ADDITION EXIT ROUTINE (Aesthetic Hacker Version)
; Assemble: nasm -f bin -o exit.com exit.asm
; =========================================================================
org 100h
section .text
start:
; — Setup CP/M exit function & target offset 5 —
mov cl, 0 ; CL = Function 00h (Terminate Program)
mov bx, 5 ; BX = Target offset 0005h (OS entry point)
; — The Hack: Distort the segment space to calculate return path —
; Physical distance to “back_here” is 24 bytes (1 segment [16B] + 8 bytes)
mov ax, ds ; AX = Grab original PSP segment from OS
add ax, 1 ; Shift the entire segment space 16 bytes forward
; — Stack Injection: Fabricate the return frame —
push ax ; Push shifted return segment (DS + 1)
mov dx, 8 ; Remaining return offset (24 – 16 = 8)
push dx ; Push return offset
push ds ; Push destination segment (Original PSP)
push bx ; Push destination offset (Fixed 5)
; — Execute: Warp into OS entry via fake far-return —
retf ; Jump to DS:0005h. Lands perfectly & kills program.
back_here:
nop ; Flawless structural landing pad at [DS+1]:0008h


コメント