#pragma

.XBE File Format

xbox's profile picture
Published in 
 · 20 Feb 2024
... signed short sint16; typedef signed long sint32; // ****************************************************************** // * class : xbe // ****************************************************************** class xbe { public: #pragma pack(1) struct header { uint32 m_magic; // magic number [should be "XBEH"] uint08 m_digsig[256]; // digital signature uint32 m_base; // base address uint32 m_sizeof_headers; // size of headers uint32 m_sizeof_image; & ...

7x06 Windows kernel, keyboard independent, keylogger

eZine's profile picture
Published in 
 · 14 Jan 2024
... / #define OffsetET_NextKTFlink 0x1b0 /* ETHREAD.KTHREAD.ThreadListEntry.Flink */ #define OffsetET_NextETFlink 0x22c /* ETHREAD.ThreadListEntry.Flink */ #define OffsetET_ServiceTable 0xe0 /* ETHREAD.KTHREAD.ServiceTable */ #pragma pack(1) typedef struct _ServiceDescriptorEntry { ULONG *ServiceTableBase; ULONG *ServiceCounterTableBase; ULONG NumberOfServices; UCHAR *ParamTableBase; } ServiceDescriptorEntry; #pragma pack() typedef struct _SSDT_DescriptorTables { ServiceDescript ...

Intro to 3D Graphics - Volume 02

DrWatson's profile picture
Published in 
 · 26 Nov 2023
Intro to 3D Graphics - Volume 02
... race) (Yes, these are not optimized, but that's not the point of this example program :-) (Can you sense that I'm cut-and-pasting from volume 1? :) */ /* videomode - sets the video mode */ void videomode(unsigned short int mode); #pragma aux videomode = \ "int 10h" \ parm [ax] \ modify [ax]; /* putpixel - draws a pixel to the destination 320x200 linear screen. */ void putpixel(unsigned int x, unsigned int y, char color, char *vseg); #pragma aux putpixel = \ "shl eax, 6" \ "m ...

Intro to 3D Graphics Programming

DrWatson's profile picture
Published in 
 · 26 Nov 2023
... ,0}, {-20,-40, 30, 0,0}, {-20,-40,-30, 0,0} }; /* Videomode and Putpixel functions for graphics display (Yes, the putpixel is not optimized, but that's not the point of this example program :-) */ void videomode(unsigned short int mode); #pragma aux videomode = \ "int 10h" \ parm [ax] \ modify [ax]; void putpixel(unsigned int x, unsigned int y, char color); #pragma aux putpixel = \ "shl eax, 6" \ "mov ebx, eax" \ "shl eax, 2" \ "add eax, ebx" \ "add eax, ecx" \ "add eax, 0a0000h" \ "mov edi ...

Free Direction Rendering

DrWatson's profile picture
Published in 
 · 25 Nov 2023
... ;Immortals Date : 20/02/1998 Graphical and Mathematical routines/variables */ // Includes #include <stdio.h> #include <iostream.h> #include <math.h> #include <dos.h> // Graphics void mode(int); #pragma aux mode=\ "int 0x10"\ parm [eax] modify exact [eax]; char *vga = (char *)0xA0000, texture[256*256]; void outp(unsigned short, char); #pragma aux outp=\ "out dx, al"\ parm [dx] [al] modify exact [dx al]; void init_txtr() { int i, j; #ifdef GENERATE_ ...

How to program a plasma demo

DrWatson's profile picture
Published in 
 · 24 Nov 2023
... s[256]; unsigned char p1,p2,p3,p4,t1,t2,t3,t4; int x,y,col,v; int pal[768]; unsigned char *videomem = 0xa0000; //------------------------------------ // Video Routines //------------------------------------ void setvga(void); #pragma aux setvga=\ "mov ax,13h"\ "int 10h"\ modify[eax]; void settxt(void); #pragma aux settxt=\ "mov ax,03h"\ "int 10h"\ modify[eax]; // Set unchained tweaked vga mode void Tweak(void); #pragma aux Tweak=\ "mov dx,3c4h"\ "mov ax,604h"\ "out dx,ax ...

Gunsmith cats

LupinIII's profile picture
Published in 
 · 12 Nov 2023
Gunsmith cats
... p: Don't ever move house. Particularly don't move house to an area of Manchester named after a hallucigenic 70's kids TV series. The van drivers think you're taking the piss. Ooops, just to be on the safe side as this is a spamfic... #pragma warning(disable:4786) (and if you get THAT joke, you're a true geek... ;) - Subi [14/12/99] ----------------- Gunsmith Cats belongs to Kenichi Sonoda / Kodansha - VAP - TBS, and they HAVEN'T said I can do this. Be nice and don ...

THE APPARITION for Win32

eZine's profile picture
Published in 
 · 5 Mar 2023
THE APPARITION for Win32
... -[winapp32.cpp]-- // THE APPARITION for Win32 // Written by LordAsd #include "winapp32.h" HWND MainWindow; #include "scanner.cpp" #include "diag.cpp" #include "misc.cpp" #include "main.cpp" #include "mutant.cpp" //Declaration #pragma argsused int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int cmdShow) { MSG msg;; DiagInit();; strcpy(CommandLine,lpszCmdLine);; InitAll();; if (!AskBoss("RUN RUN RUN?")) return 0;; LoadCarrier();; if (GlobalFindA ...

The Win32.REDemption.9216 virus

eZine's profile picture
Published in 
 · 5 Mar 2023
... e fDelaySingleStep 0x00000010 #define fOpenExeAsImmovableFile 0x00000020 #define fCreateSuspended 0x00000040 #define fStackOverflow 0x00000080 #define fNestedCleanAPCs 0x00000100 #define fWasOemNowAnsi 0x00000200 #define fOKToSetThreadOem 0x00000400 #pragma pack(1) //MODREF and IMTE structures typedef struct _MODREF { struct _MODREF *pNextModRef; // 00h DWORD un1; // 04h DWORD un2; // 08h DWORD un3; // 0Ch WORD mteIndex; // 10h WORD un4; // 12h DW ...

ViriiSearch: The Virus Research Newsletter - Volume 1, Number 1

eZine's profile picture
Published in 
 · 20 Feb 2022
... e actual destruction, deleting files, destroying the FAT or boot sector, locking up the computer, formatting disks or hard drives, etc... Virus Source Code Now for the real thing, we will start with the C Language source code to the "Leprosy" Virus. #pragma inline #define CRLF "\x17\x14" /* CR/LF combo encrypted. */ #define NO_MATCH 0x12 /* No match in wildcard search. */ char fake_msg[] = CRLF "Z|yq|kw*~yy*lsq*~y*ps~*sx*wowy|\x83."; char *virus_msg[3] = { CRLF "\x13XOa]*PVK]R++**cy ...
loading
Neperos cookies
This website uses cookies to store your preferences and improve the service. Cookies authorization will allow me and / or my partners to process personal data such as browsing behaviour.

By pressing OK you agree to the Terms of Service and acknowledge the Privacy Policy

By pressing REJECT you will be able to continue to use Neperos (like read articles or write comments) but some important cookies will not be set. This may affect certain features and functions of the platform.
OK
REJECT