|
Esta sección te permite ver todos los posts escritos por este usuario. Ten en cuenta que sólo puedes ver los posts escritos en zonas a las que tienes acceso en este momento.
Mensajes - NRM
Páginas: 1 2 3 [4] 5 6 ... 12
76
« en: Miércoles 23 de Agosto de 2006, 04:56 »
Y sobre la profundida de colores? True Color?
nrm
77
« en: Miércoles 23 de Agosto de 2006, 04:37 »
De cuanto debe ser la profundidad de colores? Los componentes deben soportar gráficos desde un mínimo de un píxel cuad. hasta un mínimo-máximo de 640*480 píxeles El tamaño maximo de las imagenes seria de 640x480 pixels? nrm
78
« en: Miércoles 23 de Agosto de 2006, 00:01 »
79
« en: Sábado 29 de Julio de 2006, 23:06 »
cual seria la finalidad de insertar asm dentro de un script escrito en python? tal vez podamos encontrar una solucion alternativa.
nrm
80
« en: Lunes 26 de Junio de 2006, 07:05 »
hola amigos, cmo incrusto una paginaaaa en una etiqueta div
gracias de antemano por su ayuda la solucion a tu problema es utilizar javascript y la propiedad innerHTML del objeto div. es muy tarde (2:20 AM) para escribir un ejemplo ahora, pero si no encuentras nada en google buscando con esas keys (html div innerHTML javascript), mañana intento escribir un ejemplo. saludos nrm
82
« en: Miércoles 17 de Mayo de 2006, 03:59 »
En la Demo de WxPython hay un ejemplo, solo tenes que bajar las demos desde la pagina de WxPython.
83
« en: Lunes 15 de Mayo de 2006, 05:48 »
yo te recomiendo Inkscape. GIMP Nadie lo usa o que? http://www.gimp.org aunque soy un fanatico de Gimp debo decir que Gimp no es un remplazante para Corel Draw. ya que son dos cosas diferentes.
85
« en: Viernes 7 de Abril de 2006, 04:23 »
87
« en: Domingo 2 de Abril de 2006, 02:37 »
Que suerte que lo pudiste lograr, si queres podes compartir tu codigo posteandolo en este thread.
saludos
89
« en: Miércoles 15 de Marzo de 2006, 02:45 »
90
« en: Martes 14 de Marzo de 2006, 03:06 »
GNU/Linux ya tiene un firewall y esta muy bueno. En vez de recrear la rueda podrias mejorarla, tal vez programando algun modulo para iptables. Podes empezar buscando info en esta pagina [1]. [1] http://www.netfilter.org/saludos
91
« en: Viernes 10 de Marzo de 2006, 03:49 »
Si no me equivoco esto lo solucionas modificando .xsession o .xinitrc, con leer los manuales lo deberias poder sacar. Si no es asi para mi proximo mensaje te investigo mas, pero no suelo usar GDM
92
« en: Martes 28 de Febrero de 2006, 01:43 »
/* myping.c * * Copyright (c) 2000 Sean Walton and Macmillan Publishers. Use may be in * whole or in part in accordance to the General Public License (GPL). * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ /*****************************************************************************/ /*** myping.c ***/ /*** ***/ /*** Use the ICMP protocol to request "echo" from destination. ***/ /*****************************************************************************/ #include <fcntl.h> #include <errno.h> #include <sys/socket.h> #include <resolv.h> #include <netdb.h> #include <netinet/in.h> #include <netinet/ip_icmp.h> #define PACKETSIZE 64 struct packet { struct icmphdr hdr; char msg[PACKETSIZE-sizeof(struct icmphdr)]; }; int pid=-1; struct protoent *proto=NULL; /*--------------------------------------------------------------------*/ /*--- checksum - standard 1s complement checksum ---*/ /*--------------------------------------------------------------------*/ unsigned short checksum(void *b, int len) { unsigned short *buf = b; unsigned int sum=0; unsigned short result; for ( sum = 0; len > 1; len -= 2 ) sum += *buf++; if ( len == 1 ) sum += *(unsigned char*)buf; sum = (sum >> 16) + (sum & 0xFFFF); sum += (sum >> 16); result = ~sum; return result; } /*--------------------------------------------------------------------*/ /*--- display - present echo info ---*/ /*--------------------------------------------------------------------*/ void display(void *buf, int bytes) { int i; struct iphdr *ip = buf; struct icmphdr *icmp = buf+ip->ihl*4; printf("----------------\n"); for ( i = 0; i < bytes; i++ ) { if ( !(i & 15) ) printf("\n%04X: ", i); printf("%04X ", ((unsigned char*)buf)[i]); } printf("\n"); printf("IPv%d: hdr-size=%d pkt-size=%d protocol=%d TTL=%d src=%s ", ip->version, ip->ihl*4, ntohs(ip->tot_len), ip->protocol, ip->ttl, inet_ntoa(ip->saddr)); printf("dst=%s\n", inet_ntoa(ip->daddr)); if ( icmp->un.echo.id == pid ) { printf("ICMP: type[%d/%d] checksum[%d] id[%d] seq[%d]\n", icmp->type, icmp->code, ntohs(icmp->checksum), icmp->un.echo.id, icmp->un.echo.sequence); } } /*--------------------------------------------------------------------*/ /*--- listener - separate process to listen for and collect messages--*/ /*--------------------------------------------------------------------*/ void listener(void) { int sd; struct sockaddr_in addr; unsigned char buf[1024]; sd = socket(PF_INET, SOCK_RAW, proto->p_proto); if ( sd < 0 ) { perror("socket"); exit(0); } for (;;) { int bytes, len=sizeof(addr); bzero(buf, sizeof(buf)); bytes = recvfrom(sd, buf, sizeof(buf), 0, (struct sockaddr*)&addr, &len); if ( bytes > 0 ) display(buf, bytes); else perror("recvfrom"); } exit(0); } /*--------------------------------------------------------------------*/ /*--- ping - Create message and send it. ---*/ /*--------------------------------------------------------------------*/ void ping(struct sockaddr_in *addr) { const int val=255; int i, sd, cnt=1; struct packet pckt; struct sockaddr_in r_addr; sd = socket(PF_INET, SOCK_RAW, proto->p_proto); if ( sd < 0 ) { perror("socket"); return; } if ( setsockopt(sd, SOL_IP, IP_TTL, &val, sizeof(val)) != 0) perror("Set TTL option"); if ( fcntl(sd, F_SETFL, O_NONBLOCK) != 0 ) perror("Request nonblocking I/O"); for (;;) { int len=sizeof(r_addr); printf("Msg #%d\n", cnt); if ( recvfrom(sd, &pckt, sizeof(pckt), 0, (struct sockaddr*)&r_addr, &len) > 0 ) printf("***Got message!***\n"); bzero(&pckt, sizeof(pckt)); pckt.hdr.type = ICMP_ECHO; pckt.hdr.un.echo.id = pid; for ( i = 0; i < sizeof(pckt.msg)-1; i++ ) pckt.msg[i] = i+'0'; pckt.msg[i] = 0; pckt.hdr.un.echo.sequence = cnt++; pckt.hdr.checksum = checksum(&pckt, sizeof(pckt)); if ( sendto(sd, &pckt, sizeof(pckt), 0, (struct sockaddr*)addr, sizeof(*addr)) <= 0 ) perror("sendto"); sleep(1); } } /*--------------------------------------------------------------------*/ /*--- main - look up host and start ping processes. ---*/ /*--------------------------------------------------------------------*/ int main(int count, char *strings[]) { struct hostent *hname; struct sockaddr_in addr; if ( count != 2 ) { printf("usage: %s <addr>\n", strings[0]); exit(0); } if ( count > 1 ) { pid = getpid(); proto = getprotobyname("ICMP"); hname = gethostbyname(strings[1]); bzero(&addr, sizeof(addr)); addr.sin_family = hname->h_addrtype; addr.sin_port = 0; addr.sin_addr.s_addr = *(long*)hname->h_addr; if ( fork() == 0 ) listener(); else ping(&addr); wait(0); } else printf("usage: myping <hostname>\n"); return 0; }
Si queres entender el tema un poco mas, aca tenes un tutorial.
93
« en: Martes 14 de Febrero de 2006, 19:49 »
Si no hay soporte para gettext en el servidor ??? Mmmmm...
Qué probabilidades hay de que un servidor tenga instalada esta extensión? Sí las probabilidades son altas sería una muy buena opción... Si no contas con soporte para gettext en el server podes usar lo siguiente. http://savannah.nongnu.org/projects/php-gettextLo probe y funciona muy bien.
94
« en: Martes 14 de Febrero de 2006, 15:27 »
95
« en: Domingo 12 de Febrero de 2006, 02:06 »
Disculpame el error, al parecer estaba mal el source. Este lo verifique y funciona. Saludos /* snooper.c * * Copyright (c) 2000 Sean Walton and Macmillan Publishers. Use may be in * whole or in part in accordance to the General Public License (GPL). * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ /*****************************************************************************/ /*** snooper.c ***/ /*** ***/ /*** This program captures *all* packets that the network interface sees. ***/ /*** Be very careful with this tool, because you may see all lot of info. ***/ /*** Also, it uses the deprecated SOCK_PACKET socket type. The newer and ***/ /*** preferred method is with PF_PACKET. ***/ /*****************************************************************************/ #include <stdio.h> #include <sys/socket.h> #include <resolv.h> #include <arpa/inet.h> #include <errno.h> #include <sys/types.h> #include <linux/if_ether.h> #define IP_SIZE 4 #define ETH_SIZE 6 typedef enum { eETH_ADDR, eIP_ADDR } EAddress; typedef unsigned char uchar; /*--------------------------------------------------------------------*/ /* Ethernet Frame */ /* */ /* This structure defines the fields within the ethernet frame. Since */ /* this programs gets the lowest-level packet, fragmented packets are */ /* not reassembled. The first few fields contain the MAC addresses */ /* of the source and destination. Note that this structure is set for */ /* little-endian format. */ /*--------------------------------------------------------------------*/ struct ip_packet { struct { uchar dst_eth[ETH_SIZE]; uchar src_eth[ETH_SIZE]; uchar __unknwn[2]; } hw_header; /* hardware header */ uint header_len:4; /* header length in words in 32bit words */ uint version:4; /* 4-bit version */ uint serve_type:8; /* how to service packet */ uint packet_len:16; /* total size of packet in bytes */ uint ID:16; /* fragment ID */ uint frag_offset:13; /* to help reassembly */ uint more_frags:1; /* flag for "more frags to follow" */ uint dont_frag:1; /* flag to permit fragmentation */ uint __reserved:1; /* always zero */ uint time_to_live:8; /* maximum router hop count */ uint protocol:8; /* ICMP, UDP, TCP */ uint hdr_chksum:16; /* ones-comp. checksum of header */ uchar IPv4_src[IP_SIZE]; /* IP address of originator */ uchar IPv4_dst[IP_SIZE]; /* IP address of destination */ uchar options[0]; /* up to 40 bytes */ uchar data[0]; /* message data up to 64KB */ }; /*--------------------------------------------------------------------*/ /* dump */ /* */ /* Dump a block of data in hex & ascii. */ /*--------------------------------------------------------------------*/ void dump(void* b, int len) { unsigned char *buf = b; int i, cnt=0; char str[17]; memset(str, 0, 17); for ( i = 0; i < len; i++ ) { if ( cnt % 16 == 0 ) { printf(" %s\n%04X: ", str, cnt); memset(str, 0, 17); } if ( buf[cnt] < ' ' || buf[cnt] >= 127 ) str[cnt%16] = '.'; else str[cnt%16] = buf[cnt]; printf("%02X ", buf[cnt++]); } printf(" %*s\n\n", 16+(16-len%16)*2, str); } /*--------------------------------------------------------------------*/ /* PrintAddr */ /* */ /* Print the different types of address (MAC or IP). */ /*--------------------------------------------------------------------*/ void PrintAddr(char* msg, uchar *addr, EAddress is_ip) { int i; static struct { int len; char *fmt; char delim; } addr_fmt[] = {{ETH_SIZE, "%x", ':'}, {IP_SIZE, "%d", '.'}}; printf("%s", msg); for ( i = 0; i < addr_fmt[is_ip].len; i++ ) { printf(addr_fmt[is_ip].fmt, addr[i]); if ( i < addr_fmt[is_ip].len-1 ) putchar(addr_fmt[is_ip].delim); } } /*--------------------------------------------------------------------*/ /* GetProtocol */ /* */ /* Convert the protocol value into the alphabetic representation. */ /*--------------------------------------------------------------------*/ char* GetProtocol(int value) { switch (value) { case IPPROTO_IP: return "IP"; case IPPROTO_ICMP: return "ICMP"; case IPPROTO_IGMP: return "IGMP"; case IPPROTO_IPIP: return "IPIP"; case IPPROTO_TCP: return "TCP"; case IPPROTO_EGP: return "EGP"; case IPPROTO_PUP: return "PUP"; case IPPROTO_UDP: return "UDP"; case IPPROTO_IDP: return "IDP"; case IPPROTO_RSVP: return "RSVP"; case IPPROTO_GRE: return "GRE"; case IPPROTO_IPV6: return "IPV6/4"; case IPPROTO_PIM: return "PIM"; case IPPROTO_RAW: return "RAW"; default: return "???"; } } /*--------------------------------------------------------------------*/ /* DumpPacket */ /* */ /* Display the read packet with data and fields. */ /*--------------------------------------------------------------------*/ void DumpPacket(char *buffer, int len) { struct ip_packet *ip=(void*)buffer; printf("-------------------------------------------------\n"); dump(buffer, len); PrintAddr("Destination EtherID=", ip->hw_header.dst_eth, eETH_ADDR); PrintAddr(", Source EtherID=", ip->hw_header.src_eth, eETH_ADDR); printf("\nIPv%d: header-len=%d, type=%d, packet-size=%d, ID=%d\n", ip->version, ip->header_len*4, ip->serve_type, ntohs(ip->packet_len), ntohs(ip->ID)); printf("frag=%c, more=%c, offset=%d, TTL=%d, protocol=%s\n", (ip->dont_frag? 'N': 'Y'), (ip->more_frags? 'N': 'Y'), ip->frag_offset, ip->time_to_live, GetProtocol(ip->protocol)); printf("checksum=%d, ", ntohs(ip->hdr_chksum)); PrintAddr("source=", ip->IPv4_src, eIP_ADDR); PrintAddr(", destination=", ip->IPv4_dst, eIP_ADDR); printf("\n"); fflush(stdout); } void PANIC(char *msg); #define PANIC(msg) {perror(msg);exit(0);} /*--------------------------------------------------------------------*/ /* main */ /* */ /* Open socket. Repeatedly read and display records. */ /*--------------------------------------------------------------------*/ int main() { int sd, bytes_read; char data[1024]; sd = socket(PF_INET, SOCK_PACKET, htons(ETH_P_ALL)); if ( sd < 0 ) PANIC("Snooper socket"); do { bytes_read = recvfrom(sd, data, sizeof(data), 0, 0, 0); if ( bytes_read > 0 ) DumpPacket(data, bytes_read); } while ( bytes_read > 0 ); return 0; }
96
« en: Viernes 3 de Febrero de 2006, 06:00 »
Lo podes hacer sin usar la libreria pcap. Aca te posteo un source que esta en el libro "Programación de Socket Linux" de Walton. /* snooper.c * * Copyright (c) 2000 Sean Walton and Macmillan Publishers. Use may be in * whole or in part in accordance to the General Public License (GPL). * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ /*****************************************************************************/ /*** snooper.c ***/ /*** ***/ /*** This program captures *all* packets that the network interface sees. ***/ /*** Be very careful with this tool, because you may see all lot of info. ***/ /*** Also, it uses the deprecated SOCK_PACKET socket type. The newer and ***/ /*** preferred method is with PF_PACKET. ***/ /*****************************************************************************/ #include <stdio.h> #include <sys/socket.h> #include <resolv.h> #include <arpa/inet.h> #include <errno.h> #include <sys/types.h> #include <linux/if_ether.h> #define IP_SIZE 4 #define ETH_SIZE 6 typedef enum { eETH_ADDR, eIP_ADDR } EAddress; typedef unsigned char uchar; /*--------------------------------------------------------------------*/ /* Ethernet Frame */ /* */ /* This structure defines the fields within the ethernet frame. Since */ /* this programs gets the lowest-level packet, fragmented packets are */ /* not reassembled. The first few fields contain the MAC addresses */ /* of the source and destination. Note that this structure is set for */ /* little-endian format. */ /*--------------------------------------------------------------------*/ struct ip_packet { struct { uchar dst_eth[ETH_SIZE]; uchar src_eth[ETH_SIZE]; uchar __unknwn[2]; } hw_header; /* hardware header */ uint header_len:4; /* header length in words in 32bit words */ uint version:4; /* 4-bit version */ uint serve_type:8; /* how to service packet */ uint packet_len:16; /* total size of packet in bytes */ uint ID:16; /* fragment ID */ uint frag_offset:13; /* to help reassembly */ uint more_frags:1; /* flag for "more frags to follow" */ uint dont_frag:1; /* flag to permit fragmentation */ uint __reserved:1; /* always zero */ uint time_to_live:8; /* maximum router hop count */ uint protocol:8; /* ICMP, UDP, TCP */ uint hdr_chksum:16; /* ones-comp. checksum of header */ uchar IPv4_src[IP_SIZE]; /* IP address of originator */ uchar IPv4_dst[IP_SIZE]; /* IP address of destination */ uchar options[0]; /* up to 40 bytes */ uchar data[0]; /* message data up to 64KB */ }; /*--------------------------------------------------------------------*/ /* dump */ /* */ /* Dump a block of data in hex & ascii. */ /*--------------------------------------------------------------------*/ void dump(void* b, int len) { unsigned char *buf = b; int i, cnt=0; char str[17]; memset(str, 0, 17); for ( i = 0; i < len; i++ ) { if ( cnt % 16 == 0 ) { printf(" %s\nX: ", str, cnt); memset(str, 0, 17); } if ( buf[cnt] < ' ' || buf[cnt] >= 127 ) str[cnt] = '.'; else str[cnt] = buf[cnt]; printf("X ", buf[cnt++]); } printf(" %*s\n\n", 16+(16-len)*2, str); } /*--------------------------------------------------------------------*/ /* PrintAddr */ /* */ /* Print the different types of address (MAC or IP). */ /*--------------------------------------------------------------------*/ void PrintAddr(char* msg, uchar *addr, EAddress is_ip) { int i; static struct { int len; char *fmt; char delim; } addr_fmt[] = {{ETH_SIZE, "%x", ':'}, {IP_SIZE, "%d", '.'}}; printf("%s", msg); for ( i = 0; i < addr_fmt[is_ip].len; i++ ) { printf(addr_fmt[is_ip].fmt, addr[i]); if ( i < addr_fmt[is_ip].len-1 ) putchar(addr_fmt[is_ip].delim); } } /*--------------------------------------------------------------------*/ /* GetProtocol */ /* */ /* Convert the protocol value into the alphabetic representation. */ /*--------------------------------------------------------------------*/ char* GetProtocol(int value) { switch (value) { case IPPROTO_IP: return "IP"; case IPPROTO_ICMP: return "ICMP"; case IPPROTO_IGMP: return "IGMP"; case IPPROTO_IPIP: return "IPIP"; case IPPROTO_TCP: return "TCP"; case IPPROTO_EGP: return "EGP"; case IPPROTO_PUP: return "PUP"; case IPPROTO_UDP: return "UDP"; case IPPROTO_IDP: return "IDP"; case IPPROTO_RSVP: return "RSVP"; case IPPROTO_GRE: return "GRE"; case IPPROTO_IPV6: return "IPV6/4"; case IPPROTO_PIM: return "PIM"; case IPPROTO_RAW: return "RAW"; default: return "???"; } } /*--------------------------------------------------------------------*/ /* DumpPacket */ /* */ /* Display the read packet with data and fields. */ /*--------------------------------------------------------------------*/ void DumpPacket(char *buffer, int len) { struct ip_packet *ip=(void*)buffer; printf("-------------------------------------------------\n"); dump(buffer, len); PrintAddr("Destination EtherID=", ip->hw_header.dst_eth, eETH_ADDR); PrintAddr(", Source EtherID=", ip->hw_header.src_eth, eETH_ADDR); printf("\nIPv%d: header-len=%d, type=%d, packet-size=%d, ID=%d\n", ip->version, ip->header_len*4, ip->serve_type, ntohs(ip->packet_len), ntohs(ip->ID)); printf("frag=%c, more=%c, offset=%d, TTL=%d, protocol=%s\n", (ip->dont_frag? 'N': 'Y'), (ip->more_frags? 'N': 'Y'), ip->frag_offset, ip->time_to_live, GetProtocol(ip->protocol)); printf("checksum=%d, ", ntohs(ip->hdr_chksum)); PrintAddr("source=", ip->IPv4_src, eIP_ADDR); PrintAddr(", destination=", ip->IPv4_dst, eIP_ADDR); printf("\n"); fflush(stdout); } void PANIC(char *msg); #define PANIC(msg) {perror(msg);exit(0);} /*--------------------------------------------------------------------*/ /* main */ /* */ /* Open socket. Repeatedly read and display records. */ /*--------------------------------------------------------------------*/ int main() { int sd, bytes_read; char data[1024]; sd = socket(PF_INET, SOCK_PACKET, htons(ETH_P_ALL)); if ( sd < 0 ) PANIC("Snooper socket"); do { bytes_read = recvfrom(sd, data, sizeof(data), 0, 0, 0); if ( bytes_read > 0 ) DumpPacket(data, bytes_read); } while ( bytes_read > 0 ); return 0; }
Link al source code original.
97
« en: Lunes 16 de Enero de 2006, 16:27 »
A mi en particular me gusta mas Gnome, aunque es un tema de gustos. Igual deberias haber armado la votacion con mas opciones, hay muchos mas Window Managers/Desktops en Gnu/Linux.
98
« en: Miércoles 11 de Enero de 2006, 16:02 »
Si, si posteas el script seria lo mejor.
99
« en: Martes 10 de Enero de 2006, 22:17 »
Tal vez sea necesario modificar algunas cosas, pero se puede portar. Si lo posteas tal vez te podamos ayudar un poco mas.
100
« en: Martes 3 de Enero de 2006, 16:13 »
En este caso deberias usar $_GET (ya que las variables se envian en la Query String a traves del metodo GET de HTTP), si en cambio enviarias las variables a traves de un formulario deberias usar $_POST (ya que en este caso se utiliza el metodo POST de HTTP). Para mas informacion poder chequear las variables predefinidas.
Páginas: 1 2 3 [4] 5 6 ... 12
|
|
|