Skip to content

Instantly share code, notes, and snippets.

View iAklis's full-sized avatar
🎯
Focusing on Cloud Security

Aklis iAklis

🎯
Focusing on Cloud Security
View GitHub Profile
@iAklis
iAklis / macOS Internals.md
Created May 7, 2023 07:06 — forked from kconner/macOS Internals.md
macOS Internals

macOS Internals

Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.

Starting Points

How to use this gist

You've got two main options:

@iAklis
iAklis / introrx.md
Created June 5, 2021 08:44 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@iAklis
iAklis / dying_cgroup.sh
Last active December 15, 2019 03:11
Proof of concept of dying cgroup and dirty slab.
#!/bin/bash
old_memcg_num=$(cat /proc/cgroups | awk '/memory/ {print $3}')
free -m
slabtop -o | head
echo "now the number of memory cgroup is $old_memcg_num"
echo "begin to create cgroups"
prefix=/sys/fs/cgroup/memory/aklis
@iAklis
iAklis / traceicmpsoftirq.py
Last active December 19, 2019 11:07 — forked from theojulienne/traceicmpsoftirq.py
ICMP packet tracer using BCC
#!/usr/bin/python
bpf_text = """
#include <linux/ptrace.h>
#include <linux/sched.h> /* For TASK_COMM_LEN */
#include <linux/icmp.h>
#include <linux/netdevice.h>
struct probe_icmp_data_t
{
u64 timestamp_ns;
u32 tgid;
@iAklis
iAklis / audit.rules
Created July 8, 2018 03:43 — forked from Neo23x0/audit.rules
Linux Auditd Best Practice Configuration
# ___ ___ __ __
# / | __ ______/ (_) /_____/ /
# / /| |/ / / / __ / / __/ __ /
# / ___ / /_/ / /_/ / / /_/ /_/ /
# /_/ |_\__,_/\__,_/_/\__/\__,_/
#
# Linux Audit Daemon - Best Practice Configuration
# /etc/audit/audit.rules
#
# Compiled by Florian Roth
.
├── matree
├── swift
│   ├── 00503_0_254.242_2013mar02
│   ├── 00546_0_ensbdasa-09aug2013
│   ├── 00553_0_ensbdpix3-09aug2013
│   ├── 00554_0_ensbdpix4-09aug2013
│   ├── 00555_0_ensbdrtr1-2013aug09
│   ├── 00557_0_ENSBDVPN1-02AUG2013
│   ├── 00558_0_ENSBDVPN2-02AUG2013
@iAklis
iAklis / solver.py
Created December 12, 2016 02:07 — forked from sonickun/solver.py
SECCON CTF 2016 quals | biscuiti (Crypto, Web 300pt)
from Crypto.Util.number import *
from Crypto.Cipher import AES
import requests
import time
import base64
def xor(a, b):
return "".join([chr(ord(a[i]) ^ ord(b[i % len(b)])) for i in xrange(len(a))])
@iAklis
iAklis / big_query_examples.md
Created July 19, 2016 10:13 — forked from arfon/big_query_examples.md
BigQuery Examples for blog post

How many times shouldn't it happen...

-- https://news.ycombinator.com/item?id=11396045

SELECT count(*)
FROM (SELECT id, repo_name, path
        FROM [bigquery-public-data:github_repos.sample_files]
 ) AS F
@iAklis
iAklis / javascript_Witcher.js
Created February 22, 2016 17:16
javascript_Witcher题目源码
function (urandom) {
function step1(){
var a = new Date();
var b = Number(a.getFullYear());
t = 0;
for (var i = 0; i < b.length; i++ ){
t += parseInt();
}
var c = String(a.getFullYear());
@iAklis
iAklis / best_language_PT100.php
Last active August 29, 2015 14:24
强网杯-最好的语言100分
<?php
//TODO: connect to DB
$id = $_GET['id'];
//TODO: sqli filter
$secretId = 1024;
if($id == $secretId){