- 本文件來源位址為:https://gist.github.com/fntsrlike/9941204
- StackEdit Viewr:[https://stackedit.io/viewer.....][1]
- Fntsr's Blog: [http://fntsr-blog.childish.tw.....][2]
This file contains 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
# installation | |
sudo apt-get install honeyd | |
sudo apt-get install nmap #(supported software for port scanning) | |
# check my eth0 address | |
ifconfig | |
### eth0 Link encap:Ethernet HWaddr 00:26:2d:f9:db:be <-----------------use this one | |
### inet addr:192.168.0.103 Bcast:192.168.0.255 Mask:255.255.255.0 | |
### inet6 addr: fe80::226:2dff:fef9:dbbe/64 Scope:Link | |
This file contains 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
/** | |
* A simple co | |
* @param {Function} fn Generator Function | |
* @return {Function} callback | |
*/ | |
function co(fn) { | |
return function(done) { | |
done = done || function() {}; | |
var gen = fn(); |
This file contains 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
package main | |
import ( | |
"github.com/gin-gonic/gin" | |
"database/sql" | |
"github.com/coopernurse/gorp" | |
_ "github.com/mattn/go-sqlite3" | |
"log" | |
"time" | |
"strconv" |
Based on D3.JS and Dimple, ChartFactory provide the ability to build quickly D3.JS charts without coding any lines of javascript. Just define your dashboard in a JSON and voila !
charts: [
{id:'chart1',
width:800,height:250,
xAxis:{type:'Category',field: "Month",orderRule:'Date'},
Calico | Flannel | Weave | Docker Overlay Network | |
---|---|---|---|---|
Network Model | Pure Layer-3 Solution | VxLAN or UDP Channel | VxLAN or UDP Channel | VxLAN |
Application Isolation | Profile Schema | CIDR Schema | CIDR Schema | CIDR Schema |
Protocol Support | TCP, UDP, ICMP & ICMPv6 | ALL | ALL | ALL |
This file contains 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 | |
import re | |
import os | |
import sys | |
import threading | |
import subprocess | |
import getopt | |
import time |
This file contains 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
var AWS = require('aws-sdk'); | |
AWS.config.update({ | |
accessKeyId: '{AWS_KEY}', | |
secretAccessKey: '{AWS_SECRET}', | |
region: '{SNS_REGION}' | |
}); | |
var sns = new AWS.SNS(); |
This Gist is created in 2014, and it's highliy outdated now, according to one of mitmproxy
's manjor contributor (check his comment below). Thanks for letting us know, @mhils!
Modern applications usually make use of back-end API servers to provide their services. With a non-transparent HTTPs proxy, which intercepts the communication between clients and servers (aka the man-in-the-middle scheme), you can easily manipulate both API requests and responses.
This file contains 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 | |
"""Run `snort -A console` command using a pipe. | |
Warning! Alerts are delayed until snort's stdout buffer is flushed. | |
""" | |
from __future__ import print_function | |
from subprocess import Popen, PIPE, STDOUT | |
snort_process = Popen(['snort', '-A', 'console', '-c', 'snort.conf'], | |
stdout=PIPE, stderr=STDOUT, bufsize=1, |
OlderNewer