AutoIt is amazing. They have a website. Read about it there because it would be a waste of my time to try and explain it to you. The help file is massive so anything you need, you can find there. Also, if you want to use the user created functions and such, everything's in the help file. It really is rather extensive.
So, onto an example. This is basically an example of a script that you can run from an autoexec.bat on someone else's computer to give them a fake and very obvious virus. Let's begin:
#include <GUIConstantsEx.au3>
You will need this line to allow you to use the GUI controls. We will be creating the GUI as an overlay on top of everything on the screen. This will make the user think that something weird is going on with their computer because they can't see any of their windows.
$loop = 0 $x = 1 WinMinimizeAll() GUICreate("LOL PWN TIME", 4000, 4000)
These two variables are needed for a little bit later on. Explanation to follow. Line 3 minimizes all of the other windows which isn't really necessary but it's a pretty cool action to use in some other scripts. Line 4 is obviously the GUI creation. It's 4000 by 4000 because I'm not aware of many people that run their resolution this high so it's likely to work with everyone but by all means, change it to your liking.
while $loop < 20 <span style="white-space: pre;"> </span>ProcessClose("taskmgr.exe") <span style="white-space: pre;"> </span>GUISetState(@SW_SHOW) <span style="white-space: pre;"> </span>GUISetBkColor(0xFF0000) <span style="white-space: pre;"> </span>MouseMove($loop, $loop + 1) <span style="white-space: pre;"> </span>GUISetBkColor(0x000000) <span style="white-space: pre;"> </span>GUISetBkColor(0xFFFFFF) <span style="white-space: pre;"> </span>for $x = 300 to 3000 step 300 <span style="white-space: pre;"> </span>BlockInput(1) <span style="white-space: pre;"> </span>Beep($x,1) <span style="white-space: pre;"> </span>Next <span style="white-space: pre;"> </span>$loop = $loop + 1 wend
Here is the meat of the script, as well as those variables that I promised earlier. The while loop is there to control the amount of times the screen will flash. If you want an infinite loop, you can either set this to = 0 and comment out the second to last line or just comment out the second to last line; it's really up to you. Line 2 closes any attempts that the user makes at pressing ctrl + alt + del so that they think that their pc is truly locked up. Line 3 shows the GUI. Line 4 sets the colour of the GUI to red. Line 5 moves the mouse creepily. You can set this to a randomly generated number but it will only work really well on fast machines, not on the ones with crappy processors. Lines 6 & 7 sets the GUI colours to black and white respectively. You can change any one of the colour lines for any colour that you like, as well as add a sleep if you want one to stay on for longer.
Line 8 is where the beep is generated. 300 to 3000 is a pretty good range for the beep frequency but feel free to play around with this as some interesting things can happen when you do. The 'step' is basically how many tones you want in between 300 and 3000. if you do step 1 then it will play every sound which is interesting but takes a very long time. Line 9 just blocks user input every time the sound is played because if it was outside this loop and in the while loop, they would have a small window of time in which to press ctrl + alt + del which would be bad... For the parameters of beep, we give it the x variable which is being constantly changed and the time for each beep which I have at 1 for the sake of speed. Playing around with this is very interesting and should definitely be explored. Then, we have the line that you can comment out if you want an infinite loop. So after you're done playing around with the script, comment this out and make it autoexec when a pendrive is inserted into a pc and viola! Magic virus funtimes.
It won't let me attach the whole script so I'll paste it all in here if you want to copy it verbatim:
In code: #cs ############################################################################ AutoIt Version: 3.3.8.1 Author: squ1r3ll Script Function: To make weird things happen if you need to haze someone or make them think that they have a virus #ce ############################################################################ #include <GUIConstantsEx.au3> $loop = 0 $x = 1 WinMinimizeAll() GUICreate("LOL PWN TIME", 4000, 4000) ;create the GUI overlay for the screen while $loop < 20 ;controls how many times the screen flashes along with line 26 ProcessClose("taskmgr.exe") GUISetState(@SW_SHOW) ;show the GUI GUISetBkColor(0xFF0000) ;set the colour to black MouseMove($loop, $loop + 1) GUISetBkColor(0x000000) ;set the colour to red ;MouseMove($loop, $loop + 1) GUISetBkColor(0xFFFFFF) ;set the colour to white for $x = 300 to 3000 step 300 <span style="white-space: pre;"> </span> BlockInput(1) ;block all user input every loop so that ctrl + alt + del won't work very well <span style="white-space: pre;"> </span> Beep($x,1) ;make the weird beeping noise Next $loop = $loop + 1 ;comment this line out for an infinite loop wend
In plaintext:
#cs ############################################################################
AutoIt Version: 3.3.8.1
Author: squ1r3ll
Script Function:
To make weird things happen if you need to haze someone or make them think that they have a virus
#ce ############################################################################
#include <GUIConstantsEx.au3>
$loop = 0
$x = 1
WinMinimizeAll()
GUICreate("LOL PWN TIME", 4000, 4000) ;create the GUI overlay for the screen
while $loop < 20 ;controls how many times the screen flashes along with line 26
ProcessClose("taskmgr.exe")
GUISetState(@SW_SHOW) ;show the GUI
GUISetBkColor(0xFF0000) ;set the colour to black
MouseMove($loop, $loop + 1)
GUISetBkColor(0x000000) ;set the colour to red
;MouseMove($loop, $loop + 1)
GUISetBkColor(0xFFFFFF) ;set the colour to white
for $x = 300 to 3000 step 300
BlockInput(1) ;block all user input every loop so that ctrl + alt + del won't work very well
Beep($x,1) ;make the weird beeping noise
Next
$loop = $loop + 1 ;comment this line out for an infinite loop
wend
Have fun!
No comments:
Post a Comment