Guest User

Untitled

a guest
Apr 23rd, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #! /bin/bash
  2.  
  3. echo "Hello, $USER. So you want to backup your phone, eh?"
  4.  
  5. echo -n "Please enter your iPhone's IP address:"
  6. read phoneip
  7.  
  8. echo -n "Please enter your rootpass:"
  9. read -s rootpass
  10. echo
  11.  
  12. if [ -d ~/Desktop/iphoneBackup ]
  13. then
  14. echo "Backup folder already exists, files will be placed in current backup folder"
  15. else
  16. mkdir ~/Desktop/iphoneBackup
  17. fi
  18.  
  19. echo -n "Hit enter to begin."
  20. read
  21.  
  22.  
  23. scp -r root@$phoneip:/Applications/ ~/Desktop/iphoneBackup
  24. expect "password:"
  25. send $rootpass
Add Comment
Please, Sign In to add comment