Skip to content

Instantly share code, notes, and snippets.

View Albocoder's full-sized avatar

Erin Avllazagaj Albocoder

View GitHub Profile
@Albocoder
Albocoder / llvm_write_bitcode_13.patch
Last active June 9, 2024 01:40
clang13-bitcode-dump-patch
diff --git a/llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp b/llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp
index d95fd55870f8..dcc1e53fba7b 100644
--- a/llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp
+++ b/llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp
@@ -50,6 +50,9 @@
#include <utility>
#include <vector>
+#include "llvm/Bitcode/BitcodeWriter.h"
+#include "llvm/Support/ToolOutputFile.h"
#define _GNU_SOURCE
#include <arpa/inet.h>
#include <endian.h>
#include <errno.h>
#include <fcntl.h>
#include <net/if.h>
#include <net/if_arp.h>
#include <netinet/in.h>
#include <sched.h>
@Albocoder
Albocoder / sandbox-env-stealer.py
Last active February 16, 2022 14:45
The python code used to take the environment data from sandboxes and send them to discord server.
#################################################################################
# #
# Refer to this blog post about what this code is used for: #
# https://albocoder.github.io/malware/2021/06/01/SandboxStudy.html #
# #
#################################################################################
import requests
import os
import psutil