Ir para conteúdo
Fórum Script Brasil

Eddie_666

Veteranos
  • Total de itens

    3.106
  • Registro em

  • Última visita

Tudo que Eddie_666 postou

  1. Eddie_666

    Ler Codigos..

    tenta explicar melhor o q tuquer...
  2. Eddie_666

    Worm E Virus

    a diferença basica é q worm utiliza uma rede de computadores para se propagar. portanto, o que é conhecido como virus na internet, na verdade, são worms...
  3. Eddie_666

    Bitis...

    ai vao umas funções para manipular bits: arquivo header /***************************************************************************** * * * --------------------------------- bit.h -------------------------------- * * * *****************************************************************************/ #ifndef BIT_H #define BIT_H /***************************************************************************** * * * --------------------------- Public Interface --------------------------- * * * *****************************************************************************/ int bit_get(const unsigned char *bits, int pos); void bit_set(unsigned char *bits, int pos, int state); void bit_xor(const unsigned char *bits1, const unsigned char *bits2, unsigned char *bitsx, int size); void bit_rot_left(unsigned char *bits, int size, int count); #endif arquivo.c /***************************************************************************** * * * --------------------------------- bit.c -------------------------------- * * * *****************************************************************************/ #include <string.h> #include "bit.h" /***************************************************************************** * * * -------------------------------- bit_get ------------------------------- * * * *****************************************************************************/ int bit_get(const unsigned char *bits, int pos) { unsigned char mask; int i; /***************************************************************************** * * * Set a mask for the bit to get. * * * *****************************************************************************/ mask = 0x80; for (i = 0; i < (pos % 8); i++) mask = mask >> 1; /***************************************************************************** * * * Get the bit. * * * *****************************************************************************/ return (((mask & bits[(int)(pos / 8)]) == mask) ? 1 : 0); } /***************************************************************************** * * * -------------------------------- bit_set ------------------------------- * * * *****************************************************************************/ void bit_set(unsigned char *bits, int pos, int state) { unsigned char mask; int i; /***************************************************************************** * * * Set a mask for the bit to set. * * * *****************************************************************************/ mask = 0x80; for (i = 0; i < (pos % 8); i++) mask = mask >> 1; /***************************************************************************** * * * Set the bit. * * * *****************************************************************************/ if (state) bits[pos / 8] = bits[pos / 8] | mask; else bits[pos / 8] = bits[pos / 8] & (~mask); return; } /***************************************************************************** * * * -------------------------------- bit_xor ------------------------------- * * * *****************************************************************************/ void bit_xor(const unsigned char *bits1, const unsigned char *bits2, unsigned char *bitsx, int size) { int i; /***************************************************************************** * * * Compute the bitwise XOR (exclusive OR) of the two buffers. * * * *****************************************************************************/ for (i = 0; i < size; i++) { if (bit_get(bits1, i) != bit_get(bits2, i)) bit_set(bitsx, i, 1); else bit_set(bitsx, i, 0); } return; } /***************************************************************************** * * * ----------------------------- bit_rot_left ----------------------------- * * * *****************************************************************************/ void bit_rot_left(unsigned char *bits, int size, int count) { int fbit, lbit, i, j; /***************************************************************************** * * * Rotate the buffer to the left the specified number of bits. * * * *****************************************************************************/ if (size > 0) { for (j = 0; j < count; j++) { for (i = 0; i < (size / 8); i++) { /******************************************************************** * * * Get the bit about to be shifted off the current byte. * * * ********************************************************************/ lbit = bit_get(&bits[i], 0); if (i == 0) { /***************************************************************** * * * Save the bit shifted off the first byte for later. * * * *****************************************************************/ fbit = lbit; } else { /***************************************************************** * * * Set the rightmost bit of the previous byte to the leftmost * * bit about to be shifted off the current byte. * * * *****************************************************************/ bit_set(&bits[i - 1], 7, lbit); } /******************************************************************** * * * Shift the current byte to the left. * * * ********************************************************************/ bits[i] = bits[i] << 1; } /*********************************************************************** * * * Set the rightmost bit of the buffer to the bit shifted off the * * first byte. * * * ***********************************************************************/ bit_set(bits, size - 1, fbit); } } return;
  4. utiliza o find para achar find / -name mysqld
  5. Eddie_666

    Cron + Mysql

    tu podes utilizar qualquer um dos que tu falou, no entanto, creio que seja mais facil com o php tendo em vista o acesso nativo que ele tem. dai so programar o script para rodar em um horario programado. lembrando, tu pode criar um script php que rode no bash, não precisa ser obrigatoriamente o navegador.
  6. Eddie_666

    Servidor Web

    baixa as aplicações e instala, acho que não entendi direito a tua pergunta....
  7. Eddie_666

    Que Erro E?

    provavelmente tu não estas com o gcc instalado, por isso ele não consegue compilar...
  8. Eddie_666

    Como Fechar Portas

    telnet e ftp... so entrar (como root) no arquivo /etc/inetd.conf e comentar (#) as seguintes linhas ftp stream tcp nowait root /usr/sbin/tcpd proftpd telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd
  9. quanto de memoria tem teu pc?
  10. te aconselho a dar tb uma pesquisada no forum q isso já foi discutido
  11. so uma duvida: p q tu não tenta fazer?
  12. Eddie_666

    Formulario De Compra E Venda

    ou então utiliza uma lógica onde ele possa adicionar um produto (pode ser em uma tabela do banco com o id da compra dele como indice) e dp voltar para adicionar mais, ate que ele clique em algo do tipo "finalizar compra"
  13. Eddie_666

    Tem Erro Aqui?

    pelo que entendi é a tua query, se tu queres selecionar so o campo RG, utiliza SELECT rg FROM cadastro WHERE rg = '$_POST[rg]'
  14. Eddie_666

    Como Fechar Portas

    dependendo das portas, basta desabilitar os serviços que estao rodando nelas... quais portas?
  15. Eddie_666

    Compiler C

    digita which gcc
  16. Eddie_666

    Nfs

    http://www.ietf.org/rfc/rfc1094.txt?number=1094 aqui está a especificação do protocolo, ou seja, a RFC dele. Vou mover para redes porque fica melhor lá.
  17. cara, quando o assunto é firewall para windows, eu gosto do kerio, pois alem de ser muito bom, é gratuito para uso caseiro.
  18. minha simples opiniao; window$ coloca um linux q resolve
  19. cara, isso tem de monte por ai, tenta em www.vivaolinux.com mas tb utiliza as paginas man (man comando) quando tiver duvidas!
  20. Eddie_666

    Moderador Asp

    Pessoal, so para esclarecer as coisas, o forum tem regras, e nelas está claro que a escolha de moderadores será feita pelos administradores do forum, os motivos que é um pouco mais antigo no forum sabe muito bem. Antigamente as votações eram todas publicas e isso gerou muitos problemas. Considerando tudo isso, a presente votação não terá valor e iremos decidir quais medidas tomar a respeito, mas primeiramente, vamos apurar o que realmente aconteceu para não sermos injustos com nenhum dos usuários.
  21. Eddie_666

    Quero Linux

    lindows ate onde eu sei é um linux...
  22. Eddie_666

    Like

    exato
  23. quando register globals ta off, tu tens que utilizar $_GET[nome_var] e $_POST[nome_var] quando elas vem de uma query string ou de um formulario respectivamente. provavelmente é esse o teu problema.
  24. Eddie_666

    E-mail

    parece erro de permissao no servidor.
×
×
  • Criar Novo...