
Set Wallpaper Meterpreter Script
Certainly nothing to fuss over, but I've had a fascination with setting my target's wallpaper as sort of a calling card for years now. I've been able to set the registry key (HKCU\Control Panel\Desktop\Wallpaper), but until recently I didn't know how to get it to refresh so that it displayed without forcing the user to log out...
First, is the most important part, selection of the wallpaper. This is my first selection:
But, it has to be a BMP. So, I created:
metasploit_1024.bmp (2.3 MB)
next run: reg add "HKCU\Control Panel\Desktop" /v Wallpaper /t REG_MULTI_SZ /d "C:\metasploit_1024.bmp"
and finally the magic:
rundll32.exe user32.dll,UpdatePerUserSystemParameters
thats it, run that, and it'll refresh the settings and display the wallpaper in all of it's glory. But I wouldn't be a metasploit dog if I didn't make it into a meterpreter script:
download: wallpaper.rb
it's definitely not ready to be in the trunk, but it works, just edit each of the options in the file to point at the bmp you want on the victim's wallpaper and it'll be there.
Todo:
[*] Make each parameter an option so there is no text editing involved
[*] Add the ability to convert other image types on the fly
[*] Figure out how to get the desktop color to refresh with the wallpaper
Certainly nothing to fuss over, but I've had a fascination with setting my target's wallpaper as sort of a calling card for years now. I've been able to set the registry key (HKCU\Control Panel\Desktop\Wallpaper), but until recently I didn't know how to get it to refresh so that it displayed without forcing the user to log out...
First, is the most important part, selection of the wallpaper. This is my first selection:
But, it has to be a BMP. So, I created:
metasploit_1024.bmp (2.3 MB)
next run: reg add "HKCU\Control Panel\Desktop" /v Wallpaper /t REG_MULTI_SZ /d "C:\metasploit_1024.bmp"
and finally the magic:
rundll32.exe user32.dll,UpdatePerUserSystemParameters
thats it, run that, and it'll refresh the settings and display the wallpaper in all of it's glory. But I wouldn't be a metasploit dog if I didn't make it into a meterpreter script:
download: wallpaper.rb
it's definitely not ready to be in the trunk, but it works, just edit each of the options in the file to point at the bmp you want on the victim's wallpaper and it'll be there.
Todo:
[*] Make each parameter an option so there is no text editing involved
[*] Add the ability to convert other image types on the fly
[*] Figure out how to get the desktop color to refresh with the wallpaper
BSER will announce Rajasthan Board 8th Result 2021 in the first week of June 2021. More than 11 lakh students will be waiting for the 8th board RBSE result 2021 date. The board will publish class 8 result 2021 Rajasthan Board on rajeduboard.rajasthan.gov.in and rajresults.nic.in. Students will need to visit Rajasthan Ajmer 8th board result 2021 website to access their results. Roll number is the key credential to check 8 class board result 2021. The direct link to check the RBSE 8th result 2021 will be provided here asRBSE 8th Board Result 2021 soon as it is announced. Only students who appear for March 2021 will be able to access rajresults.nic.in 2021 Class 8 result.
ReplyDelete