Skip to content

Instantly share code, notes, and snippets.

View blogdron's full-sized avatar
👻

BLOGDRON blogdron

👻
View GitHub Profile
@blogdron
blogdron / pcall-load.md
Created January 5, 2024 03:05 — forked from Fingercomp/pcall-load.md
О `pcall` и `load` в Lua

Познакомимся с load. Эта функция берёт первым аргументом строку и компилирует её.

local str = "Тест!"
print(load(str))
--> nil [string "Тест!"]:1: unexpected symbol near '<\208>'

Код выше вернёт странные идеограммы, но если присмотреться, то становится заметно, что именно там происходит.

@blogdron
blogdron / tcp_flags.txt
Created October 8, 2021 23:21 — forked from tuxfight3r/tcp_flags.txt
tcpdump - reading tcp flags
##TCP FLAGS##
Unskilled Attackers Pester Real Security Folks
==============================================
TCPDUMP FLAGS
Unskilled = URG = (Not Displayed in Flag Field, Displayed elsewhere)
Attackers = ACK = (Not Displayed in Flag Field, Displayed elsewhere)
Pester = PSH = [P] (Push Data)
Real = RST = [R] (Reset Connection)
Security = SYN = [S] (Start Connection)
@blogdron
blogdron / hax.c
Created June 15, 2021 20:45 — forked from apsun/hax.c
Hook main() using LD_PRELOAD
/*
* Hook main() using LD_PRELOAD, because why not?
* Obviously, this code is not portable. Use at your own risk.
*
* Compile using 'gcc hax.c -o hax.so -fPIC -shared -ldl'
* Then run your program as 'LD_PRELOAD=$PWD/hax.so ./a.out'
*/
#define _GNU_SOURCE
#include <stdio.h>