Guest User

Untitled

a guest
Jul 5th, 2016
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.67 KB | None | 0 0
  1. #Region Project Attributes
  2. #ApplicationLabel: B4A Example
  3. #VersionCode: 1
  4. #VersionName:
  5. 'SupportedOrientations possible values: unspecified, landscape or portrait.
  6. #SupportedOrientations: unspecified
  7. #CanInstallToExternalStorage: False
  8. #End Region
  9.  
  10. #Region Activity Attributes
  11. #FullScreen: False
  12. #IncludeTitle: True
  13. #End Region
  14. Sub Process_Globals
  15. 'These global variables will be declared once when the application starts.
  16. 'These variables can be accessed from all modules.
  17.  
  18. End Sub
  19.  
  20. Sub Globals
  21. 'These global variables will be redeclared each time the activity is created.
  22. 'These variables can only be accessed from this module.
  23. Dim radiobutton1 As RadioButton
  24. Dim radiobutton2 As RadioButton
  25. Dim radiobutton3 As RadioButton
  26. Dim radiobutton4 As RadioButton
  27. Dim radiobutton5 As RadioButton
  28. Dim radiobutton6 As RadioButton
  29. Dim radiobutton7 As RadioButton
  30. Dim radiobutton8 As RadioButton
  31.  
  32.  
  33.  
  34. End Sub
  35.  
  36. Sub Activity_Create(FirstTime As Boolean)
  37. If File.exists ("/dev", "/hidg0") = False Then
  38. Msgbox("it seems that your device does not have a custom kernel with HID support.", "")
  39. Activity.finish
  40. Else
  41. Activity.LoadLayout("menu")
  42. End If
  43. 'Do not forget to load the layout file created with the visual designer. For example:
  44. Activity.LoadLayout("menu")
  45.  
  46. End Sub
  47.  
  48. Sub Button1_Click
  49.  
  50. If radiobutton1.Checked Then
  51. Dim Command, Runner As String
  52. Dim StdOut, StdErr As StringBuilder
  53. Dim Result As Int
  54. Dim Ph As Phone
  55. StdOut.Initialize
  56. StdErr.Initialize
  57. Runner = File.Combine(File.DirInternalCache, "runner")
  58. Command = File.Combine(File.DirInternalCache, "command")
  59. File.WriteString(File.DirInternalCache, "runner", "su < " & Command)
  60. File.WriteString(File.DirInternalCache, "command", "cd /data/local/tmp/ && bash droidducky.sh mimikhatz.dd " & CRLF & "exit") 'Any commands via crlf, and exit at end
  61. Else
  62. End If
  63. If radiobutton2.Checked Then
  64. Dim Command, Runner As String
  65. Dim StdOut, StdErr As StringBuilder
  66. StdOut.Initialize
  67. StdErr.Initialize
  68. Runner = File.Combine(File.DirInternalCache, "runner")
  69. Command = File.Combine(File.DirInternalCache, "command")
  70. File.WriteString(File.DirInternalCache, "runner", "su < " & Command)
  71. File.WriteString(File.DirInternalCache, "command", "cd /data/local/tmp/" & CRLF & "bash droidducky.sh mimikhatz.dd" & CRLF & "exit") 'Any commands via crlf, and exit at end
  72. Else
  73. End If
  74. If radiobutton3.Checked Then
  75. Dim Command, Runner As String
  76. Dim StdOut, StdErr As StringBuilder
  77. StdOut.Initialize
  78. StdErr.Initialize
  79. Runner = File.Combine(File.DirInternalCache, "runner")
  80. Command = File.Combine(File.DirInternalCache, "command")
  81. File.WriteString(File.DirInternalCache, "runner", "su < " & Command)
  82. File.WriteString(File.DirInternalCache, "command", "cd /data/local/tmp/" & CRLF & "bash droidducky.sh mimikhatz.dd" & CRLF & "exit") 'Any commands via crlf, and exit at end
  83.  
  84. Else
  85. End If
  86. If radiobutton4.Checked Then
  87. Dim Command, Runner As String
  88. Dim StdOut, StdErr As StringBuilder
  89. StdOut.Initialize
  90. StdErr.Initialize
  91. Runner = File.Combine(File.DirInternalCache, "runner")
  92. Command = File.Combine(File.DirInternalCache, "command")
  93. File.WriteString(File.DirInternalCache, "runner", "su < " & Command)
  94. File.WriteString(File.DirInternalCache, "command", "cd /data/local/tmp/" & CRLF & "bash droidducky.sh mimikhatz.dd" & CRLF & "exit") 'Any commands via crlf, and exit at end
  95. Else
  96. End If
  97. If radiobutton5.Checked Then
  98. Dim Command, Runner As String
  99. Dim StdOut, StdErr As StringBuilder
  100. StdOut.Initialize
  101. StdErr.Initialize
  102. Runner = File.Combine(File.DirInternalCache, "runner")
  103. Command = File.Combine(File.DirInternalCache, "command")
  104. File.WriteString(File.DirInternalCache, "runner", "su < " & Command)
  105. File.WriteString(File.DirInternalCache, "command", "cd /data/local/tmp/" & CRLF & "bash droidducky.sh mimikhatz.dd" & CRLF & "exit") 'Any commands via crlf, and exit at end
  106. Else
  107. End If
  108. If radiobutton6.Checked Then
  109. Dim Command, Runner As String
  110. Dim StdOut, StdErr As StringBuilder
  111. StdOut.Initialize
  112. StdErr.Initialize
  113. Runner = File.Combine(File.DirInternalCache, "runner")
  114. Command = File.Combine(File.DirInternalCache, "command")
  115. File.WriteString(File.DirInternalCache, "runner", "su < " & Command)
  116. File.WriteString(File.DirInternalCache, "command", "cd /data/local/tmp/" & CRLF & "bash droidducky.sh mimikhatz.dd" & CRLF & "exit") 'Any commands via crlf, and exit at end
  117. Else
  118. End If
  119. If radiobutton7.Checked Then
  120. Dim Command, Runner As String
  121. Dim StdOut, StdErr As StringBuilder
  122. StdOut.Initialize
  123. StdErr.Initialize
  124. Runner = File.Combine(File.DirInternalCache, "runner")
  125. Command = File.Combine(File.DirInternalCache, "command")
  126. File.WriteString(File.DirInternalCache, "runner", "su < " & Command)
  127. File.WriteString(File.DirInternalCache, "command", "cd /data/local/tmp/" & CRLF & "bash droidducky.sh mimikhatz.dd" & CRLF & "exit") 'Any commands via crlf, and exit at end
  128. Else
  129. End If
  130. If radiobutton8.Checked Then
  131. Dim Command, Runner As String
  132. Dim StdOut, StdErr As StringBuilder
  133. StdOut.Initialize
  134. StdErr.Initialize
  135. Runner = File.Combine(File.DirInternalCache, "runner")
  136. Command = File.Combine(File.DirInternalCache, "command")
  137. File.WriteString(File.DirInternalCache, "runner", "su < " & Command)
  138. File.WriteString(File.DirInternalCache, "command", "cd /data/local/tmp/" & CRLF & "bash droidducky.sh mimikhatz.dd" & CRLF & "exit") 'Any commands via crlf, and exit at end
  139. Else
  140. End If
  141.  
  142. End Sub
  143.  
  144.  
  145.  
  146.  
  147. Sub Activity_Resume
  148.  
  149. End Sub
  150. Sub Activity_Pause (UserClosed As Boolean)
  151.  
  152. End Sub
Advertisement
Add Comment
Please, Sign In to add comment