Advertisement
Sugv

MEMZ Trojan Visual Glitched

Apr 11th, 2021
985
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.61 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. namespace Visual_Glitches
  11. {
  12.     public partial class Form1 : Form
  13.     {
  14.         public Form1()
  15.         {
  16.             InitializeComponent();
  17.         }
  18.  
  19.         public static Cursor CreateCursor(Bitmap bm,Size size)
  20.     {
  21.         bm = new Bitmap(bm,size);
  22.         return new Cursor(bm.GetHicon()); //get cursor icon
  23.     }
  24.         private void Form1_Load(object sender, EventArgs e)
  25.         {
  26.  
  27.  
  28.  
  29.             timer1.Enabled = true;
  30.             timer1.Start();
  31.  
  32.             this.TopMost = true;
  33.             this.FormBorderStyle = FormBorderStyle.None;
  34.             this.WindowState = FormWindowState.Maximized;//form borderless,top,maximized
  35.             pictureBox2.SizeMode = PictureBoxSizeMode.StretchImage;//resize image to fit error icon
  36.         }
  37.  
  38.         private void timer1_Tick(object sender, EventArgs e)
  39.         {
  40.  
  41.  
  42.             Random random = new Random();//random class
  43.             int num = random.Next(0, 150);
  44.             int num1 = random.Next(0, 150);
  45.             int num2 = random.Next(0, 150);
  46.             int num3 = random.Next(0, 150);
  47.             //random numbers
  48.             Bitmap bmp = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Width);
  49.             Graphics g = Graphics.FromImage(bmp);
  50.             g.CopyFromScreen(num, num3, num1, num2, bmp.Size);
  51.             g.CopyFromScreen(num3, num2, num, num1, bmp.Size);
  52.             //get screenshot
  53.             int width = random.Next(500, 1500);
  54.             int height = random.Next(250, 800);
  55.  
  56.             for (int y = 0; y < height; y++)
  57.             {
  58.                 for (int x = 0; x < width; x++)
  59.                 {
  60.  
  61.                     Color p = bmp.GetPixel(x, y);
  62.  
  63.  
  64.                     int a = p.A;
  65.                     int r = p.R;
  66.                     int gr = p.G;
  67.                     int b = p.B;
  68.  
  69.  
  70.                     r = 255 - r;
  71.                     gr = 255 - gr;
  72.                     b = 255 - b;
  73.  
  74.  
  75.                     bmp.SetPixel(x, y, Color.FromArgb(a, r, gr, b));
  76.  
  77.                 }
  78.                 pictureBox2.Location = Cursor.Position;
  79.                 pictureBox1.Image = bmp;
  80.  
  81.  
  82.             }
  83.             //change every pixel until all the area becomes inverted and then put the screenshot on screen
  84.             this.Cursor = CreateCursor((Bitmap)imagelist1.Images[0], new Size(32, 32));//set cursor to error icon from imagelist
  85.  
  86.         }
  87.  
  88.     }
  89.  
  90. }
  91.  
  92.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement