Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block ecx86

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ecx86 /
Last active Jan 28, 2020
Dell Poweredge manual fan controller
import subprocess, os, time, collections, re
goal_temp = 40.0
k_p = 5
k_i = 0.1
k_d = 2
max_fan = 100
min_fan = 10 # keep the fans at x% at least so the server remains cool when idle.
ecx86 /
Last active Dec 24, 2019
Generate self-signed certificate with openssl

Based off of this gist

I'm sick of typing the commands to self-sign these certs but I'm also way too lazy to setup proper PKI and ACME server. So instead I ssh into this server and do the needful each time, then rsync the key and crt LOL. All this crap is behind a VPN and the ssl is really just there so firefox will remember my passwords...

Why do we need faketime (apt install faketime)? Because Apple.

And same with the fancy extendedKeyUsage nonsense.

ecx86 /
Created Jun 5, 2019
010 editor Java classfile template with fix for classfiles version < 45.3
//--- 010 Editor v5.0 Binary Template
// File:
// Authors: Pishchik Ilya L. (RUS)
// Version: 1.2
// Purpose: A template for parsing Java Class (JVM) Files.
// Includes visualizing bytecode.
// Category: Programming
// File Mask: *.class
View Visual Studio 2017 Enterprise & Professional
Enterprise: NJVYC-BMHX2-G77MM-4XJMR-6Q8QF
Keys are generic ones. These are the same from MSDN account.
Product Key : -6Q8QF
Validity : Valid
Product ID : 00369-90000-00000-AA703
Advanced ID : XXXXX-03699-000-000000-00-1032-9200.0000-0672017
ecx86 / preamble.h
Created Dec 29, 2018
Preprocess library include headers for loading in IDA
View preamble.h
#define __attribute__(X)
#define __asm__(X)
#define __extension__
#define __inline
ecx86 /
Created Nov 16, 2018
python3 encoding cheatsheet
#!/usr/bin/env python3.6
my_string = 'hello world'
# get bytes from string
my_bytes = my_string.encode() # default is utf8. accepts: utf-8, utf16, ascii, etc
# get hex from bytes
my_hex = my_bytes.hex() # NEW in python3.5, on python<3.4 use binascii (un)hexlify
ecx86 /
Last active Jan 29, 2020
Socket server that returns your IP address -- try it online at
#!/usr/bin/env python3
from socket import *
s = socket(AF_INET, SOCK_STREAM)
s.bind(('', 9999))
while True:
c,a = s.accept()
c.send((str(a[0]) + '\n').encode('utf-8'))
ecx86 / delete-all-messages.js
Last active Jan 29, 2020 — forked from niahoo/delete-all-messages.js
Delete all your messages in a Discord channel
View delete-all-messages.js
* Discord: Don't copy stuff into this box
* Me: dOn'T COpy sTuFf iNtO tHIs bOx
clearMessages = function (guild_id, author_id, authToken, deleted = new Set()) {
if (guild_id[0] == "_" && guild_id[guild_id.length - 1] == "_") {
alert("Oops! You forgot to set the guild_id. Please fill it in.")
if (author_id[0] == "_" && author_id[author_id.length - 1] == "_") {
ecx86 /
Created Sep 5, 2018
rtorrent 0.9.6 - Denial of Service (mirror from exploitdb)
# Mirror of
# Exploit Title: rtorrent 0.9.6 - Denial of Service
# Date: 2018-01-10
# Exploit Author: ecx86
# Vendor Homepage:
# Software Link:
# Version: <= 0.9.6
# Tested on: Debian GNU/Linux 9.4 (stretch)
ecx86 /
Created Nov 18, 2017
Compiling Veles on Windows

Note: change cmake -G parameter to whatever visual studio you need... just pass cmake -G "" to make it list all the options

git clone
cd veles

Open CMakeLists.txt add this at the top:

You can’t perform that action at this time.