Skip to content

Commit

Permalink
release 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
CraigLager committed Apr 1, 2018
1 parent 9762403 commit 53d1774
Show file tree
Hide file tree
Showing 9 changed files with 197 additions and 0 deletions.
6 changes: 6 additions & 0 deletions App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>
58 changes: 58 additions & 0 deletions Formatter.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{E783FB15-F6E1-4556-8C97-B6DB156608DE}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>Formatter</RootNamespace>
<AssemblyName>Malware Byter</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="readme.md" />
</ItemGroup>
<ItemGroup>
<Content Include="Threats.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
72 changes: 72 additions & 0 deletions Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Formatter
{
class Program
{
static void Main(string[] args)
{
// get all current threars
var items = System.IO.File.ReadAllLines("Threats.txt");
var rando = new Random();

// iterate threats
foreach(var item in items)
{
// do top pranking
WriteLine(item + " found");
WriteLine("Scanning " + item, ConsoleColor.Yellow);
WriteLine("Threat found in " + item, ConsoleColor.Red);
WriteLine("Removing " + item + " please wait. Do not turn off your computer - risk of hardware malfunction", ConsoleColor.Red);

for(var i = 0; i < 100; i++)
{
System.Threading.Thread.Sleep(rando.Next(500,7000));
ProgressBar(i);
}

Console.WriteLine();
}

}

/// <summary>
/// prankress bar
/// </summary>
/// <param name="progressPercent">percentage of current prank complete</param>
static void ProgressBar(int progressPercent)
{
for(var i = 0; i < 50; i++)
{
if(progressPercent/2 >= i)
{
Console.Write("█");
}
else
{
Console.Write("░");
}
}

if(progressPercent < 100)
{
Console.CursorLeft = 0;
}
}

/// <summary>
/// Write top pranks
/// </summary>
/// <param name="message">top prank</param>
/// <param name="color">color of prank</param>
static void WriteLine(string message, ConsoleColor color = ConsoleColor.Gray)
{
Console.ForegroundColor = color;
Console.WriteLine(message);
}
}
}
36 changes: 36 additions & 0 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using 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.
[assembly: AssemblyTitle("Formatter")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Formatter")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("e783fb15-f6e1-4556-8c97-b6db156608de")]

// 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:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
8 changes: 8 additions & 0 deletions Threats.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Fortnite
Gangbeasts
Rocket League
CS:GO
Epic Account
Steam Account
PayPal balance
Windows
Binary file added bin/Release/Malware Byter.exe
Binary file not shown.
6 changes: 6 additions & 0 deletions bin/Release/Malware Byter.exe.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>
8 changes: 8 additions & 0 deletions bin/Release/Threats.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Fortnite
Gangbeasts
Rocket League
CS:GO
Epic Account
Steam Account
PayPal balance
Windows
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Executable in /bin/release

Edit threats.txt to customise

0 comments on commit 53d1774

Please sign in to comment.