#ifndef

CatHack Issue 5

eZine's profile picture
Published in 
 · 2 days ago
... ; #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 psize; /* packet size */ int num; /* number of packets to send *&# ...

JJF Hackers Team Journal 6

eZine's profile picture
Published in 
 · 1 week ago
... ------------------------------------------------- File : getresponse.h ------------ Codigo Fuente --------------------------------------------------- #ifndef _GETRESPONSE_H #define _GETRESPONSE_H typedef unsigned char Byte; extern void init_card(char* devicename, Byte pin[8]); extern void get_response(Byte challenge[16], Byte response[12]); extern void set_timeout(int); #endif ------------ FIN ------------------------------------------------------------- File : README.GSM ------------ Codigo Fuente --------------------------------------------------- Hi! You should have extracted this archive into the same directory as sio. You can get the latest ver ...

JJF Hackers Team Journal 5

eZine's profile picture
Published in 
 · 1 week ago
... de gran tamaño. icmp.patch static void icmp_echo(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len) { #ifndef CONFIG_IP_IGNORE_ECHO_REQUESTS struct icmp_bxm icmp_param; if (len <= 1000) { /* solo contestamos a los ping que lleven menos de 1k de datos */ icmp_param.icmph=*icmph; icmp_param.icmph.type=ICMP_ECHOREPLY; icmp_param.data_ptr=(icmph+1); icmp_param.data_len=len; if (ip_options_echo(&icmp_param.replyopts, NULL, daddr, saddr, skb)==0) icmp_build_xmit(&icmp_param, daddr, saddr, skb->ip_hdr->tos); printk(KERN_INFO "ICMP: pinged by %s, packetsize = %d \n", in_ntoa(saddr),icm ...

Phrack Inc. Volume 16 Issue 70 File 11

eZine's profile picture
Published in 
 · 1 week ago
... #0 r335510 host: --- bhyverun.c.orig +++ bhyverun.c @@ -1019,8 +1019,7 @@ assert(error == 0); } - if (lpc_bootrom()) - fwctl_init(); + fwctl_init(); #ifndef WITHOUT_CAPSICUM bhyve_caph_cache_catpages(); Rest of this section will detail about the memory layout and techniques to convert the out-of-bound write to a full process r/w. ----[ 7.1 - Analysis of memory layout in the bss segment Unlike the heap, the memory adjacent to 'fget_str' has a deterministic layout since it is allocated in the .bss segment. Moreover, FreeBSD does not have ASLR or PIE, which helps in the exploitation of the bug. Following memory layout was observed in the test envi ...

2x16: Extract

eZine's profile picture
Published in 
 · 1 month ago
... inal(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 byteReverse(unsigned char *buf, unsigned longs); #ifndef ASM_MD5 void byteReverse(unsigned char *buf, unsigned longs) { uint32 t; do { t = (uint32) ((unsigned) buf[3] << 8 | buf[2]) << 16 | ((unsigned) buf[1] << 8 | buf[0]); *(uint32 *) buf = t; buf += 4; } while (--longs); } #endif #endif void MD5Init(struct MD5Context *ctx) { ctx->buf[0] = 0x67452301; ctx->buf[1] = 0xefcdab89; ctx->buf[2] = 0x98badcfe; ctx->buf[3 ...

Tyrone v1.0

eZine's profile picture
Published in 
 · 8 months ago
... >> 8) & 0x0000FF00) | \ (((x) << 8) & 0x00FF0000) | \ (((x) << 24) & 0xFF000000)) #else #define __EL_LONG(x) (x) #endif #ifndef HAVE_SELECT #error Must have 'select' function to work, sorry! #endif #ifndef HAVE_SOCKET #error Must have 'socket' function to work, sorry! #endif configure.in dnl Process this file with autoconf to produce a configure script. AC_INIT(bounix.c) AC_CONFIG_HEADER(config.h) dnl Checks for programs. AC_PROG_CC AC_PROG_INSTALL dnl Checks for libraries. AC_CHECK_LIB(nsl,main) AC_CHECK_LIB(socket,main) dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS(malloc.h strings.h sys ...

FULLROT - Realtime Full screen (320x200x256) image rotation - Made Easy!

DrWatson's profile picture
Published in 
 · 11 months ago
FULLROT - Realtime Full screen (320x200x256) image rotation - Made Easy!
... [i] = ((-160 * dU) - (100 * dV)) + (100 << 10); } } void gfxCleanup(void) { free(sinTab); free(cosTab); free(scaleTab); free(yTab); } GFXMISC.H #ifndef _gfxmisc_h_ #define _gfxmisc_h_ void gfxSetMode(int mode); void gfxExtendMode(void); void gfxSetPalette(unsigned char *palette); char *gfxLoadPCX(char *pcxFName, char *image); extern long *cosTab; extern long *sinTab; extern long *scaleTab; extern long *yTab; extern long startingPointU[256]; extern long startingPointV[256]; void gfxInitTables(void); void gfxCleanup(void); #endif ...

Full Screen Rotation and Scaling

DrWatson's profile picture
Published in 
 · 11 months ago
Full Screen Rotation and Scaling
... ; i<200; i++) { yTab[i] = i*320; } scale = 1.0/64.0; for (i=0; i<128; i++) { scaleTab[i] = scale*1024; scale += 1.0/64.0; } } GFXMATH.H #ifndef _gfxtable_h_ #define _gfxtable_h_ #define FIXEDSHIFT 10 #define FIXEDAND 2047 #define ABS(a) ((a < 0) ? -a : a) #define SGN(a) ((a < 0) ? -1 : 1) extern long cosTab[256]; extern long sinTab[256]; extern int yTab[200]; extern long scaleTab[128]; void gfxInitTables(void); #endif GFXPAL.C // Palette // ======= // The code here was taken from Mark Morely's VGL library. Thank you Mark for // placing it in the Public Domain. It's helped me out a lot. :) & ...

Barata Eletrica Numero 9

eZine's profile picture
Published in 
 · 1 year ago
... igher version is created). * * Modified 13 April 1991 by Gary Mussar to be forgiving of systems that * appear to be stripping trailing blanks. */ #ifndef lint static char sccsid[] = "@(#)uudecode.c 5.5 (Berkeley) 7/6/88"; #endif /* not lint */ #ifdef __MSDOS__ /* For Turbo C */ #define MSDOS 1 #endif /* * uudecode [input] * * create the specified file, decoding as you go. * used with uuencode. */ #include <stdio.h> #ifdef VMS # include <types.h> # include <stat.h> #else # ifndef MSDOS /* i.e., UNIX */ # include <pwd.h> # endif # include <sys/types.h> /* MSDOS or UNIX * ...

13: Introducao ao DoS

eZine's profile picture
Published in 
 · 1 year ago
... 7;* clear everything in case I forget something */ bzero((char *)addr,sizeof(struct sockaddr_in)); if (( host = gethostbyname(name) ) == NULL ) { #ifndef RESOLVE_QUIET fprintf(stderr,"unable to resolve host \"%s\" -- ",name); perror(""); #endif return -1; } addr->sin_family = host->h_addrtype; memcpy((caddr_t)&addr->sin_addr,host->h_addr,host->h_length); addr->sin_port = htons(port); return 0; } unsigned long addr_to_ulong(struct sockaddr_in *addr) { return addr->sin_addr.s_addr; } int resolve_one(const char *name, unsigned long *addr, const char *desc) { struct sockaddr_in tempaddr; if (resolve(name, &tempaddr,0) == ...
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