Code:
PUSH BPPUSH ESPUSH DIPUSH DSPUSH SIMOV BP, SPmov AX,00FFhint 61h ;our chosen interrupt for ntcpdrvMOV BX,[BP+06h+08h] ;get driver statusmov [BX],AXMOV BX,[BP+08h+08h] ;tcpip info is at ES:DImov [BX],DIMOV BX,[BP+0Ah+08h] mov [BX],ESPOP SIPOP DSPOP DIPOP ESPOP BPRETF 06h
Code:
'get hex values of each byte of machine code and ram them togetherw$ = "5506571e5689e5b8ff00cd618b5e0e89078b5e10893f8b5e128c075e1f5f075dca0600"'process each byte and rebuild the codecd$ = "": FOR n% = 1 TO LEN(w$) STEP 2: cd$ = cd$ + CHR$(VAL("&H" + MID$(w$, n%, 2))): NEXT'make space for dataDIM d AS STRING * 200CLSr%=77DEF SEG = VARSEG(cd$)sg% = VARSEG(d)of% = VARPTR(d)PRINT sg%; ":"; of% 'print our segment and offset'r% = 77 here.CALL absolute(sg%, of%, r%, SADD(cd$))DEF SEGPRINT sg%; ":"; of%PRINT r% 'but why is sg%,of% and r% unchanged?SYSTEM
Statistics: Posted by mikefromca — Sat Jan 02, 2021 9:49 pm