Skip to content

Instantly share code, notes, and snippets.

View renatorpn's full-sized avatar
⚠️
code is really bad proceed at own risk

renato renatorpn

⚠️
code is really bad proceed at own risk
View GitHub Profile
@renatorpn
renatorpn / freebsd_syscall_example1.c
Created September 24, 2022 22:36
Updated code from Designing BSD Rootkits 1st Edition. Working on FreeBSD 13.1
/*
!!!------
This is an updated code from Designing BSD Rootkits 1st Edition (Joseph Kong, No Starch Press). The code displayed here is original except where noted.
!!!------
*/
#include <sys/types.h>
#include <sys/param.h>
@renatorpn
renatorpn / pre-commit-trufflehog.sh
Created December 30, 2023 16:56
Simple bash script to install pre-commit hooks and configure a simple secret scanning pre-commit hook
#!/bin/bash
install_precommit_package() {
if command -v pre-commit &> /dev/null
then
echo "pre-commit is already installed."
else
echo "Installing pre-commit"
pip install pre-commit
fi
@renatorpn
renatorpn / reverse-shell-from-scratch.c
Created October 15, 2024 00:50
A simple reverse shell written in C for Linux. This is for educational purposes only.
#include <stdio.h>
#include <unistd.h>
#include <netinet/ip.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <ifaddrs.h>
#include <string.h>
#include <netdb.h>