-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b5c1370
Showing
17 changed files
with
13,898 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules | ||
|
||
out/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
![a90](icon.png) | ||
# A90 | ||
funny doors reference except its REAL | ||
|
||
a90 is from roblox rooms i think and then roblox doors took that and put it in their game | ||
|
||
# WHAT IS THIS | ||
its a program for WINDOWS HAHA | ||
(i hate linux and mac os) | ||
|
||
basically if you know A-90 he shows up randomly and attacks you if you move your mouse so i made a program that does that on your computer | ||
|
||
# EPIC WARNINGS | ||
he CAN close all your current windows | ||
(im not responsible for any data loss caused by this, you have the option to turn it off if you have important things opened) | ||
|
||
to stop A-90 you can click on his window on the taskbar and press Alt + F4 | ||
|
||
I tried to make him avoid certain programs but he can and likely will close programs that end up bypassing my checks either purposely or accidentally. If you are really worried, use a VM or something idk | ||
|
||
BE CAREFUL WITH RUNNING HIM ON HIGH SPEEDS IF YOU HAVE CLOSE WINDOWS ENABLED. He can and will start bugging out your computer. |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
module.exports = { | ||
packagerConfig: { | ||
icon: 'icon' | ||
}, | ||
rebuildConfig: {}, | ||
makers: [ | ||
{ | ||
name: '@electron-forge/maker-squirrel', | ||
config: {}, | ||
}, | ||
{ | ||
name: '@electron-forge/maker-zip', | ||
platforms: ['darwin'], | ||
}, | ||
{ | ||
name: '@electron-forge/maker-deb', | ||
config: {}, | ||
}, | ||
{ | ||
name: '@electron-forge/maker-rpm', | ||
config: {}, | ||
}, | ||
], | ||
}; |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<style> | ||
* { | ||
user-select: none; | ||
image-rendering: pixelated; | ||
font-family: Arial, Helvetica, sans-serif; | ||
overflow: hidden; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div style="color: white; position: absolute; left: 25%; top: 25%; width: 50%; height: 50%; background-color: rgba(255, 82, 82, 0.75); border-radius: 16px; text-align: center; display: flex; align-items: center; flex-direction: column; align-content: center; justify-content: center;"> | ||
<div id="deeznutslmao!"> | ||
<h1 style="font-weight: bold">A-90 is currently grabbing your windows.</h1> | ||
<h1 style="font-weight: bold">Please wait for him to finish.</h1> | ||
</div> | ||
<br> | ||
<h1>Settings</h1> | ||
<p>Attempt attack every <input id="AttackInterval" type="number" value="5000">milliseconds</p> | ||
<p><input id="AttackChance" type="number" value="40">% chance to attack every attempt</p> | ||
<p>Close random window on attack <input id="CloseRandomWindow" type="checkbox" checked="true"></p> | ||
<br> | ||
<p>Notice: If you enable closing windows, expect a lag spike every 10 seconds as the program needs to refresh the list of closable windows every time.</p> | ||
<button id="Begin">Begin A-90</button> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
const { app, BrowserWindow, dialog, ipcMain, Tray } = require('electron') | ||
const electron = require('electron') | ||
const path = require('path') | ||
|
||
const psnode = require('ps-node') | ||
const findProcess = require('find-process') | ||
|
||
function createWindow() { | ||
const win = new BrowserWindow({ | ||
title: "A-90", | ||
icon: "icon.png", | ||
width: 1280, | ||
height: 720, | ||
center: true, | ||
movable: false, | ||
frame: false, | ||
alwaysOnTop: true, | ||
transparent: true, | ||
webPreferences: { | ||
devTools: false, | ||
sandbox: false, | ||
spellcheck: false, | ||
preload: path.join(__dirname, 'preload.js') | ||
} | ||
}) | ||
|
||
win.loadFile('index.html') | ||
win.maximize() | ||
win.removeMenu() | ||
return win | ||
} | ||
|
||
let window = null | ||
|
||
app.whenReady().then(() => { | ||
window = createWindow() | ||
app.___createdWindowForUse = window | ||
app.setName('A-90') | ||
app.setAppUserModelId('com.jeremygamer13.A90') | ||
|
||
app.on('activate', () => { | ||
if (BrowserWindow.getAllWindows().length === 0) { | ||
window = createWindow() | ||
app.___createdWindowForUse = window | ||
} | ||
}) | ||
}) | ||
|
||
app.on('window-all-closed', () => { | ||
if (process.platform !== 'darwin') { | ||
app.quit() | ||
} | ||
}) | ||
|
||
ipcMain.handle("fullscreen", (_, __) => { | ||
window.setFullScreen(true) | ||
}) | ||
ipcMain.handle("quitApp", (_, __) => { | ||
app.quit() | ||
}) | ||
ipcMain.handle("started", (_, __) => { | ||
window.setIgnoreMouseEvents(true) | ||
}) | ||
ipcMain.handle("getMousePos", (_, __) => { | ||
return electron.screen.getCursorScreenPoint() | ||
}) | ||
|
||
const killablePrograms = [] | ||
let programsAttempted = false | ||
|
||
function ResetKillablePrograms() { | ||
return new Promise((resolve, reject) => { | ||
psnode.lookup('', (err, programs) => { | ||
if (err) return reject(err) | ||
killablePrograms.splice(0, killablePrograms.length) | ||
for (let i = 0; i < programs.length; i++) { | ||
const program = programs[i] | ||
if (String(program.command).toLowerCase().endsWith("electron.exe")) continue // dont kill yourself please | ||
if (String(program.command).toLowerCase().endsWith("a90.exe")) continue // dont kill yourself please | ||
if (String(program.command).toLowerCase().endsWith("node.exe")) continue // dont kill yourself please | ||
|
||
if (String(program.command).toLowerCase().includes("system32")) continue // we are evil, not evil enough to kill a system32 process lol! | ||
if (String(program.command).toLowerCase().includes("windowsapps")) continue // idk what this is | ||
if (String(program.command).toLowerCase().includes("systemapps")) continue // idk what this is | ||
if (String(program.command).toLowerCase().includes("microsoft")) continue // idk what this is | ||
if (String(program.command).toLowerCase().includes("java\\java")) continue // idk what this is | ||
if (String(program.command).toLowerCase().includes("steamwebhelper")) continue // idk what this is | ||
if (String(program.command).toLowerCase().substring(0, 12).includes("windows")) continue // idk what this is | ||
if (String(program.command).substring(1, 3) != ":\\") continue // be safe | ||
killablePrograms.push(program) | ||
} | ||
resolve(killablePrograms) | ||
}) | ||
}) | ||
} | ||
|
||
app.on("ready", () => { | ||
ResetKillablePrograms().then(() => { | ||
programsAttempted = true | ||
}).catch(() => { | ||
programsAttempted = true | ||
dialog.showMessageBox({ message: "A-90 can't grab your open windows! You are safe for now." }) | ||
}) | ||
}) | ||
ipcMain.handle("killRandomProgram", (_, __) => { | ||
const index = Math.round(Math.random() * (killablePrograms.length - 1)) | ||
const program = killablePrograms[index] | ||
if (!program) return console.log("damn, nothing to kill") | ||
console.log('DIE', program.command, "!") | ||
psnode.kill(program.pid, (err) => { | ||
if (err) { | ||
if (!(String(err).includes("Kill process timeout"))) killablePrograms.splice(index, 1) | ||
return | ||
} | ||
killablePrograms.splice(index, 1) | ||
}) | ||
}) | ||
ipcMain.handle("programsAttempted", (_, __) => { | ||
return programsAttempted | ||
}) | ||
ipcMain.handle("resetKillablePrograms", (_, __) => { | ||
ResetKillablePrograms() | ||
}) |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.