commit 26e89066d4a9e831a0c66f0ccddcf731ecbb49f0 Author: TheUltimateHacker Date: Sun May 17 10:53:26 2015 -0400 Initial Commit diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..de6a03d --- /dev/null +++ b/LICENSE @@ -0,0 +1,70 @@ +Apache License + +Version 2.0, January 2004 + +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. + +"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. + +"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: + +You must give any other recipients of the Work or Derivative Works a copy of this License; and +You must cause any modified files to carry prominent notices stating that You changed the files; and +You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and +If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. + +You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. +5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: HOW TO APPLY THE APACHE LICENSE TO YOUR WORK +To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. + +Copyright 2015 ShiftOS Next + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. \ No newline at end of file diff --git a/README.MD b/README.MD new file mode 100644 index 0000000..23ecc72 --- /dev/null +++ b/README.MD @@ -0,0 +1,22 @@ +# ShiftOS Next +## What Orion could've been + + +### Summary: + +This repo is a new distribution of ShiftOS, with an entirely new story. It uses some of the same code as ShiftOS, such as sounds, APIs and more. This repository replaces: + - UltraDOS + - ShiftOS +and more. + +### Contribute to the project + +If you would like to contribute to the project, you may fork the repository to your Github account, pull to your computer, make the changes you'd like, push, and create a pull request to this repository. + +I will hand-pick PRs based on the quality of code, and what features are added. + +After you achieve 7 successful PRs, I'll add you to the contributors list and you will be able to commit without submitting PRs. + +### License + +This repository is licensed under the Apache License 2.0. See /LICENSE for details. \ No newline at end of file diff --git a/shiftos_next.sln b/shiftos_next.sln new file mode 100644 index 0000000..86d51a1 --- /dev/null +++ b/shiftos_next.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Express 2013 for Windows Desktop +VisualStudioVersion = 12.0.31101.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "shiftos_next", "shiftos_next\shiftos_next.vbproj", "{16D4DAEC-1CC8-40FD-9EB0-CE2343A3C8C7}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {16D4DAEC-1CC8-40FD-9EB0-CE2343A3C8C7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {16D4DAEC-1CC8-40FD-9EB0-CE2343A3C8C7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {16D4DAEC-1CC8-40FD-9EB0-CE2343A3C8C7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {16D4DAEC-1CC8-40FD-9EB0-CE2343A3C8C7}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/shiftos_next.v12.suo b/shiftos_next.v12.suo new file mode 100644 index 0000000..bbeede2 Binary files /dev/null and b/shiftos_next.v12.suo differ diff --git a/shiftos_next/App.config b/shiftos_next/App.config new file mode 100644 index 0000000..bc3672d --- /dev/null +++ b/shiftos_next/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/shiftos_next/Hijack.Designer.vb b/shiftos_next/Hijack.Designer.vb new file mode 100644 index 0000000..60d24a9 --- /dev/null +++ b/shiftos_next/Hijack.Designer.vb @@ -0,0 +1,93 @@ + _ +Partial Class HijackScreen + Inherits System.Windows.Forms.Form + + 'Form overrides dispose to clean up the component list. + _ + Protected Overrides Sub Dispose(ByVal disposing As Boolean) + Try + If disposing AndAlso components IsNot Nothing Then + components.Dispose() + End If + Finally + MyBase.Dispose(disposing) + End Try + End Sub + + 'Required by the Windows Form Designer + Private components As System.ComponentModel.IContainer + + 'NOTE: The following procedure is required by the Windows Form Designer + 'It can be modified using the Windows Form Designer. + 'Do not modify it using the code editor. + _ + Private Sub InitializeComponent() + Me.components = New System.ComponentModel.Container() + Me.lblHijack = New System.Windows.Forms.Label() + Me.conversationtimer = New System.Windows.Forms.Timer(Me.components) + Me.textgen = New System.Windows.Forms.Timer(Me.components) + Me.lblhackwords = New System.Windows.Forms.Label() + Me.hackeffecttimer = New System.Windows.Forms.Timer(Me.components) + Me.BackgroundWorker1 = New System.ComponentModel.BackgroundWorker() + Me.SuspendLayout + ' + 'lblHijack + ' + Me.lblHijack.Anchor = System.Windows.Forms.AnchorStyles.None + Me.lblHijack.AutoSize = true + Me.lblHijack.BackColor = System.Drawing.Color.WhiteSmoke + Me.lblHijack.Font = New System.Drawing.Font("Microsoft Sans Serif", 15.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0,Byte)) + Me.lblHijack.ForeColor = System.Drawing.Color.DimGray + Me.lblHijack.Location = New System.Drawing.Point(143, 193) + Me.lblHijack.Name = "lblHijack" + Me.lblHijack.Size = New System.Drawing.Size(18, 25) + Me.lblHijack.TabIndex = 0 + Me.lblHijack.Text = "\" + ' + 'conversationtimer + ' + ' + 'textgen + ' + Me.textgen.Interval = 20 + ' + 'lblhackwords + ' + Me.lblhackwords.AutoSize = true + Me.lblhackwords.Dock = System.Windows.Forms.DockStyle.Fill + Me.lblhackwords.Font = New System.Drawing.Font("Microsoft Sans Serif", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0,Byte)) + Me.lblhackwords.ForeColor = System.Drawing.SystemColors.ButtonFace + Me.lblhackwords.Location = New System.Drawing.Point(0, 0) + Me.lblhackwords.Name = "lblhackwords" + Me.lblhackwords.Size = New System.Drawing.Size(127, 18) + Me.lblhackwords.TabIndex = 1 + Me.lblhackwords.Text = "Hijack in progress" + ' + 'hackeffecttimer + ' + Me.hackeffecttimer.Interval = 50 + ' + 'HijackScreen + ' + Me.AutoScaleDimensions = New System.Drawing.SizeF(6!, 13!) + Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font + Me.BackColor = System.Drawing.Color.Silver + Me.ClientSize = New System.Drawing.Size(653, 457) + Me.Controls.Add(Me.lblhackwords) + Me.Controls.Add(Me.lblHijack) + Me.Name = "HijackScreen" + Me.Text = "ShiftOS" + Me.TransparencyKey = System.Drawing.Color.White + Me.ResumeLayout(false) + Me.PerformLayout + +End Sub + Friend WithEvents lblHijack As System.Windows.Forms.Label + Friend WithEvents conversationtimer As System.Windows.Forms.Timer + Friend WithEvents textgen As System.Windows.Forms.Timer + Friend WithEvents lblhackwords As System.Windows.Forms.Label + Friend WithEvents hackeffecttimer As System.Windows.Forms.Timer + Friend WithEvents BackgroundWorker1 As System.ComponentModel.BackgroundWorker + +End Class + diff --git a/shiftos_next/Hijack.resx b/shiftos_next/Hijack.resx new file mode 100644 index 0000000..89116b6 --- /dev/null +++ b/shiftos_next/Hijack.resx @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + + 167, 17 + + + 260, 17 + + + 396, 17 + + \ No newline at end of file diff --git a/shiftos_next/Hijack.vb b/shiftos_next/Hijack.vb new file mode 100644 index 0000000..c77e230 --- /dev/null +++ b/shiftos_next/Hijack.vb @@ -0,0 +1,320 @@ +Imports System +Imports System.IO +Imports System.Text +Imports System.Net.Mail + +Public Class HijackScreen + Public actualshiftversion As String = "0.0.8" + Dim newgame As Boolean = True + Dim tcount As Integer = 0 + Dim rtext As String + Dim gtexttotype As String + Dim charcount As Integer + Dim currentletter As Integer + Dim slashcount As Integer + Dim conversationcount As Integer = 0 + Dim textgeninput As Object + Dim di As DirectoryInfo + Dim needtoclose As Boolean = False + Dim oldversion As String + Public upgraded As Boolean = False + + Dim fs As FileStream + Dim sw As StreamWriter + Dim hackeffect As Integer + Dim percentcount As Integer + Dim cdrive As System.IO.DriveInfo + + Private Sub HijackScreen_Load(sender As Object, e As EventArgs) Handles MyBase.Load + 'extractdlls() + Control.CheckForIllegalCrossThreadCalls = False + cdrive = My.Computer.FileSystem.GetDriveInfo("C:\") + Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None + Me.WindowState = FormWindowState.Maximized + If My.Computer.FileSystem.DirectoryExists("C:\ShiftOS") Then + If IO.File.ReadAllText("C:/ShiftOS/Shiftum42/HDAccess.sft") = actualshiftversion Then + conversationtimer.Start() + needtoclose = True + Terminal.Show() + Else + oldversion = IO.File.ReadAllText("C:/ShiftOS/Shiftum42/HDAccess.sft") + upgraded = True + System.IO.Directory.Delete("C:/ShiftOS/", True) + BackgroundWorker1.RunWorkerAsync() + conversationtimer.Start() + hackeffecttimer.Start() + End If + Else + BackgroundWorker1.RunWorkerAsync() + conversationtimer.Start() + hackeffecttimer.Start() + End If + End Sub + + Private Sub TextType(texttotype As String) + conversationtimer.Stop() + charcount = texttotype.Length + gtexttotype = texttotype + currentletter = 0 + slashcount = 1 + textgen.Start() + End Sub + + Private Sub textgen_Tick(sender As Object, e As EventArgs) Handles textgen.Tick + + Select Case slashcount + Case 1 + If currentletter < gtexttotype.Length Then + textgeninput.Text = rtext & "\" + End If + + Case 2 + If currentletter < gtexttotype.Length Then + textgeninput.Text = rtext & "|" + End If + + Case 3 + If currentletter < gtexttotype.Length Then + textgeninput.Text = rtext & "/" + End If + + Case 4 + If currentletter < gtexttotype.Length Then + rtext = rtext + gtexttotype.ToCharArray(currentletter, 1) + currentletter = currentletter + 1 + textgeninput.Text = rtext + My.Computer.Audio.Play(My.Resources.typesound, AudioPlayMode.Background) + End If + End Select + + slashcount = slashcount + 1 + + If slashcount = 5 Then slashcount = 1 + If currentletter = gtexttotype.Length Then + gtexttotype = "" + conversationtimer.Start() + textgen.Stop() + End If + + + End Sub + + Private Sub conversationtimer_Tick(sender As Object, e As EventArgs) Handles conversationtimer.Tick + Select Case conversationcount + Case 0 + If needtoclose = True Then Me.Close() + Case 1 + + textgeninput = lblHijack + TextType("Your computer is now being Hijacked") + conversationtimer.Interval = 1000 + + Case 3 + textgeninput = lblhackwords + textgen.Interval = 10 + rtext = "" + TextType("Hello, user. My name is DevX. I am the creator of ShiftOS." & Environment.NewLine & Environment.NewLine) + Case 4 + TextType("I've been scanning your computer, and it seems you have tested a lot of ShiftOS, however since then I've released a lot of updates." & Environment.NewLine & Environment.NewLine) + Case 5 + TextType("These updates fix a lot of bugs and security holes in ShiftOS and it's mandatory that I install them for you." & Environment.NewLine & Environment.NewLine) + Case 6 + TextType("Much of the experience is similar, and you will have to upgrade the OS." & Environment.NewLine & Environment.NewLine) + Case 7 + TextType("In order to install these updates, your hard drive will be involuntarily formatted." & Environment.NewLine & Environment.NewLine) + Case 8 + TextType("Beginning Hard Drive Format! [#") + conversationtimer.Interval = 500 + Case 9, 10, 11, 12, 13, 14, 15, 16, 17 + TextType("#") + Case 18 + TextType("] Done.") + Case 19 + rtext = "" + Case 20 + TextType("Scanning Drive C:\") + Case 21 + + TextType(Environment.NewLine & Environment.NewLine & "Drive Label: " & cdrive.VolumeLabel) + Case 22 + TextType(Environment.NewLine & "Total Drive Size: " & Format(cdrive.TotalSize.ToString / 1024 / 1024 / 1024, "0.00") & " GigaBytes") + Case 23 + TextType(Environment.NewLine & "Old File System: ShiftFS") + Case 24 + TextType(Environment.NewLine & "New File System: ShiftFS_Ultra") + Case 25 + TextType(Environment.NewLine & Environment.NewLine & "Formatting C:\ - ") + conversationtimer.Interval = 100 + Case 26 To 126 + textgeninput.Text = rtext & percentcount & "%" + If percentcount < 101 Then + percentcount = percentcount + 1 + My.Computer.Audio.Play(My.Resources.writesound, AudioPlayMode.Background) + End If + Case 127 + rtext = rtext + "100%" + conversationtimer.Interval = 1000 + Case 128 + TextType(Environment.NewLine & "Format Complete") + Case 129 + rtext = "" + percentcount = 0 + TextType("Installing ShiftOS Beta 1.0 - ") + conversationtimer.Interval = 200 + Case 130 To 230 + textgeninput.Text = rtext & percentcount & "%" & Environment.NewLine & Environment.NewLine + If percentcount < 101 Then + percentcount = percentcount + 1 + My.Computer.Audio.Play(My.Resources.writesound, AudioPlayMode.Background) + End If + Select Case percentcount + Case 1 To 2 + textgeninput.Text = textgeninput.Text & "C:/Home" + If (Not System.IO.Directory.Exists("C:/ShiftOS/Home")) Then System.IO.Directory.CreateDirectory("C:/ShiftOS/Home") + Case 3 To 4 + textgeninput.Text = textgeninput.Text & "C:/Home/Documents" + If (Not System.IO.Directory.Exists("C:/ShiftOS/Home/Documents")) Then System.IO.Directory.CreateDirectory("C:/ShiftOS/Home/Documents") + Case 5 To 9 + textgeninput.Text = textgeninput.Text & "C:/Home/Documents/ShiftOSInfo.txt" + fs = File.Create("C:/ShiftOS/Home/Documents/ShiftOSInfo.txt") + fs.Close() + Case 10 To 12 + textgeninput.Text = textgeninput.Text & "C:/Home/Music" + If (Not System.IO.Directory.Exists("C:/ShiftOS/Home/Music")) Then System.IO.Directory.CreateDirectory("C:/ShiftOS/Home/Music") + Case 13 To 15 + textgeninput.Text = textgeninput.Text & "C:/Home/Pictures" + If (Not System.IO.Directory.Exists("C:/ShiftOS/Home/Pictures")) Then System.IO.Directory.CreateDirectory("C:/ShiftOS/Home/Pictures") + Case 16 To 18 + textgeninput.Text = textgeninput.Text & "C:/Shiftum42" + If (Not System.IO.Directory.Exists("C:/ShiftOS/Shiftum42")) Then System.IO.Directory.CreateDirectory("C:/ShiftOS/Shiftum42") + Case 19 To 20 + textgeninput.Text = textgeninput.Text & "C:/Shiftum42/Drivers" + If (Not System.IO.Directory.Exists("C:/ShiftOS/Shiftum42/Drivers")) Then System.IO.Directory.CreateDirectory("C:/ShiftOS/Shiftum42/Drivers") + Case 21 To 27 + textgeninput.Text = textgeninput.Text & "C:/Shiftum42/Drivers/HDD.dri" + fs = File.Create("C:/ShiftOS/Shiftum42/Drivers/HDD.dri") + fs.Close() + Case 28 To 35 + textgeninput.Text = textgeninput.Text & "C:/Shiftum42/Drivers/Keyboard.dri" + fs = File.Create("C:/ShiftOS/Shiftum42/Drivers/Keyboard.dri") + fs.Close() + Case 36 To 44 + textgeninput.Text = textgeninput.Text & "C:/Shiftum42/Drivers/Monitor.dri" + fs = File.Create("C:/ShiftOS/Shiftum42/Drivers/Monitor.dri") + fs.Close() + Case 45 To 52 + textgeninput.Text = textgeninput.Text & "C:/Shiftum42/Drivers/Mouse.dri" + fs = File.Create("C:/ShiftOS/Shiftum42/Drivers/Mouse.dri") + fs.Close() + Case 53 To 60 + textgeninput.Text = textgeninput.Text & "C:/Shiftum42/Drivers/Printer.dri" + fs = File.Create("C:/ShiftOS/Shiftum42/Drivers/Printer.dri") + fs.Close() + Case 61 To 68 + textgeninput.Text = textgeninput.Text & "C:/Shiftum42/Languages/" + If (Not System.IO.Directory.Exists("C:/ShiftOS/Shiftum42/Languages/")) Then System.IO.Directory.CreateDirectory("C:/ShiftOS/Shiftum42/Languages/") + Case 69 To 76 + textgeninput.Text = textgeninput.Text & "C:/Shiftum42/Languages/English.lang" + fs = File.Create("C:/ShiftOS/Shiftum42/Languages/English.lang") + fs.Close() + Case 77 To 84 + textgeninput.Text = textgeninput.Text & "C:/Shiftum42/HDAccess.sft" + fs = File.Create("C:/ShiftOS/Shiftum42/HDAccess.sft") + fs.Close() + Dim objWriter As New System.IO.StreamWriter("C:/ShiftOS/Shiftum42/HDAccess.sft", False) + objWriter.Write(actualshiftversion) + objWriter.Close() + Case 85 To 89 + textgeninput.Text = textgeninput.Text & "C:/Shiftum42/ShiftGUI.sft" + fs = File.Create("C:/ShiftOS/Shiftum42/ShiftGUI.sft") + fs.Close() + Case 90 To 93 + textgeninput.Text = textgeninput.Text & "C:/Shiftum42/SKernal.sft" + fs = File.Create("C:/ShiftOS/Shiftum42/SKernal.sft") + fs.Close() + Case 94 To 97 + textgeninput.Text = textgeninput.Text & "C:/Shiftum42/SRead.sft" + fs = File.Create("C:/ShiftOS/Shiftum42/SRead.sft") + fs.Close() + Case 98 To 101 + textgeninput.Text = textgeninput.Text & "C:/Shiftum42/SWrite.sft" + fs = File.Create("C:/ShiftOS/Shiftum42/SWrite.sft") + fs.Close() + End Select + + + Case 231 + textgeninput.Text = rtext & "100%" & Environment.NewLine & Environment.NewLine & "C:/Shiftum42/SWrite.sft" + conversationtimer.Interval = 1000 + My.Computer.Audio.Play(My.Resources.writesound, AudioPlayMode.Background) + Case 232 + textgeninput.Text = rtext & "100%" & Environment.NewLine & Environment.NewLine & "ShiftOS Installation Complete!" + My.Computer.Audio.Play(My.Resources.typesound, AudioPlayMode.Background) + If (Not System.IO.Directory.Exists("C:/ShiftOS/SoftwareData/")) Then System.IO.Directory.CreateDirectory("C:/ShiftOS/SoftwareData/") + If (Not System.IO.Directory.Exists("C:/ShiftOS/SoftwareData/KnowledgeInput")) Then System.IO.Directory.CreateDirectory("C:/ShiftOS/SoftwareData/KnowledgeInput") + fs = File.Create("C:/ShiftOS/SoftwareData/KnowledgeInput/Animals.lst") + fs.Close() + fs = File.Create("C:/ShiftOS/SoftwareData/KnowledgeInput/Fruits.lst") + fs.Close() + fs = File.Create("C:/ShiftOS/SoftwareData/KnowledgeInput/Countries.lst") + fs.Close() + Case 234 + 'ShiftOSDesktop.newgame = True + 'ShiftOSDesktop.Show() + Terminal.Show() + Terminal.tmrfirstuse.Start() + Me.Close() + + End Select + conversationcount = conversationcount + 1 + End Sub + + Private Sub hackeffecttimer_Tick(sender As Object, e As EventArgs) Handles hackeffecttimer.Tick + If hackeffect < 101 Then + Select Case hackeffect + Case 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65, 67, 69, 71, 73, 75, 77, 79, 81, 83, 85, 87, 89, 91, 93, 95 + Me.BackColor = Color.Black + My.Computer.Audio.Play(My.Resources.writesound, AudioPlayMode.Background) + Case 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28 + Me.BackColor = Color.White + My.Computer.Audio.Play(My.Resources.typesound, AudioPlayMode.Background) + Case 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50 + Me.BackColor = Color.Gainsboro + My.Computer.Audio.Play(My.Resources.typesound, AudioPlayMode.Background) + Case 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76 + Me.BackColor = Color.Silver + My.Computer.Audio.Play(My.Resources.typesound, AudioPlayMode.Background) + Case 76, 78, 80, 82, 84, 86, 88, 90, 92, 94 + Me.BackColor = Color.DimGray + My.Computer.Audio.Play(My.Resources.typesound, AudioPlayMode.Background) + Case 96 + lblHijack.BackColor = Color.LightGray + Case 97 + lblHijack.BackColor = Color.DarkGray + Case 98 + lblHijack.BackColor = Color.DimGray + Case 99 + lblHijack.BackColor = Color.Black + lblHijack.ForeColor = Color.DimGray + Case 100 + lblHijack.Hide() + End Select + Else + hackeffecttimer.Stop() + End If + hackeffect = hackeffect + 1 + End Sub + + 'Private Sub extractdlls() 'If dlls are not in the same folder, this extracts them from resources + ' If Not File.Exists(My.Computer.FileSystem.CurrentDirectory & "\AxInterop.WMPLib.dll") Then + ' System.IO.File.WriteAllBytes(My.Computer.FileSystem.CurrentDirectory & "\AxInterop.WMPLib.dll", My.Resources.AxInterop_WMPLib) + ' End If + ' If Not File.Exists(My.Computer.FileSystem.CurrentDirectory & "\Interop.WMPLib.dll") Then + ' System.IO.File.WriteAllBytes(My.Computer.FileSystem.CurrentDirectory & "\Interop.WMPLib.dll", My.Resources.Interop_WMPLib) + ' End If + ' If Not File.Exists(My.Computer.FileSystem.CurrentDirectory & "\ShiftOS License.txt") Then + ' System.IO.File.WriteAllBytes(My.Computer.FileSystem.CurrentDirectory & "\ShiftOS License.txt", My.Resources.license) + ' End If + 'End Sub +End Class + diff --git a/shiftos_next/My Project/Application.Designer.vb b/shiftos_next/My Project/Application.Designer.vb new file mode 100644 index 0000000..51fe0c6 --- /dev/null +++ b/shiftos_next/My Project/Application.Designer.vb @@ -0,0 +1,38 @@ +'------------------------------------------------------------------------------ +' +' This code was generated by a tool. +' Runtime Version:4.0.30319.34014 +' +' Changes to this file may cause incorrect behavior and will be lost if +' the code is regenerated. +' +'------------------------------------------------------------------------------ + +Option Strict On +Option Explicit On + + +Namespace My + + 'NOTE: This file is auto-generated; do not modify it directly. To make changes, + ' or if you encounter build errors in this file, go to the Project Designer + ' (go to Project Properties or double-click the My Project node in + ' Solution Explorer), and make changes on the Application tab. + ' + Partial Friend Class MyApplication + + _ + Public Sub New() + MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows) + Me.IsSingleInstance = false + Me.EnableVisualStyles = true + Me.SaveMySettingsOnExit = true + Me.ShutDownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterAllFormsClose + End Sub + + _ + Protected Overrides Sub OnCreateMainForm() + Me.MainForm = Global.ShiftOS_Next.HijackScreen + End Sub + End Class +End Namespace diff --git a/shiftos_next/My Project/Application.myapp b/shiftos_next/My Project/Application.myapp new file mode 100644 index 0000000..d8695c4 --- /dev/null +++ b/shiftos_next/My Project/Application.myapp @@ -0,0 +1,10 @@ + + + true + Hijack + false + 1 + true + 0 + true + \ No newline at end of file diff --git a/shiftos_next/My Project/AssemblyInfo.vb b/shiftos_next/My Project/AssemblyInfo.vb new file mode 100644 index 0000000..3abba55 --- /dev/null +++ b/shiftos_next/My Project/AssemblyInfo.vb @@ -0,0 +1,35 @@ +Imports System +Imports System.Reflection +Imports System.Runtime.InteropServices + +' General Information about an assembly is controlled through the following +' set of attributes. Change these attribute values to modify the information +' associated with an assembly. + +' Review the values of the assembly attributes + + + + + + + + + + +'The following GUID is for the ID of the typelib if this project is exposed to COM + + +' Version information for an assembly consists of the following four values: +' +' Major Version +' Minor Version +' Build Number +' Revision +' +' You can specify all the values or you can default the Build and Revision Numbers +' by using the '*' as shown below: +' + + + diff --git a/shiftos_next/My Project/Resources.Designer.vb b/shiftos_next/My Project/Resources.Designer.vb new file mode 100644 index 0000000..5988df8 --- /dev/null +++ b/shiftos_next/My Project/Resources.Designer.vb @@ -0,0 +1,126 @@ +'------------------------------------------------------------------------------ +' +' This code was generated by a tool. +' Runtime Version:4.0.30319.34014 +' +' Changes to this file may cause incorrect behavior and will be lost if +' the code is regenerated. +' +'------------------------------------------------------------------------------ + +Option Strict On +Option Explicit On + +Imports System + +Namespace My.Resources + + 'This class was auto-generated by the StronglyTypedResourceBuilder + 'class via a tool like ResGen or Visual Studio. + 'To add or remove a member, edit your .ResX file then rerun ResGen + 'with the /str option, or rebuild your VS project. + ''' + ''' A strongly-typed resource class, for looking up localized strings, etc. + ''' + _ + Friend Module Resources + + Private resourceMan As Global.System.Resources.ResourceManager + + Private resourceCulture As Global.System.Globalization.CultureInfo + + ''' + ''' Returns the cached ResourceManager instance used by this class. + ''' + _ + Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager + Get + If Object.ReferenceEquals(resourceMan, Nothing) Then + Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("ShiftOS_Next.Resources", GetType(Resources).Assembly) + resourceMan = temp + End If + Return resourceMan + End Get + End Property + + ''' + ''' Overrides the current thread's CurrentUICulture property for all + ''' resource lookups using this strongly typed resource class. + ''' + _ + Friend Property Culture() As Global.System.Globalization.CultureInfo + Get + Return resourceCulture + End Get + Set + resourceCulture = value + End Set + End Property + + ''' + ''' Looks up a localized resource of type System.IO.UnmanagedMemoryStream similar to System.IO.MemoryStream. + ''' + Friend ReadOnly Property _3beepvirus() As System.IO.UnmanagedMemoryStream + Get + Return ResourceManager.GetStream("_3beepvirus", resourceCulture) + End Get + End Property + + ''' + ''' Looks up a localized resource of type System.IO.UnmanagedMemoryStream similar to System.IO.MemoryStream. + ''' + Friend ReadOnly Property dial_up_modem_02() As System.IO.UnmanagedMemoryStream + Get + Return ResourceManager.GetStream("dial_up_modem_02", resourceCulture) + End Get + End Property + + ''' + ''' Looks up a localized resource of type System.IO.UnmanagedMemoryStream similar to System.IO.MemoryStream. + ''' + Friend ReadOnly Property infobox() As System.IO.UnmanagedMemoryStream + Get + Return ResourceManager.GetStream("infobox", resourceCulture) + End Get + End Property + + ''' + ''' Looks up a localized resource of type System.IO.UnmanagedMemoryStream similar to System.IO.MemoryStream. + ''' + Friend ReadOnly Property rolldown() As System.IO.UnmanagedMemoryStream + Get + Return ResourceManager.GetStream("rolldown", resourceCulture) + End Get + End Property + + ''' + ''' Looks up a localized resource of type System.IO.UnmanagedMemoryStream similar to System.IO.MemoryStream. + ''' + Friend ReadOnly Property rollup() As System.IO.UnmanagedMemoryStream + Get + Return ResourceManager.GetStream("rollup", resourceCulture) + End Get + End Property + + ''' + ''' Looks up a localized resource of type System.IO.UnmanagedMemoryStream similar to System.IO.MemoryStream. + ''' + Friend ReadOnly Property typesound() As System.IO.UnmanagedMemoryStream + Get + Return ResourceManager.GetStream("typesound", resourceCulture) + End Get + End Property + + ''' + ''' Looks up a localized resource of type System.IO.UnmanagedMemoryStream similar to System.IO.MemoryStream. + ''' + Friend ReadOnly Property writesound() As System.IO.UnmanagedMemoryStream + Get + Return ResourceManager.GetStream("writesound", resourceCulture) + End Get + End Property + End Module +End Namespace diff --git a/shiftos_next/My Project/Resources.resx b/shiftos_next/My Project/Resources.resx new file mode 100644 index 0000000..a867e65 --- /dev/null +++ b/shiftos_next/My Project/Resources.resx @@ -0,0 +1,142 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + ..\Resources\dial-up-modem-02.wav;System.IO.MemoryStream, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ..\Resources\infobox.wav;System.IO.MemoryStream, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ..\Resources\rolldown.wav;System.IO.MemoryStream, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ..\Resources\rollup.wav;System.IO.MemoryStream, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ..\Resources\typesound.wav;System.IO.MemoryStream, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ..\Resources\writesound.wav;System.IO.MemoryStream, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ..\Resources\3beepvirus.wav;System.IO.MemoryStream, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/shiftos_next/My Project/Settings.Designer.vb b/shiftos_next/My Project/Settings.Designer.vb new file mode 100644 index 0000000..2d69164 --- /dev/null +++ b/shiftos_next/My Project/Settings.Designer.vb @@ -0,0 +1,73 @@ +'------------------------------------------------------------------------------ +' +' This code was generated by a tool. +' Runtime Version:4.0.30319.34014 +' +' Changes to this file may cause incorrect behavior and will be lost if +' the code is regenerated. +' +'------------------------------------------------------------------------------ + +Option Strict On +Option Explicit On + + +Namespace My + + _ + Partial Friend NotInheritable Class MySettings + Inherits Global.System.Configuration.ApplicationSettingsBase + + Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings), MySettings) + +#Region "My.Settings Auto-Save Functionality" +#If _MyType = "WindowsForms" Then + Private Shared addedHandler As Boolean + + Private Shared addedHandlerLockObject As New Object + + _ + Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs) + If My.Application.SaveMySettingsOnExit Then + My.Settings.Save() + End If + End Sub +#End If +#End Region + + Public Shared ReadOnly Property [Default]() As MySettings + Get + +#If _MyType = "WindowsForms" Then + If Not addedHandler Then + SyncLock addedHandlerLockObject + If Not addedHandler Then + AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings + addedHandler = True + End If + End SyncLock + End If +#End If + Return defaultInstance + End Get + End Property + End Class +End Namespace + +Namespace My + + _ + Friend Module MySettingsProperty + + _ + Friend ReadOnly Property Settings() As Global.ShiftOS_Next.My.MySettings + Get + Return Global.ShiftOS_Next.My.MySettings.Default + End Get + End Property + End Module +End Namespace diff --git a/shiftos_next/My Project/Settings.settings b/shiftos_next/My Project/Settings.settings new file mode 100644 index 0000000..85b890b --- /dev/null +++ b/shiftos_next/My Project/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/shiftos_next/Resources/3beepvirus.wav b/shiftos_next/Resources/3beepvirus.wav new file mode 100644 index 0000000..c1af078 Binary files /dev/null and b/shiftos_next/Resources/3beepvirus.wav differ diff --git a/shiftos_next/Resources/dial-up-modem-02.wav b/shiftos_next/Resources/dial-up-modem-02.wav new file mode 100644 index 0000000..f6bb696 Binary files /dev/null and b/shiftos_next/Resources/dial-up-modem-02.wav differ diff --git a/shiftos_next/Resources/infobox.wav b/shiftos_next/Resources/infobox.wav new file mode 100644 index 0000000..3c6f3f2 Binary files /dev/null and b/shiftos_next/Resources/infobox.wav differ diff --git a/shiftos_next/Resources/rolldown.wav b/shiftos_next/Resources/rolldown.wav new file mode 100644 index 0000000..ede21d3 Binary files /dev/null and b/shiftos_next/Resources/rolldown.wav differ diff --git a/shiftos_next/Resources/rollup.wav b/shiftos_next/Resources/rollup.wav new file mode 100644 index 0000000..3e44e72 Binary files /dev/null and b/shiftos_next/Resources/rollup.wav differ diff --git a/shiftos_next/Resources/typesound.wav b/shiftos_next/Resources/typesound.wav new file mode 100644 index 0000000..d3e381f Binary files /dev/null and b/shiftos_next/Resources/typesound.wav differ diff --git a/shiftos_next/Resources/writesound.wav b/shiftos_next/Resources/writesound.wav new file mode 100644 index 0000000..84092d0 Binary files /dev/null and b/shiftos_next/Resources/writesound.wav differ diff --git a/shiftos_next/Terminal.Designer.vb b/shiftos_next/Terminal.Designer.vb new file mode 100644 index 0000000..0ad2b94 --- /dev/null +++ b/shiftos_next/Terminal.Designer.vb @@ -0,0 +1,63 @@ + _ +Partial Class Terminal + Inherits System.Windows.Forms.Form + + 'Form overrides dispose to clean up the component list. + _ + Protected Overrides Sub Dispose(ByVal disposing As Boolean) + Try + If disposing AndAlso components IsNot Nothing Then + components.Dispose() + End If + Finally + MyBase.Dispose(disposing) + End Try + End Sub + + 'Required by the Windows Form Designer + Private components As System.ComponentModel.IContainer + + 'NOTE: The following procedure is required by the Windows Form Designer + 'It can be modified using the Windows Form Designer. + 'Do not modify it using the code editor. + _ + Private Sub InitializeComponent() + Me.components = New System.ComponentModel.Container() + Me.txtterm = New System.Windows.Forms.TextBox() + Me.tmrfirstuse = New System.Windows.Forms.Timer(Me.components) + Me.SuspendLayout() + ' + 'txtterm + ' + Me.txtterm.BackColor = System.Drawing.Color.Black + Me.txtterm.BorderStyle = System.Windows.Forms.BorderStyle.None + Me.txtterm.Cursor = System.Windows.Forms.Cursors.IBeam + Me.txtterm.Dock = System.Windows.Forms.DockStyle.Fill + Me.txtterm.Font = New System.Drawing.Font("Courier New", 8.25!) + Me.txtterm.ForeColor = System.Drawing.Color.White + Me.txtterm.Location = New System.Drawing.Point(0, 0) + Me.txtterm.Multiline = True + Me.txtterm.Name = "txtterm" + Me.txtterm.Size = New System.Drawing.Size(635, 418) + Me.txtterm.TabIndex = 0 + Me.txtterm.Text = "ShiftOS Beta 1.0" + ' + 'tmrfirstuse + ' + Me.tmrfirstuse.Interval = 5000 + ' + 'Terminal + ' + Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!) + Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font + Me.ClientSize = New System.Drawing.Size(635, 418) + Me.Controls.Add(Me.txtterm) + Me.Name = "Terminal" + Me.Text = "Terminal" + Me.ResumeLayout(False) + Me.PerformLayout() + + End Sub + Friend WithEvents txtterm As System.Windows.Forms.TextBox + Friend WithEvents tmrfirstuse As System.Windows.Forms.Timer +End Class diff --git a/shiftos_next/Terminal.resx b/shiftos_next/Terminal.resx new file mode 100644 index 0000000..42aa7dc --- /dev/null +++ b/shiftos_next/Terminal.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/shiftos_next/Terminal.vb b/shiftos_next/Terminal.vb new file mode 100644 index 0000000..8a94704 --- /dev/null +++ b/shiftos_next/Terminal.vb @@ -0,0 +1,146 @@ +Public Class Terminal + + Dim trackpos As Integer = 0 + + Public Sub terminal_Innitiate(sender As Object, e As EventArgs) Handles MyBase.Load + Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None + Me.WindowState = FormWindowState.Maximized + AddLine("user@shiftos ~$> ") + SelectBottom() + End Sub + + Public Sub SelectBottom() + txtterm.Select(txtterm.Text.Length, 0) + End Sub + + Public Sub Interpret(command As String) + command = command.ToLower + If command Like "help" Then + ShowHelp() + ElseIf command Like "shutdown" Then + Me.Close() + ElseIf command Like "" Then + 'This is here to make it so that the Terminal doesn't say "Wrong Command" if the user doesn't input anything. + Else + AddLine("Invalid command! Type ""help"" for a list of commands.") + End If + End Sub + + Public Sub ShowHelp() + AddLine("ShiftOS Help" & vbNewLine) + AddLine("Usage tips: " & vbNewLine) + AddLine(" - The terminal runs in full-screen.") + AddLine(" - There are no window managers or desktop environments.") + AddLine(" - Applications are fully text-based.") + AddLine(" - Terminal commands are case-insensitive.") + AddLine(" - The screen can only display Black and White." & vbNewLine) + AddLine("Commands: " & vbNewLine) + AddLine(" - shutdown: Shuts the system down.") + AddLine(" - help: Shows this screen.") + + + End Sub + + Public Sub AddLine(text As String) + txtterm.Text += vbNewLine + text + SelectBottom() + End Sub + + Dim firstuseconversation As Integer = 0 + + Private Sub tmrfirstuse_Tick(sender As Object, e As EventArgs) Handles tmrfirstuse.Tick + Select Case firstuseconversation + Case 0 + txtterm.ReadOnly = True + AddLine("IP Address 170.245.12.80 is connecting as ""DevX"".") + Case 1 + AddLine("DevX: It seems my updates have completly installed.") + Case 2 + AddLine("DevX: Unfortunately, due to your hard drive being formatted, you have lost all your data.") + Case 3 + AddLine("DevX: However, Don't worry! I've added some pretty cool features to the Terminal to make up for this.") + Case 4 + AddLine("DevX: I can't tell you much, except for ""Type Help for a list of commands"".") + Case 5 + AddLine("DevX: I've got to go, but I'll contact you as I develop more updates; and you test the OS.") + Case 6 + AddLine("User ""DevX"" has disconnected.") + Case 7 + txtterm.ResetText() + AddLine("user@shiftos ~$> ") + txtterm.ReadOnly = False + tmrfirstuse.Stop() + End Select + firstuseconversation += 1 + End Sub + + Private Sub txtterm_KeyDown(sender As Object, e As KeyEventArgs) Handles txtterm.KeyDown + Select Case e.KeyCode + Case Keys.ShiftKey + trackpos = trackpos - 1 + Case Keys.Alt + trackpos = trackpos - 1 + Case Keys.CapsLock + trackpos = trackpos - 1 + Case Keys.ControlKey + trackpos = trackpos - 1 + Case Keys.LWin + trackpos = trackpos - 1 + Case Keys.RWin + trackpos = trackpos - 1 + Case Keys.Right + If txtterm.SelectionStart = txtterm.TextLength Then + trackpos = trackpos - 1 + End If + Case Keys.Left + If trackpos < 1 Then + e.SuppressKeyPress = True + trackpos = trackpos - 1 + Else + trackpos = trackpos - 2 + End If + Case Keys.Up + e.SuppressKeyPress = True + trackpos = trackpos - 1 + Case Keys.Down + e.SuppressKeyPress = True + trackpos = trackpos - 1 + End Select + + If e.KeyCode = Keys.Enter Then + e.SuppressKeyPress = True + Dim command As String = txtterm.Lines(txtterm.Lines.Length - 1).Replace("user@shiftos ~$> ", "").ToLower + Interpret(command) + + If command = "clear" Then + txtterm.Text = "user@shiftos ~$> " + txtterm.Select(txtterm.Text.Length, 0) + + Else + AddLine("user@shiftos ~$> ") + txtterm.Select(txtterm.Text.Length, 0) + End If + + trackpos = 0 + Else + If e.KeyCode = Keys.Back Then + Else + trackpos = trackpos + 1 + End If + End If + + If e.KeyCode = Keys.Back Then + If trackpos < 1 Then + e.SuppressKeyPress = True + Else + If txtterm.SelectedText.Length < 1 Then + trackpos = trackpos - 1 + Else + e.SuppressKeyPress = True + End If + End If + End If + + SelectBottom() + End Sub +End Class \ No newline at end of file diff --git a/shiftos_next/bin/Debug/shiftos_next.exe b/shiftos_next/bin/Debug/shiftos_next.exe new file mode 100644 index 0000000..3600d1b Binary files /dev/null and b/shiftos_next/bin/Debug/shiftos_next.exe differ diff --git a/shiftos_next/bin/Debug/shiftos_next.exe.config b/shiftos_next/bin/Debug/shiftos_next.exe.config new file mode 100644 index 0000000..bc3672d --- /dev/null +++ b/shiftos_next/bin/Debug/shiftos_next.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/shiftos_next/bin/Debug/shiftos_next.pdb b/shiftos_next/bin/Debug/shiftos_next.pdb new file mode 100644 index 0000000..df285b0 Binary files /dev/null and b/shiftos_next/bin/Debug/shiftos_next.pdb differ diff --git a/shiftos_next/bin/Debug/shiftos_next.vshost.exe b/shiftos_next/bin/Debug/shiftos_next.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/shiftos_next/bin/Debug/shiftos_next.vshost.exe differ diff --git a/shiftos_next/bin/Debug/shiftos_next.vshost.exe.config b/shiftos_next/bin/Debug/shiftos_next.vshost.exe.config new file mode 100644 index 0000000..bc3672d --- /dev/null +++ b/shiftos_next/bin/Debug/shiftos_next.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/shiftos_next/bin/Debug/shiftos_next.xml b/shiftos_next/bin/Debug/shiftos_next.xml new file mode 100644 index 0000000..722da20 --- /dev/null +++ b/shiftos_next/bin/Debug/shiftos_next.xml @@ -0,0 +1,52 @@ + + + + +shiftos_next + + + + + + Returns the cached ResourceManager instance used by this class. + + + + Overrides the current thread's CurrentUICulture property for all + resource lookups using this strongly typed resource class. + + + + Looks up a localized resource of type System.IO.UnmanagedMemoryStream similar to System.IO.MemoryStream. + + + + Looks up a localized resource of type System.IO.UnmanagedMemoryStream similar to System.IO.MemoryStream. + + + + Looks up a localized resource of type System.IO.UnmanagedMemoryStream similar to System.IO.MemoryStream. + + + + Looks up a localized resource of type System.IO.UnmanagedMemoryStream similar to System.IO.MemoryStream. + + + + Looks up a localized resource of type System.IO.UnmanagedMemoryStream similar to System.IO.MemoryStream. + + + + Looks up a localized resource of type System.IO.UnmanagedMemoryStream similar to System.IO.MemoryStream. + + + + Looks up a localized resource of type System.IO.UnmanagedMemoryStream similar to System.IO.MemoryStream. + + + + A strongly-typed resource class, for looking up localized strings, etc. + + + + \ No newline at end of file diff --git a/shiftos_next/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/shiftos_next/obj/Debug/DesignTimeResolveAssemblyReferences.cache new file mode 100644 index 0000000..862fe37 Binary files /dev/null and b/shiftos_next/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/shiftos_next/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/shiftos_next/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..dd12c47 Binary files /dev/null and b/shiftos_next/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/shiftos_next/obj/Debug/TempPE/My Project.Resources.Designer.vb.dll b/shiftos_next/obj/Debug/TempPE/My Project.Resources.Designer.vb.dll new file mode 100644 index 0000000..4867d53 Binary files /dev/null and b/shiftos_next/obj/Debug/TempPE/My Project.Resources.Designer.vb.dll differ diff --git a/shiftos_next/obj/Debug/shiftos_next.HijackScreen.resources b/shiftos_next/obj/Debug/shiftos_next.HijackScreen.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/shiftos_next/obj/Debug/shiftos_next.HijackScreen.resources differ diff --git a/shiftos_next/obj/Debug/shiftos_next.Resources.resources b/shiftos_next/obj/Debug/shiftos_next.Resources.resources new file mode 100644 index 0000000..512f037 Binary files /dev/null and b/shiftos_next/obj/Debug/shiftos_next.Resources.resources differ diff --git a/shiftos_next/obj/Debug/shiftos_next.Terminal.resources b/shiftos_next/obj/Debug/shiftos_next.Terminal.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/shiftos_next/obj/Debug/shiftos_next.Terminal.resources differ diff --git a/shiftos_next/obj/Debug/shiftos_next.exe b/shiftos_next/obj/Debug/shiftos_next.exe new file mode 100644 index 0000000..3600d1b Binary files /dev/null and b/shiftos_next/obj/Debug/shiftos_next.exe differ diff --git a/shiftos_next/obj/Debug/shiftos_next.pdb b/shiftos_next/obj/Debug/shiftos_next.pdb new file mode 100644 index 0000000..df285b0 Binary files /dev/null and b/shiftos_next/obj/Debug/shiftos_next.pdb differ diff --git a/shiftos_next/obj/Debug/shiftos_next.vbproj.FileListAbsolute.txt b/shiftos_next/obj/Debug/shiftos_next.vbproj.FileListAbsolute.txt new file mode 100644 index 0000000..73b207a --- /dev/null +++ b/shiftos_next/obj/Debug/shiftos_next.vbproj.FileListAbsolute.txt @@ -0,0 +1,11 @@ +c:\users\the ultimate hacker\documents\github\ORION\project-orion\shiftos_next\shiftos_next\bin\Debug\shiftos_next.exe.config +c:\users\the ultimate hacker\documents\github\ORION\project-orion\shiftos_next\shiftos_next\obj\Debug\shiftos_next.HijackScreen.resources +c:\users\the ultimate hacker\documents\github\ORION\project-orion\shiftos_next\shiftos_next\obj\Debug\shiftos_next.Terminal.resources +c:\users\the ultimate hacker\documents\github\ORION\project-orion\shiftos_next\shiftos_next\obj\Debug\shiftos_next.vbproj.GenerateResource.Cache +c:\users\the ultimate hacker\documents\github\ORION\project-orion\shiftos_next\shiftos_next\bin\Debug\shiftos_next.exe +c:\users\the ultimate hacker\documents\github\ORION\project-orion\shiftos_next\shiftos_next\bin\Debug\shiftos_next.pdb +c:\users\the ultimate hacker\documents\github\ORION\project-orion\shiftos_next\shiftos_next\bin\Debug\shiftos_next.xml +c:\users\the ultimate hacker\documents\github\ORION\project-orion\shiftos_next\shiftos_next\obj\Debug\shiftos_next.Resources.resources +c:\users\the ultimate hacker\documents\github\ORION\project-orion\shiftos_next\shiftos_next\obj\Debug\shiftos_next.exe +c:\users\the ultimate hacker\documents\github\ORION\project-orion\shiftos_next\shiftos_next\obj\Debug\shiftos_next.xml +c:\users\the ultimate hacker\documents\github\ORION\project-orion\shiftos_next\shiftos_next\obj\Debug\shiftos_next.pdb diff --git a/shiftos_next/obj/Debug/shiftos_next.vbproj.GenerateResource.Cache b/shiftos_next/obj/Debug/shiftos_next.vbproj.GenerateResource.Cache new file mode 100644 index 0000000..50d7520 Binary files /dev/null and b/shiftos_next/obj/Debug/shiftos_next.vbproj.GenerateResource.Cache differ diff --git a/shiftos_next/obj/Debug/shiftos_next.xml b/shiftos_next/obj/Debug/shiftos_next.xml new file mode 100644 index 0000000..722da20 --- /dev/null +++ b/shiftos_next/obj/Debug/shiftos_next.xml @@ -0,0 +1,52 @@ + + + + +shiftos_next + + + + + + Returns the cached ResourceManager instance used by this class. + + + + Overrides the current thread's CurrentUICulture property for all + resource lookups using this strongly typed resource class. + + + + Looks up a localized resource of type System.IO.UnmanagedMemoryStream similar to System.IO.MemoryStream. + + + + Looks up a localized resource of type System.IO.UnmanagedMemoryStream similar to System.IO.MemoryStream. + + + + Looks up a localized resource of type System.IO.UnmanagedMemoryStream similar to System.IO.MemoryStream. + + + + Looks up a localized resource of type System.IO.UnmanagedMemoryStream similar to System.IO.MemoryStream. + + + + Looks up a localized resource of type System.IO.UnmanagedMemoryStream similar to System.IO.MemoryStream. + + + + Looks up a localized resource of type System.IO.UnmanagedMemoryStream similar to System.IO.MemoryStream. + + + + Looks up a localized resource of type System.IO.UnmanagedMemoryStream similar to System.IO.MemoryStream. + + + + A strongly-typed resource class, for looking up localized strings, etc. + + + + \ No newline at end of file diff --git a/shiftos_next/shiftos_next.vbproj b/shiftos_next/shiftos_next.vbproj new file mode 100644 index 0000000..5e727d8 --- /dev/null +++ b/shiftos_next/shiftos_next.vbproj @@ -0,0 +1,135 @@ + + + + + Debug + AnyCPU + {16D4DAEC-1CC8-40FD-9EB0-CE2343A3C8C7} + WinExe + shiftos_next.My.MyApplication + shiftos_next + shiftos_next + 512 + WindowsForms + v4.5 + + + AnyCPU + true + full + true + true + bin\Debug\ + shiftos_next.xml + 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 + + + AnyCPU + pdbonly + false + true + true + bin\Release\ + shiftos_next.xml + 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 + + + On + + + Binary + + + Off + + + On + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hijack.vb + + + Form + + + + True + Application.myapp + + + True + True + Resources.resx + + + True + Settings.settings + True + + + Terminal.vb + + + Form + + + + + Hijack.vb + + + VbMyResourcesResXFileCodeGenerator + Resources.Designer.vb + My.Resources + Designer + + + Terminal.vb + + + + + MyApplicationCodeGenerator + Application.Designer.vb + + + SettingsSingleFileGenerator + My + Settings.Designer.vb + + + + + + \ No newline at end of file diff --git a/shiftos_next/shiftos_next.vbproj.user b/shiftos_next/shiftos_next.vbproj.user new file mode 100644 index 0000000..fe7dc22 --- /dev/null +++ b/shiftos_next/shiftos_next.vbproj.user @@ -0,0 +1,6 @@ + + + + ShowAllFiles + + \ No newline at end of file