what i want to do is in a file called settings.ini there 3 lines of things
a dll
a process
and a delay
well what i want it to do is use the name of the dll in a sentance so i can say something like
the thing you are injecting is (the name of dll in the settings.ini file) i hope you have fun
but what i want it to do is when someone puts another dll into there it will say that name instead but i dont know how
well here's the code so far
if anyone could help that would be nice
a dll
a process
and a delay
well what i want it to do is use the name of the dll in a sentance so i can say something like
the thing you are injecting is (the name of dll in the settings.ini file) i hope you have fun
but what i want it to do is when someone puts another dll into there it will say that name instead but i dont know how
well here's the code so far
Code:
#include <windows.h> #include <iostream> #include <string> #include <fstream> using namespace std; #include "Injector.h" string process, dll, delay; int rsult = -1; int main() { ifstream file ("Settings.ini"); getline (file,dll); getline (file,process); getline (file,delay); file.close(); dll = file cout << "----------------loopy Injector---------------" << endl << "----------------Made By loopylukas----------------" << endl << endl << "Waiting for " << process << "..."; for (;;) { if (IsRunning(process.c_str())) { cout << endl << "Waiting " << delay << " ms" << endl; Sleep (atoi(delay.c_str())); rsult = InjectDll(GetPid(process.c_str()), dll.c_str()); break; } cout << "."; Sleep (50); } if (rsult == 0) cout << endl << "Injection Sucess!" << endl; else cout << endl << "Injection Failed!" << endl; Sleep (1000); return 0; }
Comment