Skip to content

Instantly share code, notes, and snippets.

import threading
import time
class ThreadingExample(object):
""" Threading example class
The run() method will be started and it will run in the background
until the application exits.
"""
Broad summary:
- Elections are on Sunday 5th, July.
- This is the first time an e-voting system is used in Buenos Aires city.
- Researchers and IT professionals had been warning about potential issues with the way the system works (short summary at the end).
- Government officials have said on-record that the machines are only "printers with no memory". There is video evidence that the machines are in fact standard PCs running Ubuntu. USB and VGA ports are located behind a lid on the side. See videos here: https://storify.com/mis2centavos/el-sistema-de-voto-electronico-usado-en-caba
@Sukelluskello
Sukelluskello / gpgmutt.md
Last active August 29, 2015 14:25 — forked from bnagy/gpgmutt.md

GPG / Mutt / Gmail

About

This is a collection of snippets, not a comprehensive guide. I suggest you start with Operational PGP.

Here is an incomplete list of things that are different from other approaches:

  • I don't use keyservers. Ever.
  • Yes, I use Gmail instead of some bespoke hipster freedom service
@Sukelluskello
Sukelluskello / graceful_shutdown_tornado_web_server.py
Created January 17, 2016 12:41 — forked from mywaiting/graceful_shutdown_tornado_web_server.py
The example to how to shutdown tornado web server gracefully...
#!/usr/bin/env python
"""
How to use it:
1. Just `kill -2 PROCESS_ID` or `kill -15 PROCESS_ID` , The Tornado Web Server Will shutdown after process all the request.
2. When you run it behind Nginx, it can graceful reboot your production server.
3. Nice Print in http://weibo.com/1682780325/zgkb7g8k7
"""
@Sukelluskello
Sukelluskello / ghost_xmlrpc.rb
Created April 2, 2016 08:55 — forked from rcbarnett-zz/ghost_xmlrpc.rb
GHOST gethostbyname() Vuln (CVE-2015-0235) - Wordpress XML-RPC Pingback Vector
#
# --[ Trustwave SpiderLabs Research Team ]--
# Ref: http://blog.spiderlabs.com/2015/01/ghost-gethostbyname-heap-overflow-in-glibc-cve-2015-0235.html
#
require "net/http"
require "uri"
if ARGV.count != 2
puts "Usage: #{ARGV[0]} [Target URL] [count]"
exit
@Sukelluskello
Sukelluskello / vhost.py
Created April 3, 2016 18:46 — forked from fideloper/vhost.py
Create vHost Ubuntu Lamp-Server (bash and python)
#! /usr/bin/python
from sys import argv
from os.path import exists
from os import makedirs
from os import symlink
from os import system
import getopt
#

Keybase proof

I hereby claim:

  • I am Sukelluskello on github.
  • I am sukelluskello (https://keybase.io/sukelluskello) on keybase.
  • I have a public key whose fingerprint is D03C 97A8 6DF4 6E25 FA31 079E B218 EE2B DB44 709F

To claim this, I am signing this object:

WannaCry2: Petya Ransomware attack.
Got new info? Email at isox@vulners.com
*********** Possible malware files:
https://yadi.sk/d/S0-ZhPY53KWc84
https://yadi.sk/d/Zpkm88sp3KWc8v
Archive password: virus
*********** Malware dropped file:
@Sukelluskello
Sukelluskello / libHash.cpp
Created November 4, 2018 07:48 — forked from maldevel/libHash.cpp
Dexter SHA 256 Hash snippet
//https://github.com/twelvesec/dexter
//GNU General Public License v3.0
//@maldevel
//...
std::string libHash::sha256(std::string input) {
std::string hash;
sha256_context ctx;
BYTE tmp[SHA256_HASH_SIZE];
@Sukelluskello
Sukelluskello / gist:7bda13d402a632d3df7eab3228f7c4b9
Created May 17, 2019 04:40 — forked from kirk-sayre-work/gist:6ebdee9eff31ba8bd6e35ec3f9efd726
Yara Rule to Detect Office Files Modified to Hide VBA Modules in Office VBA IDE.
rule vba_hidden_from_editor {
  strings:
    $header_office = { D0 CF 11 E0 }
    $has_macros = "\x0aDocument="
    $s1 = /\x0aDocument=.{3,1000}\x0d?\x0a\w{4,30}=(\{|"|[a-zA-Z])/
    $s2 = /\x0aDocument=This(Docume|Displa)[a-zA-Z](\x00.){10,}/
  condition: