mirror of
https://github.com/autistic-symposium/sec-pentesting-toolkit.git
synced 2025-05-02 14:56:10 -04:00
some memory exploitation snippets
This commit is contained in:
parent
d987311195
commit
ab05e249d4
19 changed files with 2613 additions and 0 deletions
9
Memory_Exploits/bash/find_setuid_programs.sh
Normal file
9
Memory_Exploits/bash/find_setuid_programs.sh
Normal file
|
@ -0,0 +1,9 @@
|
|||
#Find setuid programs
|
||||
#!/bin/sh
|
||||
tempfile="/tmp/$0.$$"
|
||||
trap "rm $tempfile" 0
|
||||
find / \( -type f -a -user root -a -perm -4001 \) -print > $tempfile
|
||||
for file in `cat $tempfile`; do
|
||||
strings -a $file | awk '/^gets$|^strcpy$|^strcat$|^sprintf$/\
|
||||
{ printf ("%-10s \t %-50s \n"), $1, file }' "file=$file" -
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue