Skip to content

Instantly share code, notes, and snippets.

View migounette's full-sized avatar

Yann Stephan migounette

View GitHub Profile
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A FORWARD -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT
[{"ts":1.7400000000002365,"k":"J"},{"ts":1.8333999999999833,"k":"e"},{"ts":1.9792999999999665,"k":" "},{"ts":2.0421000000001186,"k":"v"},{"ts":2.1910000000002583,"k":"a"},{"ts":2.2689000000000306,"k":"i"},{"ts":2.3787999999999556,"k":"s"},{"ts":2.4423000000001593,"k":" "},{"ts":2.699200000000019,"k":"v"},{"ts":2.8431000000000495,"k":"o"},{"ts":2.8591999999998734,"k":"u"},{"ts":2.955199999999877,"k":"r"},{"ts":3.5862999999999374,"k":"s"},{"ts":3.6666000000000167,"k":" "},{"ts":3.8829000000000633,"k":"r"},{"ts":4.01909999999998,"k":"a"},{"ts":4.19439999999986,"k":"c"},{"ts":4.322599999999966,"k":"o"},{"ts":4.40480000000025,"k":"n"},{"ts":4.451100000000224,"k":"t"},{"ts":4.546800000000076,"k":"e"},{"ts":4.6422999999999774,"k":"r"},{"ts":4.70659999999998,"k":" "},{"ts":4.802700000000186,"k":"u"},{"ts":4.994500000000244,"k":"n"},{"ts":5.106499999999869,"k":" "},{"ts":5.242700000000241,"k":"p"},{"ts":5.6051000000002205,"k":"e"},{"ts":5.670500000000175,"k":"u"},{"ts":5.901100000000042,"k":" "},{"ts":6.09189999999989
...
DEBUG - Begin Analysis of '/var/lib/jenkins/workspace/SEE-OWASP/admin-operations/www/admin-rest/npm-shrinkwrap.json' (Node.js Package Analyzer)
2018-02-28 22:21:41,708 org.owasp.dependencycheck.AnalysisTask:94
WARN - An unexpected error occurred during analysis of '/var/lib/jenkins/workspace/SEE-OWASP/specs/package-lock.json' (Node.js Package Analyzer): null
2018-02-28 22:21:41,709 org.owasp.dependencycheck.AnalysisTask:96
DEBUG -
java.lang.NullPointerException: null
at org.glassfish.json.JsonObjectBuilderImpl$JsonObjectImpl.getString(JsonObjectBuilderImpl.java:199)
at org.owasp.dependencycheck.analyzer.NodePackageAnalyzer.analyzeDependency(NodePackageAnalyzer.java:189)
at org.owasp.dependencycheck.analyzer.AbstractAnalyzer.analyze(AbstractAnalyzer.java:136)
@migounette
migounette / client.js
Last active August 29, 2015 14:06
fd leaks on Linux system with socket.io 1.1.x and node 0.11.14
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"
var socketio = require('socket.io-client');
var totalCnx = 10;
var countCnx = 0;
var countCnxClose = 0;
var timerId = setInterval(function() {