{"id":20552060,"url":"https://github.com/mjvl/invoke-rick","last_synced_at":"2025-03-06T05:48:26.655Z","repository":{"id":50608057,"uuid":"519348881","full_name":"MJVL/Invoke-Rick","owner":"MJVL","description":"Rickroll someone's Windows desktop, restoring their original background occasionally to drive them mad.","archived":false,"fork":false,"pushed_at":"2022-11-06T22:29:23.000Z","size":8256,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T17:01:38.310Z","etag":null,"topics":["meme","pentesting","powershell","red-team","rick-astley","rickroll","security-tools"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MJVL.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-29T21:03:04.000Z","updated_at":"2023-11-10T03:16:07.000Z","dependencies_parsed_at":"2023-01-21T04:01:47.271Z","dependency_job_id":null,"html_url":"https://github.com/MJVL/Invoke-Rick","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MJVL%2FInvoke-Rick","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MJVL%2FInvoke-Rick/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MJVL%2FInvoke-Rick/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MJVL%2FInvoke-Rick/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MJVL","download_url":"https://codeload.github.com/MJVL/Invoke-Rick/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242157193,"owners_count":20081037,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["meme","pentesting","powershell","red-team","rick-astley","rickroll","security-tools"],"created_at":"2024-11-16T02:34:56.866Z","updated_at":"2025-03-06T05:48:26.631Z","avatar_url":"https://github.com/MJVL.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Invoke-Rick\n\n\u003ch4 align=\"center\"\u003e\nRickroll someone's Windows desktop, restoring their original background occasionally to drive them mad.\u003c/h4\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"demo.gif\"/\u003e\n\u003c/p\u003e\n\nOptionally restore the original background on mouse and/or keyboard activity.\n\nFor more fun, set this on auto-run through use of the registry, services, injecting into PowerShell modules, or more.\n\n**Disclaimer:** I'm not responsible if this annoys blue or any other end user. I do not claim ownership over any referenced images or URLs, use at your own risk!\n\n## One-liner\nPowerShell\n```PowerShell\nSet-ExecutionPolicy Bypass -Scope Process -Force; iwr https://raw.githubusercontent.com/MJVL/Invoke-Rick/main/Invoke-Rick.ps1 -OutFile Invoke-Rick.ps1; .\\Invoke-Rick.ps1\n```\nCmd\n```\npowershell.exe -ExecutionPolicy Bypass -NonInteractive -c \"iwr https://raw.githubusercontent.com/MJVL/Invoke-Rick/main/Invoke-Rick.ps1 -OutFile Invoke-Rick.ps1; .\\Invoke-Rick.ps1\"\n```\n\n\n## Usage\n```\nSYNTAX\n    .\\Invoke-Rick.ps1 [[-URL] \u003cString\u003e] [[-ImagePath] \u003cString\u003e]\n    [[-FrameDelay] \u003cTimeSpan\u003e] [[-FakeoutDelay] \u003cTimeSpan\u003e] [[-FakeoutDuration] \u003cTimeSpan\u003e] [[-EndTime] \u003cDateTime\u003e]\n    [-WatchMouse] [-WatchKeyboard] [[-ActivityDelay] \u003cTimeSpan\u003e] [\u003cCommonParameters\u003e]\n\nPARAMETERS\n    -URL \u003cString\u003e\n        Location of zip containing rickroll images. Default = imgur zip.\n\n    -ImagePath \u003cString\u003e\n        Location to save image frames. Default = C:\\Windows\\Temp\\Rick.\n\n    -FrameDelay \u003cTimeSpan\u003e\n        Delay between each frame. Default = 1 second.\n\n    -FakeoutDelay \u003cTimeSpan\u003e\n        How long to rickroll until returning to the normal background. Default = 1 minute.\n\n    -FakeoutDuration \u003cTimeSpan\u003e\n        How long to remain on the normal background during a fakeout. Default = 5 minutes.\n\n    -EndTime \u003cDateTime\u003e\n        Absolute time to kill Invoke-Rick at. Default = run forever.\n\n    -WatchMouse [\u003cSwitchParameter\u003e]\n        Restore normal background if mouse movement is detected. Polling rate is linked with -FrameDelay.\n\n    -WatchKeyboard [\u003cSwitchParameter\u003e]\n        Restore normal background if keypresses is detected. Polling rate is linked with -FrameDelay.\n\n    -ActivityDelay \u003cTimeSpan\u003e\n        How long to remain on the normal background after detecting movement from the mouse or keyboard. Default = 1\n        minute\n\n    -Verbose\n        Show debug information.\n\n    -------------------------- EXAMPLE 1 --------------------------\n\n    PS\u003eiex powershell.exe -ExecutionPolicy Bypass -NonInteractive -c \"iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/MJVL/Invoke-Rick/blob/main/Invoke-Rick.ps1'))\"\n        Download and run this script remotely.\n\n    -------------------------- EXAMPLE 2 --------------------------\n\n    PS\u003e.\\Invoke-Rick.ps1 -WatchMouse -WatchKeyboard -ActivityDelay (New-TimeSpan -Seconds 30)\n        Rickroll, restoring the original background for 30 seconds if keyboard or mouse activity is detected.\n\n    -------------------------- EXAMPLE 3 --------------------------\n\n    PS\u003e.\\Invoke-Rick.ps1 -FakeoutDuration (New-TimeSpan -Minutes 2) -EndTime ((Get-Date).AddMinutes(5))\n        Rickroll for 5 minutes, showing the user's original background every 2 minutes.\n\n    -------------------------- EXAMPLE 4 --------------------------\n\n    PS\u003e.\\Invoke-Rick.ps1 -Verbose\n        Show debug information.\n\n    -------------------------- EXAMPLE 5 --------------------------\n\n    PS\u003eGet-Help .\\Invoke-Rick.ps1 -Detailed\n        Get detailed help.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmjvl%2Finvoke-rick","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmjvl%2Finvoke-rick","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmjvl%2Finvoke-rick/lists"}