Skip to content

Instantly share code, notes, and snippets.

View tomix86's full-sized avatar
🚙
Blueboxin'

Tomasz Gajger tomix86

🚙
Blueboxin'
View GitHub Profile
@tomix86
tomix86 / ambient.c
Last active August 20, 2026 12:38 — 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
*/