Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ip=$1
- username=$2
- password=$3
- shift 3
- command=$*
- filename=$(echo $command | tr " " "_" )
- command=$(echo $command | tr " " "/" | tr -d "\n" )
- echo "ip:$ip"
- echo "username:$username"
- echo "password:$password"
- echo "command:$command"
- url="http://${ip}/level/15/exec/-/${command}/CR"
- echo $url
- curl --user "${username}:${password}" "${url}" | sed -n '/Command was/,/command completed/p'
- echo "=========================================================================================="
Add Comment
Please, Sign In to add comment