Snow_Flake

if_stolen_laptop

Aug 25th, 2014
403
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. An even better option (tested on XP): Run your script as a service, and hide it from (most) users by renaming the needed files to common system files.
  2.  
  3. - Get ServiceEx.exe
  4. - Get Resource Hacker
  5. - Get IcoFX
  6. - Get Compile_AHK II
  7.  
  8. 1: Patch/modify ServiceEx.exe to look like svchost.exe
  9.  
  10. - Make a copy of ServiceEx.exe and open it in Resource Hacker
  11. - Start IcoFX, select "Open" and browse to the WINDOWS\system32 folder to open shell32.dll. Select the third icon (the application icon) and save it as a new .ico file
  12. - Switch to Resource Hacker and to the Icon Group nr 101, select it, and select "Action > Replace icon". Select the .ico file you just saved from IcoFX
  13. - Open a second instance of Resource Hacker, select "Open" and browse to the WINDOWS\system32 folder to open svchost.exe
  14. - Go to the Version Info, select all, copy it, and paste it into the same Version Info field of your ServiceEx.exe copy. Press the "Compile Script" button.
  15. - Save the modified ServiceEx.exe as "svchost.exe"
  16.  
  17. 2: Create your checking script and modify it to look like wmiprvse.exe
  18.  
  19. - Create your "checking" script. It will be always running as a service. Make sure you use the #NoTrayIcon option.
  20. - Open Resource Hacker, select "Open" and browse to the WINDOWS\system32\dllcache folder to open wmiprvse.exe. Go to the Version Info
  21. - Select your script, right-click and select: "Compile with Compile_AHK II"
  22. - Tab1 > Compression: select "No UPX". Tab2 > Version Info: copy the information from the original wmiprvse.exe in Resource Hacker to the fields in Compile_AHK II. Tab3 > Icons: select the "application icon" you previously created for all icon options.
  23. - Compile your script.
  24. - Rename to wmiprvse.exe
  25.  
  26. 3: Move renamed files to system folder
  27.  
  28. - Copy your ServiceEx.exe/svchost.exe and your script.exe/wmiprvse.exe to your WINDOWS\system directory (not WINDOWS\system32!)
  29. - Create an init.ini file in that same folder and use the following contents:
  30.  
  31. Quote
  32. [ServiceEx]
  33. ServiceExeFullPath="C:\WINDOWS\system\wmiprvse.exe"
  34. options=test
  35. desktop=true
  36. Start=Auto
  37. StartNow=true
  38.  
  39. 4: Add a registry entry for autostart
  40.  
  41. - Open RegEdit and go to "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
  42. - Add a new entry for your program, name it something "neutral", like "clipmntr" or something, and set the "value" to:
  43.  
  44. "C:\WINDOWS\system\svchost.exe install init"
  45.  
  46. This is the command-line ServiceEx expects: it will install and run the file defined in the "init.ini". ServiceEx will prevent the script from stopping, so, if the script is closed/killed, ServiceEx will start it again.
  47.  
  48. NB: You will need Admin-access, and it is a good idea to test it (especially on network settings/firewall) and make sure your AntiVirus doesn't freak out (it should).
  49.  
  50. This is how it looks like in Windows Taskmanager/Sysinternals Process Explorer.
  51.  
  52. Most "common" users will not notice something "different".
  53.  
  54. Posted Image
  55.  
  56. You can create a script that triggers a "recording session" if an unlocking password is not supplied in time (see my previous posting). You could check for network connection (A_Ping), record external IP (the most important info you need), make screenshots, record keystrokes, anything you want to know, and use email (CDOCOM) or an other means to send the information to you. You could even create a kill-switch (delete important files), but be very careful with that one.
  57.  
  58. DO NOT ABUSE!
Advertisement
Add Comment
Please, Sign In to add comment