Jump to content
Hak5 Forums
jafahulo

[PAYLOAD] UnifiedRickRollWindows

Recommended Posts

Looks like an amazing script! How is the time configuration setting used? 1051 doesn't really say anything in time for me.

Share this post


Link to post
Share on other sites
2 hours ago, Bryfi said:

Looks like an amazing script! How is the time configuration setting used? 1051 doesn't really say anything in time for me.

ahh yes, my bad. I'll update that. The format for the time goes like this: How many hours have passed since midnight + how many minutes have passed since that hour started.

 

As an example: 1:39am would be 139, 1:39pm would be 1339 (it's in 24 hour format, not 12), 5:03pm would be 173, and 5:02am would be 52.

 

This is kinda confusing at first, but if you tinker with it for a couple minutes, it's pretty easy to figure out. Additionally, you can run this in any powershell window, and it will set the current time in that format to $time:

$time=(Get-Date).Hour.toString()+(Get-Date).Minute.toString()

 

Let me know if you have anymore questions!

Edited by jafahulo

Share this post


Link to post
Share on other sites
1 hour ago, zarbam said:

Is there a way to cancel this script from running before the time specified?

Are you asking if there's a way to stop the prank from being pulled after you started it on a computer?

If so, you can go to the task manager, and look for the power-shell processes towards the bottom of the list. It's hard to tell which power-shell process is the prank, but if you know that the victim doesn't use power-shell for anything, just kill them all the ones you see.

Share this post


Link to post
Share on other sites
4 hours ago, MikeM said:

Can you change the link to another video?? I tried and the red LED pops up.

Yes, you can. Make sure you only change the url, and not the quotes or backslashes encasing it.

Share this post


Link to post
Share on other sites

It doesn't seem to work for me. I'm trying to get it to run at 4:20 PM.

Here is my code (converted to duckyscript):

REM Rick Roll at specific time of day
REM Set time according to:
REM https://github.com/hak5/bashbunny-payloads/blob/master/payloads/library/prank/UnifiedRickRollWindows/README.md
GUI r
DELAY 200
STRING cmd -A '/t:fe /k mode con: lines=1 cols=15'
DELAY 200
ENTER
DELAY 500
STRING powershell -NoP -NonI -W Hidden -Exec Bypass  \$hi=0\; \$ho=\(Get-Date\).Hour.toString\(\)\; while \(\$hi -eq \'0\'\) \{ if \(\$ho -eq 1620 \) \{\$vol=new-object -com wscript.shell\; For\(\$i=0\; \$i -le 50\; \$i\+\+\)\{\$vol.SendKeys\(\[char\]175\)\}\; start \"https://www.youtube.com/watch?v=dQw4w9WgXcQ\" \; \$hi=1\; \} \$ho=\(Get-Date\).Hour.toString\(\)\+\(Get-Date\).Minute.toString\(\)\;\}
DELAY 500
ENTER
GUI r
DELAY 1000
STRING powershell -WindowStyle Hidden -Exec Bypass "Remove-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU' -Name '*' -ErrorAction SilentlyContinue"
ENTER

 

Share this post


Link to post
Share on other sites
On 5/10/2018 at 3:29 PM, Finianb1 said:

Nevermind I'm dumb I have to unescape it.

Haha, I've done that too many times ? 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×