Skip to content

Instantly share code, notes, and snippets.

View marciopocebon's full-sized avatar

marciopocebon

View GitHub Profile
@marciopocebon
marciopocebon / zram-debian.md
Created March 18, 2026 19:42 — forked from LinuxProativo/zram-debian.md
Como ativar o zRam no Linux para Melhorar o Desempenho do Sistema

Ativação e Configuração do zRam no Debian e Derivados

https://salsa.debian.org/debian/zram-tools

zRAM é uma tecnologia do kernel Linux que permite a criação de blocos de dispositivos baseados na RAM, que funcionam como swap.

Em vez de usar swap em um HD ou SSD, o zRAM comprime os dados e os armazena diretamente na RAM, aumentando a eficiência do uso de memória, afim de melhorando o desempenho geral do sistema, especialmente em dispositivos com pouca RAM.

@marciopocebon
marciopocebon / cheatsheet_x86.txt
Created June 13, 2025 19:23 — forked from 7etsuo/cheatsheet_x86.txt
cheatsheet_x86.txt
___ ___ ________ ________________ __
| \/ || ___| \/ | _ | ___ \ \ / /
| . . || |__ | . . | | | | |_/ /\ V /
| |\/| || __|| |\/| | | | | / \ /
| | | || |___| | | \ \_/ / |\ \ | |
┌\_|──|_/\____/\_|──|_/\___/\_|─\_|─\_/────────────────────────────────────────────────────
│ │ ► Function Prologue
@marciopocebon
marciopocebon / pyvenvex.py
Created February 16, 2025 13:21 — forked from vsajip/pyvenvex.py
A script which demonstrates how to extend Python 3.3's EnvBuilder, by installing setuptools and pip in created venvs. This functionality is not provided as an integral part of Python 3.3 because, while setuptools and pip are very popular, they are third-party packages.The script needs Python 3.3 or later; invoke it using"python pyvenvex.py -h"fo…
#
# Copyright (C) 2013-2020 Vinay Sajip. New BSD License.
#
import os
import os.path
from subprocess import Popen, PIPE
import sys
from threading import Thread
from urllib.parse import urlparse
from urllib.request import urlretrieve
@marciopocebon
marciopocebon / netrlogonsamlogonwithflags.py
Created December 13, 2024 18:06 — forked from ThePirateWhoSmellsOfSunflowers/netrlogonsamlogonwithflags.py
Perform a netrlogonsamlogonwithflags (LogonNetworkTransitive) with a server account, it uses netlogon as SSP
from impacket.dcerpc.v5 import epm, lsad, rpcrt, transport, lsat, ndr, nrpc
from impacket.uuid import bin_to_uuidtup
from binascii import unhexlify, hexlify
from struct import pack, unpack
from random import randbytes
import sys
# Perform a netrlogonsamlogonwithflags with a server account, it uses netlogon as SSP (see [MS-NRPC] 3.3)
# Pure TCP RPC is used (ncacn_ip_tcp option)
# RC4 is used here because to use AES, impacket must be patched

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@marciopocebon
marciopocebon / constants.js
Created April 22, 2024 12:01 — forked from adrianhajdin/constants.js
Build and Deploy an Amazing 3D Web Developer Portfolio with ThreeJS | React Three Fiber
import {
mobile,
backend,
creator,
web,
javascript,
typescript,
html,
css,
reactjs,
@marciopocebon
marciopocebon / server.py
Created April 21, 2024 11:15 — forked from mdonkers/server.py
Simple Python 3 HTTP server for logging all GET and POST requests
#!/usr/bin/env python3
"""
License: MIT License
Copyright (c) 2023 Miel Donkers
Very simple HTTP server in python for logging requests
Usage::
./server.py [<port>]
"""
from http.server import BaseHTTPRequestHandler, HTTPServer
@marciopocebon
marciopocebon / 1_top+hacker_methodologies.md
Created January 7, 2024 07:48 — forked from ruevaughn/1_top+hacker_methodologies.md
Hacker Methodologies & Tools (NEW)

The Top Hacker Methodologies & Tools Notes

Nuclei Templates

Concrete5 CMS : Identification, Mass Hunting, Nuclei Template Writing & Reporting