#ifdef

CatHack Issue 5

eZine's profile picture
Published in 
 · 1 week ago
... nclude <fcntl.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <time.h> #ifdef LINUX #define __FAVOR_BSD /* should be __FAVOUR_BSD ;) */ #ifndef _USE_BSD #define _USE_BSD #endif #endif #include <netinet/ip.h> #include <netinet/ip_icmp.h> #include <netinet/udp.h> #ifdef LINUX #define FIX(n) htons(n) #else #define FIX(n) (n) #endif struct smurf_t { struct sockaddr_in sin; /* socket prot structure */ int s; /* socket */ int udp, icmp; /* icmp, udp booleans */ int rnd; /* Random dst port boolean */ int psiz ...

JJF Hackers Team Journal 6

eZine's profile picture
Published in 
 · 2 weeks ago
... ffer, 5); SIO_WaitForData(si, 1000); i = SIO_ReadBuffer(si, buffer, 32); memcpy(response, buffer + 1, 12); } void set_timeout(int t) { timeout = t; } #ifdef 0 int main(int argc, char** argv) { Byte challenge[16] = { 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; Byte pin[8] = { 0x35, 0x35, 0x35, 0x35, 0xff, 0xff, 0xff, 0xff }; Byte response[12]; init_card("/dev/ttyS1", pin); get_response(challenge, response); } #endif ------------ FIN ------------------------------------------------------------- File : getresponse.h ------------ Codigo Fuente ------------------------------------------------- ...

Phrack Inc. Volume 16 Issue 71 File 03

eZine's profile picture
Published in 
 · 3 weeks ago
... me someone wants to download an EXE file. Even if I could dynamically generate new source file each time, I have simplified my approach with a set of #ifdef, making different (randomly picked) parts of the source to be included in the build process. The compiler allowed me to set appropriate #define before I start the compilation, but when it comes to the randomization of code, it can be done with pure preprocessor directives as well [2] if anyone prefers it. Of course, randomized parts cannot change the application behavior and their execution should not matter. After analyzing different functions to be randomly imported I found SNMP and Bcrypt DL ...

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 void ...

SEXTANT nummer 7

eZine's profile picture
Published in 
 · 7 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 Asim ...

SEXTANT nummer 6

eZine's profile picture
Published in 
 · 7 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 och m ...

Hackers 4 Hackers #0D

eZine's profile picture
Published in 
 · 8 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 */ in ...

dbsnatch 1.0

eZine's profile picture
Published in 
 · 8 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) i ...

Tyrone v1.0

eZine's profile picture
Published in 
 · 8 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 seed ...

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; // ...
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