mirror of
https://github.com/autistic-symposium/sec-pentesting-toolkit.git
synced 2025-05-02 06:46:07 -04:00
docs: Clean up resources for Hackoctoberfest 2019 (#41)
* Clean up resources for Hackoctoberfest 2019
* 👩🏾🦱 Add cloud hacking readme
This commit is contained in:
parent
746d808fc0
commit
9ed0254149
458 changed files with 9658 additions and 57 deletions
|
@ -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
|
|
@ -0,0 +1,17 @@
|
|||
#Get Shellcode form an executable file
|
||||
#!/bin/bash
|
||||
if [ $# -ne 1 ]
|
||||
then
|
||||
printf "\n\tUsage: $0 filename.o\n\n"
|
||||
exit
|
||||
fi
|
||||
filename=`echo $1 | sed s/"\$"//`
|
||||
rm -f $filename.shellcode
|
||||
|
||||
objdump -d $filename | grep '[0-9a-f]:' |
|
||||
grep -v 'file' | cut -f2 -d: |
|
||||
cut -f1-6 -d' ' | tr -s ' ' | tr '\t' ' ' |
|
||||
sed 's/ $//g' | sed 's/ /\\x/g' | paste -d '' -s |
|
||||
sed 's/^/"/' | sed 's/$/"/g'
|
||||
|
||||
echo
|
Loading…
Add table
Add a link
Reference in a new issue