Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Windows.h>
- #include <vector>
- #include "stdafx.h"
- #include <windows.h>
- #include <iostream>
- using namespace std;
- int main()
- {
- typedef int(__stdcall *f_funci)();
- HANDLE dll = LoadLibrary(L"C:\\Users\\MyPC\\Desktop\\DumpShark\\step_by_step.dll");
- int ordinal[] = { 20, 15, 3, 4, 19, 29, 30, 21, 8, 14, 28, 6, 29, 30, 23, 25, 1, 2, 18, 27, 9, 23, 29, 24, 5, 10,1};
- FARPROC fn[27];
- for (int i = 0; i < 27; i++) {
- fn[i] = GetProcAddress((HMODULE)dll, (LPCSTR)MAKEINTRESOURCE(ordinal[i]));
- }
- FARPROC print= GetProcAddress((HMODULE)dll, (LPCSTR)"Print");
- for (int i = 26; i >=0; i--) {
- BYTE res = (BYTE)fn[i]();
- }
- print();
- cout<< endl;
- FreeLibrary((HMODULE)dll);
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement