elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Guía rápida para descarga de herramientas gratuitas de seguridad y desinfección


  Mostrar Temas
Páginas: [1] 2 3 4
1  Programación / .NET (C#, VB.NET, ASP) / Duda en SQL Server en: 5 Agosto 2015, 19:31 pm
Bueno, no se si postear esto en bases de datos o aquí.

Tengo una aplicación en C# que utiliza SQL Server Management. Como hago para importar esa base de datos a otra PC?? O tengo que instalar SQL Server Management en la PC en la que lo quiero usar y crear la base de datos nuevamente?

Saludos
2  Programación / Ingeniería Inversa / [Reto] Go Crack II en: 1 Julio 2015, 06:22 am
Volví, les dejo este nuevo Crack Me (espero haber perfeccionado un poco en lo que es proteger aplicaciones .NET).

Download:

http://www.mediafire.com/download/a2hfsxhef6ssy84/Go+Crack+-+II.rar

Suerte!
3  Programación / Ingeniería Inversa / Evitar ver código de .net en: 15 Junio 2015, 04:17 am
Hola, estaría necesitando saber como evitar que programas me lean el código de un programa en C#. Tengo entendido que se hace con themida, pero no encuentro una versión full (si alguien me la facilita estaría muy agradecido).

Si me recomiendan otro programa mejor, se los agradecería.
4  Programación / Programación C/C++ / Problema con Pilas en: 5 Junio 2015, 19:50 pm
Bueno, estoy haciendo un ejercicio para la facultad con pilas y secuencias (archivos de texto). El problema es que al pasar la pila a las funcionas para manejarla, me tira el siguiente error:

warning: passing argument 1 of 'pVacia' from incompatible pointer type [enabled by default]|
note: expected 'struct TPila *' but argument is of type 'struct TPila **'|
warning: passing argument 1 of 'pSacar' from incompatible pointer type [enabled by default]|
note: expected 'struct TPila *' but argument is of type 'struct TPila **'|
warning: passing argument 2 of 'pSacar' from incompatible pointer type [enabled by default]|
note: expected 'char *' but argument is of type 'char **'|
warning: passing argument 1 of 'pVacia' from incompatible pointer type [enabled by default]|
note: expected 'struct TPila *' but argument is of type 'struct TPila **'|
warning: passing argument 1 of 'sacarPila' from incompatible pointer type [enabled by default]|
note: expected 'char *' but argument is of type 'char **'|
warning: passing argument 3 of 'sacarPila' from incompatible pointer type [enabled by default]|
note: expected 'struct TPila *' but argument is of type 'struct TPila **'|
warning: passing argument 1 of 'pPoner' from incompatible pointer type [enabled by default]|
note: expected 'struct TPila *' but argument is of type 'struct TPila **'|
warning: passing argument 2 of 'pPoner' makes integer from pointer without a cast [enabled by default]|

Acá dejo el code y el header:

Código
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include "Pila.h"
  4.  
  5. #define MAX 50
  6.  
  7. void sacarPila(char *c, int n, TPila *p)
  8. {
  9.    int i = 0;
  10.  
  11.    while(!pVacia(&p) && i <= n)
  12.    {
  13.        pSacar(&p, &c);
  14.        i += 1;
  15.    }
  16.  
  17.    if(pVacia(&p))
  18.    {
  19.        printf("La pila esta vacia\n");
  20.    }
  21. }
  22.  
  23. void esDigito(char *c, TPila *p)
  24. {
  25.    int i = 10;
  26.  
  27.    switch(*c)
  28.    {
  29.        case '0': i = 0;
  30.        case '1': i = 1;
  31.        case '2': i = 2;
  32.        case '3': i = 3;
  33.        case '4': i = 4;
  34.        case '5': i = 5;
  35.        case '6': i = 6;
  36.        case '7': i = 7;
  37.        case '8': i = 8;
  38.        case '9': i = 9;
  39.    }
  40.  
  41.    if( i != 10)
  42.    {
  43.        sacarPila(&c, i, &p);
  44.    }
  45.    else
  46.    {
  47.        pPoner(&p, c);
  48.    }
  49. }
  50.  
  51. void vaciarPila(TPila *p)
  52. {
  53.    int i = 0;
  54.  
  55.    for(i=0; i<MAX; i++)
  56.    {
  57.        (*p).elem[i] = 0;
  58.    }
  59. }
  60.  
  61. int main()
  62. {
  63.    char c;
  64.    TPila p;
  65.    FILE *arch;
  66.    arch = fopen("secuencia.txt", "r");
  67.  
  68.    vaciarPila(&p);
  69.    if ( arch == NULL )
  70.   {
  71.   printf("- No se puede abrir el Archivo\n");
  72. return 0;
  73. }
  74.  
  75.    while((feof(arch) == 0) && !pLlena(&p))
  76.    {
  77.        c = fgetc(arch);
  78.        esDigito(&c, &p);
  79.    }
  80.  
  81.    while(!pLlena(&p))
  82.    {
  83.        pSacar(&p, &c);
  84.        printf("%c", c);
  85.    }
  86.    return 0;
  87. }

Código
  1. #include <stdlib.h>
  2. #include <stdbool.h>
  3.  
  4. #define MAX 50
  5.  
  6. typedef struct Pila
  7. {
  8.    int elem[MAX];
  9.    int cima;
  10. }TPila;
  11.  
  12. bool pVacia(TPila *p)
  13. {
  14.    return (*p).cima == 0;
  15. }
  16.  
  17. bool pLlena(TPila *p)
  18. {
  19.    return (*p).cima == MAX;
  20. }
  21.  
  22. void pCrear(TPila *p)
  23. {
  24.    (*p).cima = 0;
  25. }
  26.  
  27. void pPoner(TPila *p, char x)
  28. {
  29.    (*p).cima = (*p).cima + 1;
  30.    (*p).elem[(*p).cima] = x;
  31. }
  32.  
  33. void pSacar(TPila *p, char *c)
  34. {
  35.    *c = (*p).elem[(*p).cima];
  36.    (*p).cima = (*p).cima + 1;
  37. }
5  Programación / .NET (C#, VB.NET, ASP) / Problema con contextmenu en: 25 Mayo 2015, 19:15 pm
Bueno, mi idea era que cuando un usuario haga click derecho en una celda de un datagridview, se le abra un contextmenu con la opción para eliminar esa fila.

Pero al hacer click derecho, no aparece el menu. Acá el código que uso:

Código
  1. private void dataGridView1_MouseDown(object sender, MouseEventArgs e)
  2.        {
  3.            if (e.Button == MouseButtons.Right)
  4.            {
  5.                contextMenuStrip1.Show(MousePosition);
  6.            }
  7.        }
6  Programación / .NET (C#, VB.NET, ASP) / Object reference not set to an instance of an object. en: 16 Mayo 2015, 23:03 pm
Bueno, tengo un datagridview, y lo quiero recorrer para pasar todo a un archivo .dat.

El problema llega cuando aprieto el boton para pasarlo todo, y me sale este error:

"Object reference not set to an instance of an object."

Busque info en internet para resolverlo, pero no encontre mucho. Alguien sabe como resolverlo?

Código
  1.            String line = "";
  2.            StreamWriter writer = File.AppendText(path + "\\update.dat");
  3.            String value = "";
  4.  
  5.            for (int rows = 0; rows < dataGridView1.Rows.Count - 1; rows++)
  6.            {
  7.                line = Base64Decode("BQ==") + Base64Decode("Aw==") + "1" + Base64Decode("BA==") + Base64Decode("Aw==");
  8.                for (int col = 0; col < dataGridView1.Rows[rows].Cells.Count - 1; col++)
  9.                {
  10.                    line += col+1.ToString() + Base64Decode("Bg==");
  11.                    value = dataGridView1.Rows[rows].Cells[col].Value.ToString();
  12.  
  13.                    if (value == "-")
  14.                    {
  15.                        line += Base64Decode("Bg==");
  16.                    }
  17.                    else
  18.                    {
  19.                        line += value + Base64Decode("Bg==");
  20.                    }
  21.                }
  22.  
  23.                line += Base64Decode("BA==");
  24.  
  25.                writer.WriteLine(line);

El error me lo tira acá:

Código
  1. value = dataGridView1.Rows[rows].Cells[col].Value.ToString();
7  Programación / .NET (C#, VB.NET, ASP) / Problema con checkbox en: 6 Mayo 2015, 06:18 am
Bueno, mi problema es medio raro. Simplemente coloque un checkbox, que al clickearlo se active el textBox.

Lo mas raro de todo esto, es que cuando clickeo en el, no se habilita el checkbox... Es como si no me tomara el check.

Código que uso:

Código
  1. public Form1()
  2.        {
  3.            InitializeComponent();
  4.            textBox2.Enabled = false;
  5.  
  6.        }
  7.  
  8.        private void checkBox1_CheckedChanged(object sender, EventArgs e)
  9.        {
  10.            if (checkBox1.Checked == true)
  11.            {
  12.                textBox2.Enabled = true;
  13.            }
  14.            else
  15.            {
  16.                textBox2.Enabled = false;
  17.            }
  18.        }
8  Programación / Ingeniería Inversa / [Reto] CrackMe II (Nivel: Fácil) en: 2 Mayo 2015, 16:26 pm
Segundo CrackMe, diviértanse.


Descarga: https://mega.co.nz/#!dsdkXAZS!ZBjlqvyJ5ihrje4z1Bd5pgo3I_qprbwtbmzHKmlwMLI
9  Programación / Ingeniería Inversa / [Reto] CrackMe I (Nivel: Básico / SuperFácil) en: 27 Abril 2015, 01:50 am
Bueno, programo en C# (Aplicaciones comerciales mas que nada). Les voy a hacer CrackMe's mas que nada para aprender a proteger mis aplicaciones (a la mayoría las protejo con HWID con MySQL, pero nose que tan seguro es...).

Les dejo este pequeño y muy simple CrackMe, es muy, pero muy básico y extremadamente fácil (Para los que recién empiezan).

Simplemente tienen que ingresar un código y este les va a dar el mensaje si lo resolvieron o si no lo hicieron.

Link: http://www.mediafire.com/download/8qxk7pk84c3hr6j/CrackMe1.exe

Saludos
10  Programación / .NET (C#, VB.NET, ASP) / Problema de accesibilidad en: 2 Abril 2015, 05:41 am
Hola, tengo un problema que no puedo solucionar. Me arroja error al tratar de pasar un registro como parámetro a un método.

Error:
Citar
Error   1   Incoherencia de accesibilidad: el tipo de parámetro 'registro' es menos accesible que el método 'método'

Código donde me arroja el error:

Código
  1. public partial class Form1 : Form
  2.    {
  3.        struct registro
  4.        {
  5.            public String nombre;
  6.            public String apellido;
  7.            public String dias;
  8.            public String horario;
  9.        }
  10.  
  11. public void ObtenerAlumno(registro alumno, int d)
  12.        {
  13.            char hora = ObtenerHorario(alumno.horario, alumno.dias, d);
  14.            String horario = HoraACadena(hora);
  15.            richTextBox1.Text = alumno.nombre + "   " + alumno.apellido + "   ";
  16.  
  17.        }
  18.  
  19. public Form1()
  20.        {
  21.            InitializeComponent();
  22.  
  23.            registro alumno;
  24.            int nd = 0;
  25.            ObtenerAlumno(alumno, nd);
  26.        }
Páginas: [1] 2 3 4
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines