This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:latest | |
RUN apk add --no-cache postfix postfix-pcre rsyslog | |
RUN postconf -e "myhostname=localhost" \ | |
&& postconf -e "mynetworks_style=host" \ | |
&& postconf -e "mail_spool_directory=/var/mail/" \ | |
&& postconf -e "virtual_alias_maps=pcre:/etc/postfix/virtual" \ | |
&& echo "/.*/ root" > /etc/postfix/virtual \ | |
&& postmap /etc/postfix/virtual \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set title 'Snort dropped packets' | |
set xlabel 'time' | |
set ylabel 'dropped packets %' | |
set grid | |
set term png | |
set output 'snort_dropped_packets.png' | |
set datafile separator ',' | |
plot 'snort.stats' using 1:2 with line lt -1 lw 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta charset="UTF-8"/> | |
<title>XSS</title> | |
<script>alert("XSS")</script> | |
</head> | |
<body> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
''' | |
http://benjaminjchapman.wordpress.com/2010/06/02/determining-last-post-sent-from-each-mailman-list/ | |
~mailman/bin/withlist -a -r mailman_tools.last_post > mailman_last_posts.csv | |
''' | |
import os | |
import time | |
print '"Name","Last","Owners"' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import cv2 | |
import numpy as np | |
import wave | |
import struct | |
import sys | |
# usage instructions: | |
# ./image2spectrogram.py input.png |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# This script will query a name server nonrecursively | |
# RFC 1912 recommends that the $TTL value on the name server | |
# be set to 1 day or longer | |
# -*- coding: utf-8 -*- | |
import sys | |
import dns | |
from dns.exception import DNSException | |
from dns.rdataclass import * |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmd_name | |
getenforce | |
uname | |
kill | |
touch | |
find | |
unset;rm | |
la | |
./screen | |
ll |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from random import random, choice | |
import sys | |
import Skype4Py | |
class Tanawifiew: | |
# error probabilities: | |
p_reorder = 0.01 # wrong key order | |
p_miss_key = 0.03 # no key press | |
p_near_key = 0.005 # near key press |