Author name: kostas

PyBrain quickstart and beyond

After pip install bybrain, the PyBrain the quick start essentially goes as follows: from pybrain.tools.shortcuts import buildNetwork from pybrain.structure import TanhLayer from pybrain.datasets import SupervisedDataSet from pybrain.supervised.trainers import BackpropTrainer   # Create a neural network with two inputs, three hidden, and one output net = buildNetwork(2, 3, 1, bias=True, hiddenclass=TanhLayer)   # Create a dataset …

PyBrain quickstart and beyond Read More »

Log devices on your network

Fing logger (finglogger.sh): #!/bin/sh   FING_LOG_FILE=/path/to/fing.log   # append current public ip echo `date +"%Y/%m/%d %T"`";publicip;"`curl -s ipecho.net/plain`";;;" >> $FING_LOG_FILE   # append current fing output /usr/bin/fing -r1 -o log,csv,$FING_LOG_FILE,1000 –silent#!/bin/sh FING_LOG_FILE=/path/to/fing.log # append current public ip echo `date +"%Y/%m/%d %T"`";publicip;"`curl -s ipecho.net/plain`";;;" >> $FING_LOG_FILE # append current fing output /usr/bin/fing -r1 -o log,csv,$FING_LOG_FILE,1000 –silent …

Log devices on your network Read More »

Must remember to salt my hashes

While a sha-256 hash may seem unbreakable, for many input strings it takes seconds to crack. If you don’t believe me, try the following or simply read this webpage: $ python >>> import hashlib >>> print hashlib.sha256(‘megabrain’).hexdigest() f53c51616f4c7943a4117afa1d0ba193f9af901c6ce175a2207a594e71c98ef5 Go to crackstation.net, paste the hash into the text area, click “crack hashes” and see it the …

Must remember to salt my hashes Read More »