# 列出所有的Interface
sudo tcpdump -D
# 抓包
sudo tcpdump -i 1 -A -s 0 'tcp port 8080'
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 | |
"""Simple HTTP Server With Upload. | |
This module builds on BaseHTTPServer by implementing the standard GET | |
and HEAD requests in a fairly straightforward manner. | |
""" | |
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
'use strict'; | |
// Imports | |
var bunyan = require('bunyan'); | |
var Promise = require('bluebird'); | |
var lodash = require('lodash'); | |
var kafka = require('kafka-node'); | |
// Vars | |
var Producer = kafka.Producer; |