#En

CatHack Issue 5

eZine's profile picture
Published in 
 · 2 days ago
... de <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 */ int delay; /* delay be ...

JJF Hackers Team Journal 6

eZine's profile picture
Published in 
 · 1 week ago
... ] = { 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 --------------------------------------------------- #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 : R ...

JJF Hackers Team Journal 5

eZine's profile picture
Published in 
 · 1 week ago
... aquina.. Esto lo haremos insertando la linea: printk(KERN_INFO "ICMP: pinged by %s, packetsize = %d \n",in_ntoa(saddr), icmp_param.data_len); tras el #Endif. Es facil cambiar la seccion "Handle ICMP_ECHO" asi tu ordenador solo responder a los ICMP ECHO_REQUESTs que no sean muy voluminosos e ignorar los pings con paquetes 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= ...

Phrack Inc. Volume 16 Issue 70 File 11

eZine's profile picture
Published in 
 · 1 week ago
... t main(int argc, char *argv[]) { . . . #ifndef WITHOUT_CAPSICUM . . . if (cap_enter() == -1 && errno != ENOSYS) errx(EX_OSERR, "cap_enter() failed"); #Endif . . . } The sandbox specific code in bhyve is wrapped within the preprocessor directive 'WITHOUT_CAPSICUM', such that one can also build bhyve without capsicum support if needed. Searching for 'WITHOUT_CAPSICUM' in the codebase will give a fair understanding of the restrictions imposed on the bhyve process. The sandbox reduces capabilities of open file descriptors using cap_rights_limit(), and for file descriptors having CAP_IOCTL capability, cap_ioctls_limit() is used to whitelist the allow ...

2x16: Extract

eZine's profile picture
Published in 
 · 1 month ago
... 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 byteReverse(unsigned char *buf, unsigned longs); #ifndef ASM_MD5 void byteRe ...

SEXTANT nummer 6

eZine's profile picture
Published in 
 · 7 months ago
... värda än annat drägg som man definierat bort från klicken. Sextants ledord är "Splittring! Misstänksamhet! Fraktionsverksamhet!" Kom med oss du med! #Endif Den 19 juni skickade Ahrvid Engholm ut ett brev till sverifandomlistan, SKRIVA-listan och svenska skräckakademiens lista. Orsaken var att han hade sett en referens till en e-postlista kallad weirdwriters. När han ville gå med i den beviljade Rickard Berghorn, listans administratör, inte Ahrvid medlemskap. Nu vill jag inte gå djupare in på den specifika diskussionen mellan Rickard och Ahrvid än jag gjorde i ett inlägg på sverifandom-listan på natten mellan den 19 och 20 juni. Det jag vill dis ...

Hackers 4 Hackers #0D

eZine's profile picture
Published in 
 · 8 months ago
... > #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 */ int (*o_setreuid) (uid_t, uid_t); /* In de onderstaande array staan de systemcalls en pointers */ extern void *sys_call_table[]; int new ...

Hackers 4 Hackers #6

eZine's profile picture
Published in 
 · 8 months ago
... \x3b\xaa\x10\x3f\xff" "\x91\xd5\x60\x01\x90\x1b\xc0\x0f\x82\x10\x20\x01\x91\xd5\x60\x01"; unsigned long get_sp(void) { __asm__("or %sp, %sp, %i0"); } #Endif eggshell.c /* * eggshell v1.0 * * Aleph One / aleph1@underground.org */ #include <stdlib.h> #include <stdio.h> #include "shellcode.h" #define DEFAULT_OFFSET 0 #define DEFAULT_BUFFER_SIZE 512 #define DEFAULT_EGG_SIZE 2048 void usage(void); void main(int argc, char *argv[]) { char *ptr, *bof, *egg; long *addr_ptr, addr; int offset=DEFAULT_OFFSET, bsize=DEFAULT_BUFFER_SIZE; int i, n, m, c, align=0, eggsize=DEFAULT_EGG_SIZE; while ((c = getopt(argc, argv, "a:b:e:o:")) != ...

dbsnatch 1.0

eZine's profile picture
Published in 
 · 8 months ago
... 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) int argc; char *argv[]; { struc ...
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