Skip to content

Instantly share code, notes, and snippets.

View tomix86's full-sized avatar
🦉
Dynatracin'

Tomasz Gajger tomix86

🦉
Dynatracin'
View GitHub Profile
@tomix86
tomix86 / ambient.c
Last active February 19, 2024 09:05 — forked from infinity0/ambient.c
Set ambient capabilities
/*
* Test program for the ambient capabilities
*
* You need to install libcap-ng-dev first, then compile using:
* $ gcc -o ambient ambient.c -lcap-ng && sudo setcap cap_setpcap,cap_net_raw,cap_net_admin,cap_sys_nice+eip ambient
*
* To get a shell with additional caps that can be inherited do:
*
* ./ambient /bin/bash
*/