Skip to content

Instantly share code, notes, and snippets.

View gnomex's full-sized avatar

Kenner Kliemann gnomex

View GitHub Profile
@gnomex
gnomex / alpine_exemplo0.sh
Created November 4, 2017 01:05
Docker simple example with volumes
docker run --rm -ti -v /:/mnt alpine
/ # echo "Mussum Ipsum, cacilds vidis litro abertis." > /mnt/home/<seu_user>/sec404
➜ ~ cat sec404
Mussum Ipsum, cacilds vidis litro abertis.
➜ ~ ls -l sec404
-rw-r--r-- 1 root root 43 out 31 22:52 sec404
#!/usr/bin/env python
from scapy.all import *
import sys
import glob
import numpy as np
from PIL import Image
def do_magic(filename):
DUMP = []
docker run --rm -ti alpine
docker run --rm -ti -v /:/mnt alpine chroot /mnt /bin/bash
@gnomex
gnomex / 42650.rb
Last active October 28, 2017 19:28
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
class MetasploitModule < Msf::Exploit::Remote
Rank = ExcellentRanking
include Msf::Exploit::Remote::HttpClient
include Msf::Exploit::FileDropper
ip link
ip addr ls
ip link list
ip route list table all
DNS cache
sudo systemd-resolve --flush-caches
sudo systemd-resolve --statistics
.something {
font-size: calc(16px + (24-16)*(100vw - 400px)/(800-400) );
}
# first option
list = for n <- 1..60, do: n
list |> Enum.shuffle |> Enum.take(6)
# second option (using same list defined before)
Enum.take_random(list, 6)
# third option
(for n <- 1..60, do: n) |> Enum.shuffle |> Enum.take(6)