diff options
| author | Alee <Alee14498@gmail.com> | 2019-02-10 19:35:24 -0500 |
|---|---|---|
| committer | Alee <Alee14498@gmail.com> | 2019-02-10 19:35:24 -0500 |
| commit | ca958084a2d58546ff2f5fb091311b9624eb933c (patch) | |
| tree | 46d49cd1c27853cbfc29430129e1343d4139cb7c /BSODPrank | |
| parent | 9e62e83ab36b26f0a912dd81816aeab2c7be3c01 (diff) | |
| download | BSODPrank-ca958084a2d58546ff2f5fb091311b9624eb933c.tar.gz BSODPrank-ca958084a2d58546ff2f5fb091311b9624eb933c.tar.bz2 BSODPrank-ca958084a2d58546ff2f5fb091311b9624eb933c.zip | |
Diffstat (limited to 'BSODPrank')
| -rw-r--r-- | BSODPrank/BSOD.cs | 2 | ||||
| -rw-r--r-- | BSODPrank/BSODPrank.csproj | 10 | ||||
| -rw-r--r-- | BSODPrank/Boot.cs | 15 | ||||
| -rw-r--r-- | BSODPrank/Jumpscare.Designer.cs | 66 | ||||
| -rw-r--r-- | BSODPrank/Jumpscare.cs | 37 | ||||
| -rw-r--r-- | BSODPrank/Jumpscare.resx | 120 |
6 files changed, 248 insertions, 2 deletions
diff --git a/BSODPrank/BSOD.cs b/BSODPrank/BSOD.cs index 427121f..a90e60b 100644 --- a/BSODPrank/BSOD.cs +++ b/BSODPrank/BSOD.cs @@ -31,7 +31,7 @@ namespace BSODPrank boot.Show(); this.Hide(); } - + private void Form1_KeyDown(object sender, KeyEventArgs e) { System.IO.Stream str = Properties.Resources.bleep; diff --git a/BSODPrank/BSODPrank.csproj b/BSODPrank/BSODPrank.csproj index fc4f65a..db85883 100644 --- a/BSODPrank/BSODPrank.csproj +++ b/BSODPrank/BSODPrank.csproj @@ -21,6 +21,7 @@ <DefineConstants>DEBUG;TRACE</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> + <Prefer32Bit>false</Prefer32Bit> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PlatformTarget>AnyCPU</PlatformTarget> @@ -57,6 +58,12 @@ <Compile Include="BSOD.Designer.cs"> <DependentUpon>BSOD.cs</DependentUpon> </Compile> + <Compile Include="Jumpscare.cs"> + <SubType>Form</SubType> + </Compile> + <Compile Include="Jumpscare.Designer.cs"> + <DependentUpon>Jumpscare.cs</DependentUpon> + </Compile> <Compile Include="Program.cs" /> <Compile Include="Properties\AssemblyInfo.cs" /> <EmbeddedResource Include="Boot.resx"> @@ -65,6 +72,9 @@ <EmbeddedResource Include="BSOD.resx"> <DependentUpon>BSOD.cs</DependentUpon> </EmbeddedResource> + <EmbeddedResource Include="Jumpscare.resx"> + <DependentUpon>Jumpscare.cs</DependentUpon> + </EmbeddedResource> <EmbeddedResource Include="Properties\Resources.resx"> <Generator>ResXFileCodeGenerator</Generator> <LastGenOutput>Resources.Designer.cs</LastGenOutput> diff --git a/BSODPrank/Boot.cs b/BSODPrank/Boot.cs index a42bcff..e570220 100644 --- a/BSODPrank/Boot.cs +++ b/BSODPrank/Boot.cs @@ -17,10 +17,23 @@ namespace BSODPrank InitializeComponent(); } + private async void Boot_Load(object sender, EventArgs e) { + //SystemInformation si = new SystemInformation(); + txtBoot.AppendText("[SYSTEM] Starting up computer..." + Environment.NewLine); + await Task.Delay(2000); + txtBoot.AppendText("[SYSTEM] Loading hard drive..." + Environment.NewLine); + await Task.Delay(2000); + txtBoot.AppendText("[SYSTEM ERROR] Cannot find an Operating System..." + Environment.NewLine); + await Task.Delay(2000); + txtBoot.AppendText("[SYSTEM ERROR] Any Operating System is not detected in the hard drive..." + Environment.NewLine); + await Task.Delay(2000); + txtBoot.AppendText("[SYSTEM] Attempting to boot..." + Environment.NewLine); await Task.Delay(5000); - txtBoot.AppendText("[SYSTEM ERROR] BIOS Cannot Display." + Environment.NewLine); + Jumpscare jumpscare = new Jumpscare(); + jumpscare.Show(); + this.Hide(); } private void Boot_KeyDown(object sender, KeyEventArgs e) diff --git a/BSODPrank/Jumpscare.Designer.cs b/BSODPrank/Jumpscare.Designer.cs new file mode 100644 index 0000000..81711b0 --- /dev/null +++ b/BSODPrank/Jumpscare.Designer.cs @@ -0,0 +1,66 @@ +namespace BSODPrank +{ + partial class Jumpscare + { + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// Clean up any resources being used. + /// </summary> + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + this.tmpLabel = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // tmpLabel + // + this.tmpLabel.AutoSize = true; + this.tmpLabel.Font = new System.Drawing.Font("Comic Sans MS", 27.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.tmpLabel.ForeColor = System.Drawing.Color.White; + this.tmpLabel.Location = new System.Drawing.Point(55, 101); + this.tmpLabel.Name = "tmpLabel"; + this.tmpLabel.Size = new System.Drawing.Size(345, 204); + this.tmpLabel.TabIndex = 0; + this.tmpLabel.Text = "AHHH SCARY!!!!!\r\n(Just kidding the \r\nreal one will \r\nbe there soon :P)\r\n"; + // + // Jumpscare + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(255))))); + this.ClientSize = new System.Drawing.Size(488, 397); + this.Controls.Add(this.tmpLabel); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; + this.Name = "Jumpscare"; + this.Text = "Jumpscare"; + this.WindowState = System.Windows.Forms.FormWindowState.Maximized; + this.Load += new System.EventHandler(this.Jumpscare_Load); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label tmpLabel; + } +}
\ No newline at end of file diff --git a/BSODPrank/Jumpscare.cs b/BSODPrank/Jumpscare.cs new file mode 100644 index 0000000..1205b1b --- /dev/null +++ b/BSODPrank/Jumpscare.cs @@ -0,0 +1,37 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Diagnostics; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace BSODPrank +{ + public partial class Jumpscare : Form + { + public Jumpscare() + { + InitializeComponent(); + } + + private async void Jumpscare_Load(object sender, EventArgs e) + { + await Task.Delay(5000); + Process[] runningProcesses = Process.GetProcesses(); + foreach (Process process in runningProcesses) + { + foreach (ProcessModule module in process.Modules) + { + if (module.FileName.Equals("BSODPrank.exe")) + { + process.Kill(); + } + } + } + } + } +} diff --git a/BSODPrank/Jumpscare.resx b/BSODPrank/Jumpscare.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/BSODPrank/Jumpscare.resx @@ -0,0 +1,120 @@ +<?xml version="1.0" encoding="utf-8"?> +<root> + <!-- + Microsoft ResX Schema + + Version 2.0 + + The primary goals of this format is to allow a simple XML format + that is mostly human readable. The generation and parsing of the + various data types are done through the TypeConverter classes + associated with the data types. + + Example: + + ... ado.net/XML headers & schema ... + <resheader name="resmimetype">text/microsoft-resx</resheader> + <resheader name="version">2.0</resheader> + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> + <value>[base64 mime encoded serialized .NET Framework object]</value> + </data> + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> + <comment>This is a comment</comment> + </data> + + There are any number of "resheader" rows that contain simple + name/value pairs. + + Each data row contains a name, and value. The row also contains a + type or mimetype. Type corresponds to a .NET class that support + text/value conversion through the TypeConverter architecture. + Classes that don't support this are serialized and stored with the + mimetype set. + + The mimetype is used for serialized objects, and tells the + ResXResourceReader how to depersist the object. This is currently not + extensible. For a given mimetype the value must be set accordingly: + + Note - application/x-microsoft.net.object.binary.base64 is the format + that the ResXResourceWriter will generate, however the reader can + read any of the formats listed below. + + mimetype: application/x-microsoft.net.object.binary.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.soap.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.bytearray.base64 + value : The object must be serialized into a byte array + : using a System.ComponentModel.TypeConverter + : and then encoded with base64 encoding. + --> + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> + <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> + <xsd:element name="root" msdata:IsDataSet="true"> + <xsd:complexType> + <xsd:choice maxOccurs="unbounded"> + <xsd:element name="metadata"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" /> + </xsd:sequence> + <xsd:attribute name="name" use="required" type="xsd:string" /> + <xsd:attribute name="type" type="xsd:string" /> + <xsd:attribute name="mimetype" type="xsd:string" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="assembly"> + <xsd:complexType> + <xsd:attribute name="alias" type="xsd:string" /> + <xsd:attribute name="name" type="xsd:string" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="data"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="resheader"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" /> + </xsd:complexType> + </xsd:element> + </xsd:choice> + </xsd:complexType> + </xsd:element> + </xsd:schema> + <resheader name="resmimetype"> + <value>text/microsoft-resx</value> + </resheader> + <resheader name="version"> + <value>2.0</value> + </resheader> + <resheader name="reader"> + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> +</root>
\ No newline at end of file |
