Skip to content

Instantly share code, notes, and snippets.

View kevinmel2000's full-sized avatar
๐Ÿš€
To The Moon

Teddy Zugana kevinmel2000

๐Ÿš€
To The Moon
View GitHub Profile
@kevinmel2000
kevinmel2000 / pnginator.rb
Created December 4, 2018 10:09 — forked from drubicza/pnginator.rb
pnginator: pack Javascript into a self-extracting PNG
#!/usr/bin/env ruby -w
# pnginator.rb: pack a .js file into a PNG image with an HTML payload;
# when saved with an .html extension and opened in a browser, the HTML extracts and executes
# the javascript.
# Usage: ruby pnginator.rb input.js output.png.html
# By Gasman <http://matt.west.co.tt/>
# from an original idea by Daeken: http://daeken.com/superpacking-js-demos
@kevinmel2000
kevinmel2000 / mem-loader.asm
Created December 4, 2018 10:09 — forked from drubicza/mem-loader.asm
Fun little loader shellcode that executes an ELF in-memory using an anonymous file descriptor (inspired by https://x-c3ll.github.io/posts/fileless-memfd_create/)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
;;; Copyright (C), zznop, zznop0x90@gmail.com
;;;
;;; This software may be modified and distributed under the terms
;;; of the MIT license. See the LICENSE file for details.
;;;
;;; DESCRIPTION
;;;
;;; This PoC shellcode is meant to be compiled as a blob and prepended to a ELF
@kevinmel2000
kevinmel2000 / disable_ddeauto.reg
Created November 5, 2018 09:04 — forked from mackwage/disable_ddeauto.reg
Disable DDEAUTO for Outlook, Word, and Excel versions 2010, 2013, 2016
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Word\Options]
"DontUpdateLinks"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Word\Options]
"DontUpdateLinks"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Word\Options]
"DontUpdateLinks"=dword:00000001
@kevinmel2000
kevinmel2000 / windows_hardening.cmd
Created November 5, 2018 09:04 — forked from mackwage/windows_hardening.cmd
Script to perform some hardening of Windows OS
::
::#######################################################################
::
:: Change file associations to protect against common ransomware attacks
:: Note that if you legitimately use these extensions, like .bat, you will now need to execute them manually from cmd or powershell
:: Alternatively, you can right-click on them and hit 'Run as Administrator' but ensure it's a script you want to run :)
:: ---------------------
ftype htafile="%SystemRoot%\system32\NOTEPAD.EXE" "%1"
ftype WSHFile="%SystemRoot%\system32\NOTEPAD.EXE" "%1"
ftype batfile="%SystemRoot%\system32\NOTEPAD.EXE" "%1"
@kevinmel2000
kevinmel2000 / Simple_Rev_Shell.cs
Created October 19, 2018 03:48
C# Simple Reverse Shell Code
using System;
using System.Text;
using System.IO;
using System.Diagnostics;
using System.ComponentModel;
using System.Linq;
using System.Net;
using System.Net.Sockets;
@kevinmel2000
kevinmel2000 / bernoulli.c
Created August 20, 2018 07:59 — forked from sinclairtarget/bernoulli.c
Lovelace's Note G Program in C
#include <stdio.h>
/*
* Calculates what Ada Lovelace labeled "B7", which today we would call the 8th
* Bernoulli number.
*/
int main(int argc, char* argv[])
{
// ------------------------------------------------------------------------
// Data
@kevinmel2000
kevinmel2000 / pgbackup.sh
Created October 10, 2017 17:26 — forked from masbog/pgbackup.sh
postgre daily backup to file with shell script and can use in cronjobs
#!/bin/bash
PGHOST="8.0.6.13"
PGUSER="masbog"
PGDB="masdb"
PGVERSION="9.4"
FILENAME="/tmp/dbdump/$(date '+%A-%M-%m-%Y-%T.dump')"
STARTTIME="START AT $(date '+%A-%M-%m-%Y-%T')"
echo "removing old data rm -f /tmp/dbdump/*"
rm -f /tmp/dbdump/*
@kevinmel2000
kevinmel2000 / AES.c
Created October 10, 2017 17:26 — forked from masbog/AES.c
A simple example of using AES encryption in Java and C.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*
* MCrypt API available online:
* http://linux.die.net/man/3/mcrypt
*/
#include <mcrypt.h>
@kevinmel2000
kevinmel2000 / RSASecurity.java
Created October 10, 2017 17:24 — forked from fajarlabs/RSASecurity.java
RSA Security For Java Servlet
import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.StringReader;
import java.net.URL;
import java.security.InvalidKeyException;
import java.security.KeyFactory;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;