Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

rm AndroidAgent moved to library in AgentTemplates

  • Loading branch information...
commit 5f79d77b145a97f68348f1bf0517249046bf9baa 1 parent 40334d0
@georgiaw authored
Showing with 0 additions and 12,360 deletions.
  1. BIN  .DS_Store
  2. +0 −8 AgentTemplates/AndroidAgent/.classpath
  3. +0 −33 AgentTemplates/AndroidAgent/.project
  4. +0 −5 AgentTemplates/AndroidAgent/.settings/org.eclipse.jdt.core.prefs
  5. +0 −71 AgentTemplates/AndroidAgent/AndroidManifest.xml
  6. BIN  AgentTemplates/AndroidAgent/assets/rageagainstthecage
  7. +0 −71 AgentTemplates/AndroidAgent/bin/AndroidManifest.xml
  8. +0 −2  AgentTemplates/AndroidAgent/bin/AndroidManifest.xml.d
  9. +0 −14 AgentTemplates/AndroidAgent/bin/R.txt
  10. +0 −10 AgentTemplates/AndroidAgent/bin/build.prop
  11. BIN  AgentTemplates/AndroidAgent/bin/classes.jar
  12. BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/AlarmReceiver.class
  13. BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/AndroidAgent.class
  14. BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/AndroidAgentActivity.class
  15. BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/Base64$1.class
  16. BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/Base64$InputStream.class
  17. BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/Base64$OutputStream.class
  18. BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/Base64.class
  19. BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/BuildConfig.class
  20. BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/Checkin.class
  21. BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/CommandHandler.class
  22. BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/ContactsGet.class
  23. BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/GetGPS.class
  24. BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/InternetPoller.class
  25. BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/Phase1$1.class
  26. BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/Phase1.class
  27. BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/Phase2$1.class
  28. BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/Phase2.class
  29. BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/PictureService$1.class
  30. BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/PictureService.class
  31. BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/R$attr.class
  32. BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/R$drawable.class
  33. BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/R$id.class
  34. BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/R$layout.class
  35. BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/R$raw.class
  36. BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/R$string.class
  37. BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/R.class
  38. BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/SMSGet.class
  39. BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/SMSReceiver.class
  40. BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/SMSService.class
  41. BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/ServiceAutoStarterr.class
  42. BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/WebUploadService.class
  43. BIN  AgentTemplates/AndroidAgent/bin/classes/jackpal/androidterm/Exec.class
  44. +0 −3  AgentTemplates/AndroidAgent/bin/jarlist.cache
  45. +0 −48 AgentTemplates/AndroidAgent/bin/proguard.txt
  46. BIN  AgentTemplates/AndroidAgent/bin/res/drawable-hdpi/ic_launcher.png
  47. BIN  AgentTemplates/AndroidAgent/bin/res/drawable-ldpi/ic_launcher.png
  48. BIN  AgentTemplates/AndroidAgent/bin/res/drawable-mdpi/ic_launcher.png
  49. +0 −92 AgentTemplates/AndroidAgent/build.xml
  50. +0 −10 AgentTemplates/AndroidAgent/gen/R.java.d
  51. +0 −6 AgentTemplates/AndroidAgent/gen/com/bulbsecurity/framework/BuildConfig.java
  52. +0 −37 AgentTemplates/AndroidAgent/gen/com/bulbsecurity/framework/R.java
  53. +0 −17 AgentTemplates/AndroidAgent/jni/.svn/all-wcprops
  54. +0 −96 AgentTemplates/AndroidAgent/jni/.svn/entries
  55. +0 −32 AgentTemplates/AndroidAgent/jni/.svn/text-base/Android.mk.svn-base
  56. +0 −350 AgentTemplates/AndroidAgent/jni/.svn/text-base/termExec.cpp.svn-base
  57. +0 −12 AgentTemplates/AndroidAgent/jni/Android.mk
  58. +0 −350 AgentTemplates/AndroidAgent/jni/termExec.cpp
  59. BIN  AgentTemplates/AndroidAgent/libs/armeabi/libandroidterm.so
  60. +0 −3  AgentTemplates/AndroidAgent/lint.xml
  61. +0 −10 AgentTemplates/AndroidAgent/local.properties
  62. BIN  AgentTemplates/AndroidAgent/obj/local/armeabi/libandroidterm.so
  63. +0 −1  AgentTemplates/AndroidAgent/obj/local/armeabi/libstdc++.a
  64. BIN  AgentTemplates/AndroidAgent/obj/local/armeabi/objs/androidterm/termExec.o
  65. +0 −199 AgentTemplates/AndroidAgent/obj/local/armeabi/objs/androidterm/termExec.o.d
  66. +0 −20 AgentTemplates/AndroidAgent/proguard-project.txt
  67. +0 −40 AgentTemplates/AndroidAgent/proguard.cfg
  68. +0 −13 AgentTemplates/AndroidAgent/project.properties
  69. BIN  AgentTemplates/AndroidAgent/res/drawable-hdpi/ic_launcher.png
  70. BIN  AgentTemplates/AndroidAgent/res/drawable-ldpi/ic_launcher.png
  71. BIN  AgentTemplates/AndroidAgent/res/drawable-mdpi/ic_launcher.png
  72. +0 −15 AgentTemplates/AndroidAgent/res/layout/camera_surface.xml
  73. +0 −12 AgentTemplates/AndroidAgent/res/layout/main.xml
  74. +0 −2  AgentTemplates/AndroidAgent/res/raw/config
  75. BIN  AgentTemplates/AndroidAgent/res/raw/rageagainstthecage
  76. +0 −13 AgentTemplates/AndroidAgent/res/values/strings.xml
  77. +0 −24 AgentTemplates/AndroidAgent/src/com/bulbsecurity/framework/AlarmReceiver.java
  78. +0 −35 AgentTemplates/AndroidAgent/src/com/bulbsecurity/framework/AndroidAgent.java
  79. +0 −21 AgentTemplates/AndroidAgent/src/com/bulbsecurity/framework/AndroidAgentActivity.java
  80. +0 −2,065 AgentTemplates/AndroidAgent/src/com/bulbsecurity/framework/Base64.java
  81. +0 −39 AgentTemplates/AndroidAgent/src/com/bulbsecurity/framework/Checkin.java
  82. +0 −149 AgentTemplates/AndroidAgent/src/com/bulbsecurity/framework/CommandHandler.java
  83. +0 −80 AgentTemplates/AndroidAgent/src/com/bulbsecurity/framework/ContactsGet.java
  84. +0 −95 AgentTemplates/AndroidAgent/src/com/bulbsecurity/framework/GetGPS.java
  85. +0 −115 AgentTemplates/AndroidAgent/src/com/bulbsecurity/framework/InternetPoller.java
  86. +0 −117 AgentTemplates/AndroidAgent/src/com/bulbsecurity/framework/Phase1.java
  87. +0 −89 AgentTemplates/AndroidAgent/src/com/bulbsecurity/framework/Phase2.java
  88. +0 −114 AgentTemplates/AndroidAgent/src/com/bulbsecurity/framework/PictureService.java
  89. +0 −83 AgentTemplates/AndroidAgent/src/com/bulbsecurity/framework/SMSGet.java
  90. +0 −54 AgentTemplates/AndroidAgent/src/com/bulbsecurity/framework/SMSReceiver.java
  91. +0 −54 AgentTemplates/AndroidAgent/src/com/bulbsecurity/framework/SMSService.java
  92. +0 −28 AgentTemplates/AndroidAgent/src/com/bulbsecurity/framework/ServiceAutoStarterr.java
  93. +0 −103 AgentTemplates/AndroidAgent/src/com/bulbsecurity/framework/WebUploadService.java
  94. +0 −11 AgentTemplates/AndroidAgent/src/jackpal/androidterm/.svn/all-wcprops
  95. +0 −62 AgentTemplates/AndroidAgent/src/jackpal/androidterm/.svn/entries
  96. +0 −75 AgentTemplates/AndroidAgent/src/jackpal/androidterm/.svn/text-base/Exec.java.svn-base
  97. +0 −75 AgentTemplates/AndroidAgent/src/jackpal/androidterm/Exec.java
  98. +0 −8 AgentTemplates/MapsDemo/.classpath
  99. +0 −33 AgentTemplates/MapsDemo/.project
  100. +0 −108 AgentTemplates/MapsDemo/AndroidManifest.xml
  101. +0 −108 AgentTemplates/MapsDemo/bin/AndroidManifest.xml
  102. +0 −2  AgentTemplates/MapsDemo/bin/AndroidManifest.xml.d
  103. BIN  AgentTemplates/MapsDemo/bin/MapsDemo-debug-unaligned.apk
  104. +0 −6 AgentTemplates/MapsDemo/bin/MapsDemo-debug-unaligned.apk.d
  105. BIN  AgentTemplates/MapsDemo/bin/MapsDemo-debug.apk
  106. BIN  AgentTemplates/MapsDemo/bin/MapsDemo.ap_
  107. +0 −18 AgentTemplates/MapsDemo/bin/MapsDemo.ap_.d
  108. +0 −18 AgentTemplates/MapsDemo/bin/R.txt
  109. +0 −10 AgentTemplates/MapsDemo/bin/build.prop
  110. BIN  AgentTemplates/MapsDemo/bin/classes.dex
  111. +0 −24 AgentTemplates/MapsDemo/bin/classes.dex.d
  112. BIN  AgentTemplates/MapsDemo/bin/classes/com/bulbsecurity/framework/R$drawable.class
  113. BIN  AgentTemplates/MapsDemo/bin/classes/com/bulbsecurity/framework/R$id.class
  114. BIN  AgentTemplates/MapsDemo/bin/classes/com/bulbsecurity/framework/R$layout.class
  115. BIN  AgentTemplates/MapsDemo/bin/classes/com/bulbsecurity/framework/R$raw.class
  116. BIN  AgentTemplates/MapsDemo/bin/classes/com/bulbsecurity/framework/R$string.class
  117. BIN  AgentTemplates/MapsDemo/bin/classes/com/bulbsecurity/framework/R.class
  118. BIN  AgentTemplates/MapsDemo/bin/classes/com/example/android/apis/MapsDemo$1.class
  119. BIN  AgentTemplates/MapsDemo/bin/classes/com/example/android/apis/MapsDemo.class
  120. BIN  AgentTemplates/MapsDemo/bin/classes/com/example/android/apis/view/MapViewCompassDemo$1.class
  121. BIN  AgentTemplates/MapsDemo/bin/classes/com/example/android/apis/view/MapViewCompassDemo$RotateView.class
  122. BIN  AgentTemplates/MapsDemo/bin/classes/com/example/android/apis/view/MapViewCompassDemo$SmoothCanvas.class
  123. BIN  AgentTemplates/MapsDemo/bin/classes/com/example/android/apis/view/MapViewCompassDemo.class
  124. BIN  AgentTemplates/MapsDemo/bin/classes/com/example/android/apis/view/MapViewDemo.class
  125. BIN  AgentTemplates/MapsDemo/bin/classes/com/example/android/google/apis/BuildConfig.class
  126. BIN  AgentTemplates/MapsDemo/bin/classes/com/example/android/google/apis/R$attr.class
  127. BIN  AgentTemplates/MapsDemo/bin/classes/com/example/android/google/apis/R$drawable.class
  128. BIN  AgentTemplates/MapsDemo/bin/classes/com/example/android/google/apis/R$id.class
  129. BIN  AgentTemplates/MapsDemo/bin/classes/com/example/android/google/apis/R$layout.class
  130. BIN  AgentTemplates/MapsDemo/bin/classes/com/example/android/google/apis/R$raw.class
  131. BIN  AgentTemplates/MapsDemo/bin/classes/com/example/android/google/apis/R$string.class
  132. BIN  AgentTemplates/MapsDemo/bin/classes/com/example/android/google/apis/R.class
  133. BIN  AgentTemplates/MapsDemo/bin/dexedLibs/annotations-077670cddd0aa36fcf35df43ca15a914.jar
  134. BIN  AgentTemplates/MapsDemo/bin/dexedLibs/classes-7ca929983ab4799e28f1ba3f0656cdfe.jar
  135. +0 −3  AgentTemplates/MapsDemo/bin/jarlist.cache
  136. +0 −60 AgentTemplates/MapsDemo/bin/proguard.txt
  137. BIN  AgentTemplates/MapsDemo/bin/res/drawable/app_sample_code.png
  138. +0 −92 AgentTemplates/MapsDemo/build.xml
  139. +0 −22 AgentTemplates/MapsDemo/default.properties
  140. +0 −17 AgentTemplates/MapsDemo/gen/R.java.d
  141. +0 −34 AgentTemplates/MapsDemo/gen/com/bulbsecurity/framework/R.java
  142. +0 −6 AgentTemplates/MapsDemo/gen/com/example/android/google/apis/BuildConfig.java
  143. +0 −41 AgentTemplates/MapsDemo/gen/com/example/android/google/apis/R.java
  144. +0 −17 AgentTemplates/MapsDemo/jni/.svn/all-wcprops
  145. +0 −96 AgentTemplates/MapsDemo/jni/.svn/entries
  146. +0 −32 AgentTemplates/MapsDemo/jni/.svn/text-base/Android.mk.svn-base
  147. +0 −350 AgentTemplates/MapsDemo/jni/.svn/text-base/termExec.cpp.svn-base
  148. +0 −12 AgentTemplates/MapsDemo/jni/Android.mk
  149. +0 −350 AgentTemplates/MapsDemo/jni/termExec.cpp
  150. +0 −3  AgentTemplates/MapsDemo/lint.xml
  151. +0 −10 AgentTemplates/MapsDemo/local.properties
  152. +0 −20 AgentTemplates/MapsDemo/proguard-project.txt
  153. +0 −16 AgentTemplates/MapsDemo/project.properties
  154. BIN  AgentTemplates/MapsDemo/res/drawable/app_sample_code.png
  155. +0 −31 AgentTemplates/MapsDemo/res/layout/mapview.xml
  156. BIN  AgentTemplates/MapsDemo/res/raw/rageagainstthecage
  157. +0 −25 AgentTemplates/MapsDemo/res/values/strings.xml
  158. +0 −112 AgentTemplates/MapsDemo/src/com/example/android/apis/MapsDemo.java
  159. +0 −552 AgentTemplates/MapsDemo/src/com/example/android/apis/view/MapViewCompassDemo.java
  160. +0 −55 AgentTemplates/MapsDemo/src/com/example/android/apis/view/MapViewDemo.java
  161. BIN  AndroidAgent/.DS_Store
  162. +0 −8 AndroidAgent/.classpath
  163. +0 −33 AndroidAgent/.project
  164. +0 −5 AndroidAgent/.settings/org.eclipse.jdt.core.prefs
  165. +0 −71 AndroidAgent/AndroidManifest.xml
  166. BIN  AndroidAgent/assets/.DS_Store
  167. BIN  AndroidAgent/assets/rageagainstthecage
  168. BIN  AndroidAgent/bin/AndroidAgent.apk
  169. +0 −71 AndroidAgent/bin/AndroidManifest.xml
  170. BIN  AndroidAgent/bin/classes.dex
  171. BIN  AndroidAgent/bin/classes/.DS_Store
  172. BIN  AndroidAgent/bin/classes/com/.DS_Store
  173. BIN  AndroidAgent/bin/classes/com/bulbsecurity/.DS_Store
  174. BIN  AndroidAgent/bin/classes/com/bulbsecurity/framework/.DS_Store
  175. BIN  AndroidAgent/bin/classes/com/bulbsecurity/framework/AlarmReceiver.class
  176. BIN  AndroidAgent/bin/classes/com/bulbsecurity/framework/AndroidAgent.class
  177. BIN  AndroidAgent/bin/classes/com/bulbsecurity/framework/AndroidAgentActivity.class
  178. BIN  AndroidAgent/bin/classes/com/bulbsecurity/framework/Base64$1.class
  179. BIN  AndroidAgent/bin/classes/com/bulbsecurity/framework/Base64$InputStream.class
  180. BIN  AndroidAgent/bin/classes/com/bulbsecurity/framework/Base64$OutputStream.class
  181. BIN  AndroidAgent/bin/classes/com/bulbsecurity/framework/Base64.class
  182. BIN  AndroidAgent/bin/classes/com/bulbsecurity/framework/BuildConfig.class
  183. BIN  AndroidAgent/bin/classes/com/bulbsecurity/framework/Checkin.class
  184. BIN  AndroidAgent/bin/classes/com/bulbsecurity/framework/CommandHandler.class
  185. BIN  AndroidAgent/bin/classes/com/bulbsecurity/framework/ContactsGet.class
  186. BIN  AndroidAgent/bin/classes/com/bulbsecurity/framework/GetGPS.class
  187. BIN  AndroidAgent/bin/classes/com/bulbsecurity/framework/InternetPoll.class
  188. BIN  AndroidAgent/bin/classes/com/bulbsecurity/framework/Phase1$1.class
  189. BIN  AndroidAgent/bin/classes/com/bulbsecurity/framework/Phase1.class
  190. BIN  AndroidAgent/bin/classes/com/bulbsecurity/framework/Phase2$1.class
  191. BIN  AndroidAgent/bin/classes/com/bulbsecurity/framework/Phase2.class
  192. BIN  AndroidAgent/bin/classes/com/bulbsecurity/framework/PictureService$1.class
  193. BIN  AndroidAgent/bin/classes/com/bulbsecurity/framework/PictureService.class
  194. BIN  AndroidAgent/bin/classes/com/bulbsecurity/framework/R$attr.class
  195. BIN  AndroidAgent/bin/classes/com/bulbsecurity/framework/R$drawable.class
  196. BIN  AndroidAgent/bin/classes/com/bulbsecurity/framework/R$id.class
  197. BIN  AndroidAgent/bin/classes/com/bulbsecurity/framework/R$layout.class
  198. BIN  AndroidAgent/bin/classes/com/bulbsecurity/framework/R$raw.class
  199. BIN  AndroidAgent/bin/classes/com/bulbsecurity/framework/R$string.class
  200. BIN  AndroidAgent/bin/classes/com/bulbsecurity/framework/R.class
  201. BIN  AndroidAgent/bin/classes/com/bulbsecurity/framework/SMSGet.class
  202. BIN  AndroidAgent/bin/classes/com/bulbsecurity/framework/SMSReceiver.class
  203. BIN  AndroidAgent/bin/classes/com/bulbsecurity/framework/SMSService.class
  204. BIN  AndroidAgent/bin/classes/com/bulbsecurity/framework/ServiceAutoStarter.class
  205. BIN  AndroidAgent/bin/classes/com/bulbsecurity/framework/WebUploadService.class
  206. +0 −11 AndroidAgent/bin/classes/jackpal/androidterm/.svn/all-wcprops
  207. +0 −62 AndroidAgent/bin/classes/jackpal/androidterm/.svn/entries
  208. +0 −75 AndroidAgent/bin/classes/jackpal/androidterm/.svn/text-base/Exec.java.svn-base
  209. BIN  AndroidAgent/bin/classes/jackpal/androidterm/Exec.class
  210. +0 −3  AndroidAgent/bin/jarlist.cache
  211. BIN  AndroidAgent/bin/res/drawable-hdpi/ic_launcher.png
  212. BIN  AndroidAgent/bin/res/drawable-ldpi/ic_launcher.png
  213. BIN  AndroidAgent/bin/res/drawable-mdpi/ic_launcher.png
  214. BIN  AndroidAgent/bin/resources.ap_
  215. +0 −6 AndroidAgent/gen/com/bulbsecurity/framework/BuildConfig.java
  216. +0 −32 AndroidAgent/gen/com/bulbsecurity/framework/R.java
  217. +0 −17 AndroidAgent/jni/.svn/all-wcprops
  218. +0 −96 AndroidAgent/jni/.svn/entries
  219. +0 −32 AndroidAgent/jni/.svn/text-base/Android.mk.svn-base
  220. +0 −350 AndroidAgent/jni/.svn/text-base/termExec.cpp.svn-base
  221. +0 −12 AndroidAgent/jni/Android.mk
  222. +0 −350 AndroidAgent/jni/termExec.cpp
  223. BIN  AndroidAgent/libs/armeabi/libandroidterm.so
  224. BIN  AndroidAgent/obj/local/armeabi/libandroidterm.so
  225. +0 −1  AndroidAgent/obj/local/armeabi/libstdc++.a
  226. BIN  AndroidAgent/obj/local/armeabi/objs/androidterm/termExec.o
  227. +0 −199 AndroidAgent/obj/local/armeabi/objs/androidterm/termExec.o.d
  228. +0 −40 AndroidAgent/proguard.cfg
  229. +0 −12 AndroidAgent/project.properties
  230. BIN  AndroidAgent/res/drawable-hdpi/ic_launcher.png
  231. BIN  AndroidAgent/res/drawable-ldpi/ic_launcher.png
  232. BIN  AndroidAgent/res/drawable-mdpi/ic_launcher.png
  233. +0 −15 AndroidAgent/res/layout/camera_surface.xml
  234. +0 −12 AndroidAgent/res/layout/main.xml
  235. +0 −2  AndroidAgent/res/raw/config
  236. BIN  AndroidAgent/res/raw/rageagainstthecage
  237. +0 −8 AndroidAgent/res/values/strings.xml
  238. BIN  AndroidAgent/src/.DS_Store
  239. BIN  AndroidAgent/src/com/.DS_Store
  240. BIN  AndroidAgent/src/com/bulbsecurity/.DS_Store
  241. BIN  AndroidAgent/src/com/bulbsecurity/framework/.DS_Store
  242. +0 −24 AndroidAgent/src/com/bulbsecurity/framework/AlarmReceiver.java
  243. +0 −35 AndroidAgent/src/com/bulbsecurity/framework/AndroidAgent.java
  244. +0 −20 AndroidAgent/src/com/bulbsecurity/framework/AndroidAgentActivity.java
  245. +0 −2,065 AndroidAgent/src/com/bulbsecurity/framework/Base64.java
  246. +0 −37 AndroidAgent/src/com/bulbsecurity/framework/Checkin.java
  247. +0 −149 AndroidAgent/src/com/bulbsecurity/framework/CommandHandler.java
  248. +0 −78 AndroidAgent/src/com/bulbsecurity/framework/ContactsGet.java
  249. +0 −93 AndroidAgent/src/com/bulbsecurity/framework/GetGPS.java
  250. +0 −106 AndroidAgent/src/com/bulbsecurity/framework/InternetPoll.java
  251. +0 −117 AndroidAgent/src/com/bulbsecurity/framework/Phase1.java
  252. +0 −89 AndroidAgent/src/com/bulbsecurity/framework/Phase2.java
  253. +0 −114 AndroidAgent/src/com/bulbsecurity/framework/PictureService.java
  254. +0 −81 AndroidAgent/src/com/bulbsecurity/framework/SMSGet.java
  255. +0 −52 AndroidAgent/src/com/bulbsecurity/framework/SMSReceiver.java
  256. +0 −54 AndroidAgent/src/com/bulbsecurity/framework/SMSService.java
  257. +0 −27 AndroidAgent/src/com/bulbsecurity/framework/ServiceAutoStarter.java
  258. +0 −99 AndroidAgent/src/com/bulbsecurity/framework/WebUploadService.java
  259. +0 −11 AndroidAgent/src/jackpal/androidterm/.svn/all-wcprops
  260. +0 −62 AndroidAgent/src/jackpal/androidterm/.svn/entries
  261. +0 −75 AndroidAgent/src/jackpal/androidterm/.svn/text-base/Exec.java.svn-base
  262. +0 −75 AndroidAgent/src/jackpal/androidterm/Exec.java
View
BIN  .DS_Store
Binary file not shown
View
8 AgentTemplates/AndroidAgent/.classpath
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="src" path="gen"/>
- <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
- <classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
- <classpathentry kind="output" path="bin/classes"/>
-</classpath>
View
33 AgentTemplates/AndroidAgent/.project
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>AndroidAgent</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>com.android.ide.eclipse.adt.ApkBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>com.android.ide.eclipse.adt.AndroidNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
View
5 AgentTemplates/AndroidAgent/.settings/org.eclipse.jdt.core.prefs
@@ -1,5 +0,0 @@
-#Thu Feb 02 19:50:13 EST 2012
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.source=1.5
View
71 AgentTemplates/AndroidAgent/AndroidManifest.xml
@@ -1,71 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="com.bulbsecurity.framework"
- android:versionCode="1"
- android:versionName="1.0" >
-
- <uses-sdk android:minSdkVersion="4" />
- <uses-permission android:name="android.permission.RECEIVE_SMS"/>
- <uses-permission android:name="android.permission.SEND_SMS"/>
- <uses-permission android:name="android.permission.CAMERA"/>
- <uses-permission android:name="android.permission.READ_CONTACTS"/>
- <uses-permission android:name="android.permission.INTERNET"/>
- <uses-permission android:name="android.permission.READ_SMS"/>
- <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
- <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
- <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
- <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
- <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
-
-
- <application
- android:icon="@drawable/ic_launcher"
- android:label="@string/app_name"
- android:name = ".AndroidAgent">
- <activity
- android:name="AndroidAgentActivity"
- android:label="@string/app_name" >
- <intent-filter>
- <action android:name="android.intent.action.MAIN" />
- <category android:name="android.intent.category.LAUNCHER" />
- </intent-filter>
- </activity>
- <receiver android:name="SMSReceiver">
- <intent-filter android:priority="999"><action android:name="android.provider.Telephony.SMS_RECEIVED" /></intent-filter>
- </receiver>
- <service android:name="SMSService">
-
- </service>
- <receiver android:name="ServiceAutoStarter">
- <intent-filter ><action android:name="android.intent.action.BOOT_COMPLETED"></action></intent-filter>
- </receiver>
- <receiver android:name="AlarmReceiver" android:process=":remote"></receiver>
- <service android:name="InternetPoll">
-
- </service>
- <service android:name="CommandHandler">
-
- </service>
- <service android:name="SMSGet">
-
- </service>
- <service android:name="ContactsGet">
-
- </service>
- <service android:name="WebUploadService">
-
- </service>
- <service android:name="PictureService">
-
- </service>
- <service android:name="GetGPS">
- </service>
- <service android:name="Checkin">
- </service>
- <service android:name="Phase1" android:process=":three">
- </service>
- <service android:name="Phase2" android:process=":two">
- </service>
- </application>
-
-</manifest>
View
BIN  AgentTemplates/AndroidAgent/assets/rageagainstthecage
Binary file not shown
View
71 AgentTemplates/AndroidAgent/bin/AndroidManifest.xml
@@ -1,71 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="com.bulbsecurity.framework"
- android:versionCode="1"
- android:versionName="1.0" >
-
- <uses-sdk android:minSdkVersion="4" />
- <uses-permission android:name="android.permission.RECEIVE_SMS"/>
- <uses-permission android:name="android.permission.SEND_SMS"/>
- <uses-permission android:name="android.permission.CAMERA"/>
- <uses-permission android:name="android.permission.READ_CONTACTS"/>
- <uses-permission android:name="android.permission.INTERNET"/>
- <uses-permission android:name="android.permission.READ_SMS"/>
- <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
- <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
- <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
- <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
- <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
-
-
- <application
- android:icon="@drawable/ic_launcher"
- android:label="@string/app_name"
- android:name = ".AndroidAgent">
- <activity
- android:name="AndroidAgentActivity"
- android:label="@string/app_name" >
- <intent-filter>
- <action android:name="android.intent.action.MAIN" />
- <category android:name="android.intent.category.LAUNCHER" />
- </intent-filter>
- </activity>
- <receiver android:name="SMSReceiver">
- <intent-filter android:priority="999"><action android:name="android.provider.Telephony.SMS_RECEIVED" /></intent-filter>
- </receiver>
- <service android:name="SMSService">
-
- </service>
- <receiver android:name="ServiceAutoStarter">
- <intent-filter ><action android:name="android.intent.action.BOOT_COMPLETED"></action></intent-filter>
- </receiver>
- <receiver android:name="AlarmReceiver" android:process=":remote"></receiver>
- <service android:name="InternetPoll">
-
- </service>
- <service android:name="CommandHandler">
-
- </service>
- <service android:name="SMSGet">
-
- </service>
- <service android:name="ContactsGet">
-
- </service>
- <service android:name="WebUploadService">
-
- </service>
- <service android:name="PictureService">
-
- </service>
- <service android:name="GetGPS">
- </service>
- <service android:name="Checkin">
- </service>
- <service android:name="Phase1" android:process=":three">
- </service>
- <service android:name="Phase2" android:process=":two">
- </service>
- </application>
-
-</manifest>
View
2  AgentTemplates/AndroidAgent/bin/AndroidManifest.xml.d
@@ -1,2 +0,0 @@
-/root/Smartphone-Pentest-Framework/AgentTemplates/AndroidAgent/bin/AndroidManifest.xml : \
-/root/Smartphone-Pentest-Framework/AgentTemplates/AndroidAgent/AndroidManifest.xml \
View
14 AgentTemplates/AndroidAgent/bin/R.txt
@@ -1,14 +0,0 @@
-int drawable ic_launcher 0x7f020000
-int id surface_camera 0x7f060000
-int layout camera_surface 0x7f030000
-int layout main 0x7f030001
-int raw config 0x7f040000
-int raw rageagainstthecage 0x7f040001
-int string app_name 0x7f050001
-int string controlIP 0x7f050005
-int string controlnumber 0x7f050004
-int string controlpath 0x7f050007
-int string hello 0x7f050000
-int string key 0x7f050003
-int string picture 0x7f050002
-int string urii 0x7f050006
View
10 AgentTemplates/AndroidAgent/bin/build.prop
@@ -1,10 +0,0 @@
-#Last build type
-#Tue, 11 Dec 2012 15:44:25 -0500
-
-build.last.target=debug
-
-build.last.is.instrumented=false
-
-build.last.is.packaging.debug=true
-
-build.last.is.signing.debug=true
View
BIN  AgentTemplates/AndroidAgent/bin/classes.jar
Binary file not shown
View
BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/AlarmReceiver.class
Binary file not shown
View
BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/AndroidAgent.class
Binary file not shown
View
BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/AndroidAgentActivity.class
Binary file not shown
View
BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/Base64$1.class
Binary file not shown
View
BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/Base64$InputStream.class
Binary file not shown
View
BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/Base64$OutputStream.class
Binary file not shown
View
BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/Base64.class
Binary file not shown
View
BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/BuildConfig.class
Binary file not shown
View
BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/Checkin.class
Binary file not shown
View
BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/CommandHandler.class
Binary file not shown
View
BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/ContactsGet.class
Binary file not shown
View
BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/GetGPS.class
Binary file not shown
View
BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/InternetPoller.class
Binary file not shown
View
BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/Phase1$1.class
Binary file not shown
View
BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/Phase1.class
Binary file not shown
View
BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/Phase2$1.class
Binary file not shown
View
BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/Phase2.class
Binary file not shown
View
BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/PictureService$1.class
Binary file not shown
View
BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/PictureService.class
Binary file not shown
View
BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/R$attr.class
Binary file not shown
View
BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/R$drawable.class
Binary file not shown
View
BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/R$id.class
Binary file not shown
View
BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/R$layout.class
Binary file not shown
View
BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/R$raw.class
Binary file not shown
View
BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/R$string.class
Binary file not shown
View
BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/R.class
Binary file not shown
View
BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/SMSGet.class
Binary file not shown
View
BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/SMSReceiver.class
Binary file not shown
View
BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/SMSService.class
Binary file not shown
View
BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/ServiceAutoStarterr.class
Binary file not shown
View
BIN  AgentTemplates/AndroidAgent/bin/classes/com/bulbsecurity/framework/WebUploadService.class
Binary file not shown
View
BIN  AgentTemplates/AndroidAgent/bin/classes/jackpal/androidterm/Exec.class
Binary file not shown
View
3  AgentTemplates/AndroidAgent/bin/jarlist.cache
@@ -1,3 +0,0 @@
-# cache for current jar dependecy. DO NOT EDIT.
-# format is <lastModified> <length> <SHA-1> <path>
-# Encoding is UTF-8
View
48 AgentTemplates/AndroidAgent/bin/proguard.txt
@@ -1,48 +0,0 @@
-# view AndroidManifest.xml #generated:42
--keep class com.bulbsecurity.framework.AlarmReceiver { <init>(...); }
-
-# view AndroidManifest.xml #generated:21
--keep class com.bulbsecurity.framework.AndroidAgent { <init>(...); }
-
-# view AndroidManifest.xml #generated:25
--keep class com.bulbsecurity.framework.AndroidAgentActivity { <init>(...); }
-
-# view AndroidManifest.xml #generated:63
--keep class com.bulbsecurity.framework.Checkin { <init>(...); }
-
-# view AndroidManifest.xml #generated:46
--keep class com.bulbsecurity.framework.CommandHandler { <init>(...); }
-
-# view AndroidManifest.xml #generated:52
--keep class com.bulbsecurity.framework.ContactsGet { <init>(...); }
-
-# view AndroidManifest.xml #generated:61
--keep class com.bulbsecurity.framework.GetGPS { <init>(...); }
-
-# view AndroidManifest.xml #generated:43
--keep class com.bulbsecurity.framework.InternetPoll { <init>(...); }
-
-# view AndroidManifest.xml #generated:65
--keep class com.bulbsecurity.framework.Phase1 { <init>(...); }
-
-# view AndroidManifest.xml #generated:67
--keep class com.bulbsecurity.framework.Phase2 { <init>(...); }
-
-# view AndroidManifest.xml #generated:58
--keep class com.bulbsecurity.framework.PictureService { <init>(...); }
-
-# view AndroidManifest.xml #generated:49
--keep class com.bulbsecurity.framework.SMSGet { <init>(...); }
-
-# view AndroidManifest.xml #generated:33
--keep class com.bulbsecurity.framework.SMSReceiver { <init>(...); }
-
-# view AndroidManifest.xml #generated:36
--keep class com.bulbsecurity.framework.SMSService { <init>(...); }
-
-# view AndroidManifest.xml #generated:39
--keep class com.bulbsecurity.framework.ServiceAutoStarter { <init>(...); }
-
-# view AndroidManifest.xml #generated:55
--keep class com.bulbsecurity.framework.WebUploadService { <init>(...); }
-
View
BIN  AgentTemplates/AndroidAgent/bin/res/drawable-hdpi/ic_launcher.png
Deleted file not rendered
View
BIN  AgentTemplates/AndroidAgent/bin/res/drawable-ldpi/ic_launcher.png
Deleted file not rendered
View
BIN  AgentTemplates/AndroidAgent/bin/res/drawable-mdpi/ic_launcher.png
Deleted file not rendered
View
92 AgentTemplates/AndroidAgent/build.xml
@@ -1,92 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project name="AndroidAgentActivity" default="help">
-
- <!-- The local.properties file is created and updated by the 'android' tool.
- It contains the path to the SDK. It should *NOT* be checked into
- Version Control Systems. -->
- <property file="local.properties" />
-
- <!-- The ant.properties file can be created by you. It is only edited by the
- 'android' tool to add properties to it.
- This is the place to change some Ant specific build properties.
- Here are some properties you may want to change/update:
-
- source.dir
- The name of the source directory. Default is 'src'.
- out.dir
- The name of the output directory. Default is 'bin'.
-
- For other overridable properties, look at the beginning of the rules
- files in the SDK, at tools/ant/build.xml
-
- Properties related to the SDK location or the project target should
- be updated using the 'android' tool with the 'update' action.
-
- This file is an integral part of the build system for your
- application and should be checked into Version Control Systems.
-
- -->
- <property file="ant.properties" />
-
- <!-- if sdk.dir was not set from one of the property file, then
- get it from the ANDROID_HOME env var.
- This must be done before we load project.properties since
- the proguard config can use sdk.dir -->
- <property environment="env" />
- <condition property="sdk.dir" value="${env.ANDROID_HOME}">
- <isset property="env.ANDROID_HOME" />
- </condition>
-
- <!-- The project.properties file is created and updated by the 'android'
- tool, as well as ADT.
-
- This contains project specific properties such as project target, and library
- dependencies. Lower level build properties are stored in ant.properties
- (or in .classpath for Eclipse projects).
-
- This file is an integral part of the build system for your
- application and should be checked into Version Control Systems. -->
- <loadproperties srcFile="project.properties" />
-
- <!-- quick check on sdk.dir -->
- <fail
- message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable."
- unless="sdk.dir"
- />
-
- <!--
- Import per project custom build rules if present at the root of the project.
- This is the place to put custom intermediary targets such as:
- -pre-build
- -pre-compile
- -post-compile (This is typically used for code obfuscation.
- Compiled code location: ${out.classes.absolute.dir}
- If this is not done in place, override ${out.dex.input.absolute.dir})
- -post-package
- -post-build
- -pre-clean
- -->
- <import file="custom_rules.xml" optional="true" />
-
- <!-- Import the actual build file.
-
- To customize existing targets, there are two options:
- - Customize only one target:
- - copy/paste the target into this file, *before* the
- <import> task.
- - customize it to your needs.
- - Customize the whole content of build.xml
- - copy/paste the content of the rules files (minus the top node)
- into this file, replacing the <import> task.
- - customize to your needs.
-
- ***********************
- ****** IMPORTANT ******
- ***********************
- In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
- in order to avoid having your file be overridden by tools such as "android update project"
- -->
- <!-- version-tag: 1 -->
- <import file="${sdk.dir}/tools/ant/build.xml" />
-
-</project>
View
10 AgentTemplates/AndroidAgent/gen/R.java.d
@@ -1,10 +0,0 @@
-/root/Smartphone-Pentest-Framework/AgentTemplates/AndroidAgent/gen/com/bulbsecurity/framework/R.java \
- : /root/Smartphone-Pentest-Framework/AgentTemplates/AndroidAgent/res/drawable-mdpi/ic_launcher.png \
-/root/Smartphone-Pentest-Framework/AgentTemplates/AndroidAgent/res/values/strings.xml \
-/root/Smartphone-Pentest-Framework/AgentTemplates/AndroidAgent/res/raw/rageagainstthecage \
-/root/Smartphone-Pentest-Framework/AgentTemplates/AndroidAgent/res/raw/config \
-/root/Smartphone-Pentest-Framework/AgentTemplates/AndroidAgent/res/layout/camera_surface.xml \
-/root/Smartphone-Pentest-Framework/AgentTemplates/AndroidAgent/res/layout/main.xml \
-/root/Smartphone-Pentest-Framework/AgentTemplates/AndroidAgent/res/drawable-hdpi/ic_launcher.png \
-/root/Smartphone-Pentest-Framework/AgentTemplates/AndroidAgent/res/drawable-ldpi/ic_launcher.png \
-/root/Smartphone-Pentest-Framework/AgentTemplates/AndroidAgent/bin/AndroidManifest.xml \
View
6 AgentTemplates/AndroidAgent/gen/com/bulbsecurity/framework/BuildConfig.java
@@ -1,6 +0,0 @@
-/** Automatically generated file. DO NOT MODIFY */
-package com.bulbsecurity.framework;
-
-public final class BuildConfig {
- public final static boolean DEBUG = true;
-}
View
37 AgentTemplates/AndroidAgent/gen/com/bulbsecurity/framework/R.java
@@ -1,37 +0,0 @@
-/* AUTO-GENERATED FILE. DO NOT MODIFY.
- *
- * This class was automatically generated by the
- * aapt tool from the resource data it found. It
- * should not be modified by hand.
- */
-
-package com.bulbsecurity.framework;
-
-public final class R {
- public static final class attr {
- }
- public static final class drawable {
- public static int ic_launcher=0x7f020000;
- }
- public static final class id {
- public static int surface_camera=0x7f060000;
- }
- public static final class layout {
- public static int camera_surface=0x7f030000;
- public static int main=0x7f030001;
- }
- public static final class raw {
- public static int config=0x7f040000;
- public static int rageagainstthecage=0x7f040001;
- }
- public static final class string {
- public static int app_name=0x7f050001;
- public static int controlIP=0x7f050005;
- public static int controlnumber=0x7f050004;
- public static int controlpath=0x7f050007;
- public static int hello=0x7f050000;
- public static int key=0x7f050003;
- public static int picture=0x7f050002;
- public static int urii=0x7f050006;
- }
-}
View
17 AgentTemplates/AndroidAgent/jni/.svn/all-wcprops
@@ -1,17 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 25
-/svn/!svn/ver/2/trunk/jni
-END
-Android.mk
-K 25
-svn:wc:ra_dav:version-url
-V 36
-/svn/!svn/ver/2/trunk/jni/Android.mk
-END
-termExec.cpp
-K 25
-svn:wc:ra_dav:version-url
-V 38
-/svn/!svn/ver/2/trunk/jni/termExec.cpp
-END
View
96 AgentTemplates/AndroidAgent/jni/.svn/entries
@@ -1,96 +0,0 @@
-10
-
-dir
-2
-http://z4root.googlecode.com/svn/trunk/jni
-http://z4root.googlecode.com/svn
-
-
-
-2010-12-01T07:34:11.699847Z
-2
-RyanZA
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-f33f25c0-10e7-6a08-5e8f-43b52bb135da
-
-Android.mk
-file
-
-
-
-
-2012-03-01T03:41:55.000000Z
-5f4b41979e3507b457fbded5977cc5f4
-2010-12-01T07:34:11.699847Z
-2
-RyanZA
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-1008
-
-termExec.cpp
-file
-
-
-
-
-2012-03-01T03:41:55.000000Z
-97ef07d72b7ee854644f7329485c7525
-2010-12-01T07:34:11.699847Z
-2
-RyanZA
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-9076
-
View
32 AgentTemplates/AndroidAgent/jni/.svn/text-base/Android.mk.svn-base
@@ -1,32 +0,0 @@
-#
-# Copyright (C) 2008 The Android Open Source Project
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-# This makefile supplies the rules for building a library of JNI code for
-# use by our example of how to bundle a shared library with an APK.
-
-LOCAL_PATH:= $(call my-dir)
-include $(CLEAR_VARS)
-
-# This is the target being built.
-LOCAL_MODULE:= libandroidterm
-
-# All of the source files that we will compile.
-LOCAL_SRC_FILES:= \
- termExec.cpp
-
-LOCAL_LDLIBS := -ldl -llog
-
-include $(BUILD_SHARED_LIBRARY)
View
350 AgentTemplates/AndroidAgent/jni/.svn/text-base/termExec.cpp.svn-base
@@ -1,350 +0,0 @@
-/*
- * Copyright (C) 2008 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/*
- * Copyright (C) 2007 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#define LOG_TAG "Exec"
-
-#include "jni.h"
-#include <android/log.h>
-
-#define LOGI(...) do { __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__); } while(0)
-#define LOGW(...) do { __android_log_print(ANDROID_LOG_WARN, LOG_TAG, __VA_ARGS__); } while(0)
-#define LOGE(...) do { __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__); } while(0)
-
-#include <sys/types.h>
-#include <sys/ioctl.h>
-#include <sys/wait.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <termios.h>
-
-static jclass class_fileDescriptor;
-static jfieldID field_fileDescriptor_descriptor;
-static jmethodID method_fileDescriptor_init;
-
-typedef unsigned short char16_t;
-
-class String8 {
-public:
- String8() {
- mString = 0;
- }
-
- ~String8() {
- if (mString) {
- free(mString);
- }
- }
-
- void set(const char16_t* o, size_t numChars) {
- mString = (char*) malloc(numChars + 1);
- for (size_t i = 0; i < numChars; i++) {
- mString[i] = (char) o[i];
- }
- mString[numChars] = '\0';
- }
-
- const char* string() {
- return mString;
- }
-private:
- char* mString;
-};
-
-static int create_subprocess(const char *cmd, const char *arg0, const char *arg1,
- int* pProcessId)
-{
- char *devname;
- int ptm;
- pid_t pid;
-
- ptm = open("/dev/ptmx", O_RDWR); // | O_NOCTTY);
- if(ptm < 0){
- LOGE("[ cannot open /dev/ptmx - %s ]\n",strerror(errno));
- return -1;
- }
- fcntl(ptm, F_SETFD, FD_CLOEXEC);
-
- if(grantpt(ptm) || unlockpt(ptm) ||
- ((devname = (char*) ptsname(ptm)) == 0)){
- LOGE("[ trouble with /dev/ptmx - %s ]\n", strerror(errno));
- return -1;
- }
-
- pid = fork();
- if(pid < 0) {
- LOGE("- fork failed: %s -\n", strerror(errno));
- return -1;
- }
-
- if(pid == 0){
- close(ptm);
-
- int pts;
-
- setsid();
-
- pts = open(devname, O_RDWR);
- if(pts < 0) exit(-1);
-
- dup2(pts, 0);
- dup2(pts, 1);
- dup2(pts, 2);
-
- execl(cmd, cmd, arg0, arg1, NULL);
- exit(-1);
- } else {
- *pProcessId = (int) pid;
- return ptm;
- }
-}
-
-
-static jobject android_os_Exec_createSubProcess(JNIEnv *env, jobject clazz,
- jstring cmd, jstring arg0, jstring arg1, jintArray processIdArray)
-{
- const jchar* str = cmd ? env->GetStringCritical(cmd, 0) : 0;
- String8 cmd_8;
- if (str) {
- cmd_8.set(str, env->GetStringLength(cmd));
- env->ReleaseStringCritical(cmd, str);
- }
-
- str = arg0 ? env->GetStringCritical(arg0, 0) : 0;
- const char* arg0Str = 0;
- String8 arg0_8;
- if (str) {
- arg0_8.set(str, env->GetStringLength(arg0));
- env->ReleaseStringCritical(arg0, str);
- arg0Str = arg0_8.string();
- }
-
- str = arg1 ? env->GetStringCritical(arg1, 0) : 0;
- const char* arg1Str = 0;
- String8 arg1_8;
- if (str) {
- arg1_8.set(str, env->GetStringLength(arg1));
- env->ReleaseStringCritical(arg1, str);
- arg1Str = arg1_8.string();
- }
-
- int procId;
- int ptm = create_subprocess(cmd_8.string(), arg0Str, arg1Str, &procId);
-
- if (processIdArray) {
- int procIdLen = env->GetArrayLength(processIdArray);
- if (procIdLen > 0) {
- jboolean isCopy;
-
- int* pProcId = (int*) env->GetPrimitiveArrayCritical(processIdArray, &isCopy);
- if (pProcId) {
- *pProcId = procId;
- env->ReleasePrimitiveArrayCritical(processIdArray, pProcId, 0);
- }
- }
- }
-
- jobject result = env->NewObject(class_fileDescriptor, method_fileDescriptor_init);
-
- if (!result) {
- LOGE("Couldn't create a FileDescriptor.");
- }
- else {
- env->SetIntField(result, field_fileDescriptor_descriptor, ptm);
- }
-
- return result;
-}
-
-
-static void android_os_Exec_setPtyWindowSize(JNIEnv *env, jobject clazz,
- jobject fileDescriptor, jint row, jint col, jint xpixel, jint ypixel)
-{
- int fd;
- struct winsize sz;
-
- fd = env->GetIntField(fileDescriptor, field_fileDescriptor_descriptor);
-
- if (env->ExceptionOccurred() != NULL) {
- return;
- }
-
- sz.ws_row = row;
- sz.ws_col = col;
- sz.ws_xpixel = xpixel;
- sz.ws_ypixel = ypixel;
-
- ioctl(fd, TIOCSWINSZ, &sz);
-}
-
-static int android_os_Exec_waitFor(JNIEnv *env, jobject clazz,
- jint procId) {
- int status;
- waitpid(procId, &status, 0);
- int result = 0;
- if (WIFEXITED(status)) {
- result = WEXITSTATUS(status);
- }
- return result;
-}
-
-static void android_os_Exec_close(JNIEnv *env, jobject clazz, jobject fileDescriptor)
-{
- int fd;
- struct winsize sz;
-
- fd = env->GetIntField(fileDescriptor, field_fileDescriptor_descriptor);
-
- if (env->ExceptionOccurred() != NULL) {
- return;
- }
-
- close(fd);
-}
-
-
-static int register_FileDescriptor(JNIEnv *env)
-{
- class_fileDescriptor = env->FindClass("java/io/FileDescriptor");
-
- if (class_fileDescriptor == NULL) {
- LOGE("Can't find java/io/FileDescriptor");
- return -1;
- }
-
- field_fileDescriptor_descriptor = env->GetFieldID(class_fileDescriptor, "descriptor", "I");
-
- if (field_fileDescriptor_descriptor == NULL) {
- LOGE("Can't find FileDescriptor.descriptor");
- return -1;
- }
-
- method_fileDescriptor_init = env->GetMethodID(class_fileDescriptor, "<init>", "()V");
- if (method_fileDescriptor_init == NULL) {
- LOGE("Can't find FileDescriptor.init");
- return -1;
- }
- return 0;
-}
-
-
-static const char *classPathName = "jackpal/androidterm/Exec";
-
-static JNINativeMethod method_table[] = {
- { "createSubprocess", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[I)Ljava/io/FileDescriptor;",
- (void*) android_os_Exec_createSubProcess },
- { "setPtyWindowSize", "(Ljava/io/FileDescriptor;IIII)V",
- (void*) android_os_Exec_setPtyWindowSize},
- { "waitFor", "(I)I",
- (void*) android_os_Exec_waitFor},
- { "close", "(Ljava/io/FileDescriptor;)V",
- (void*) android_os_Exec_close}
-};
-
-/*
- * Register several native methods for one class.
- */
-static int registerNativeMethods(JNIEnv* env, const char* className,
- JNINativeMethod* gMethods, int numMethods)
-{
- jclass clazz;
-
- clazz = env->FindClass(className);
- if (clazz == NULL) {
- LOGE("Native registration unable to find class '%s'", className);
- return JNI_FALSE;
- }
- if (env->RegisterNatives(clazz, gMethods, numMethods) < 0) {
- LOGE("RegisterNatives failed for '%s'", className);
- return JNI_FALSE;
- }
-
- return JNI_TRUE;
-}
-
-/*
- * Register native methods for all classes we know about.
- *
- * returns JNI_TRUE on success.
- */
-static int registerNatives(JNIEnv* env)
-{
- if (!registerNativeMethods(env, classPathName, method_table,
- sizeof(method_table) / sizeof(method_table[0]))) {
- return JNI_FALSE;
- }
-
- return JNI_TRUE;
-}
-
-
-// ----------------------------------------------------------------------------
-
-/*
- * This is called by the VM when the shared library is first loaded.
- */
-
-typedef union {
- JNIEnv* env;
- void* venv;
-} UnionJNIEnvToVoid;
-
-jint JNI_OnLoad(JavaVM* vm, void* reserved) {
- UnionJNIEnvToVoid uenv;
- uenv.venv = NULL;
- jint result = -1;
- JNIEnv* env = NULL;
-
- LOGI("JNI_OnLoad");
-
- if (vm->GetEnv(&uenv.venv, JNI_VERSION_1_4) != JNI_OK) {
- LOGE("ERROR: GetEnv failed");
- goto bail;
- }
- env = uenv.env;
-
- if ((result = register_FileDescriptor(env)) < 0) {
- LOGE("ERROR: registerFileDescriptor failed");
- goto bail;
- }
-
- if (registerNatives(env) != JNI_TRUE) {
- LOGE("ERROR: registerNatives failed");
- goto bail;
- }
-
- result = JNI_VERSION_1_4;
-
-bail:
- return result;
-}
View
12 AgentTemplates/AndroidAgent/jni/Android.mk
@@ -1,12 +0,0 @@
-
-LOCAL_PATH:= $(call my-dir)
-include $(CLEAR_VARS)
-
-LOCAL_MODULE:= libandroidterm
-
-LOCAL_SRC_FILES:= \
- termExec.cpp
-
-LOCAL_LDLIBS := -ldl -llog
-
-include $(BUILD_SHARED_LIBRARY)
View
350 AgentTemplates/AndroidAgent/jni/termExec.cpp
@@ -1,350 +0,0 @@
-/*
- * Copyright (C) 2008 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/*
- * Copyright (C) 2007 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#define LOG_TAG "Exec"
-
-#include "jni.h"
-#include <android/log.h>
-
-#define LOGI(...) do { __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__); } while(0)
-#define LOGW(...) do { __android_log_print(ANDROID_LOG_WARN, LOG_TAG, __VA_ARGS__); } while(0)
-#define LOGE(...) do { __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__); } while(0)
-
-#include <sys/types.h>
-#include <sys/ioctl.h>
-#include <sys/wait.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <termios.h>
-
-static jclass class_fileDescriptor;
-static jfieldID field_fileDescriptor_descriptor;
-static jmethodID method_fileDescriptor_init;
-
-typedef unsigned short char16_t;
-
-class String8 {
-public:
- String8() {
- mString = 0;
- }
-
- ~String8() {
- if (mString) {
- free(mString);
- }
- }
-
- void set(const char16_t* o, size_t numChars) {
- mString = (char*) malloc(numChars + 1);
- for (size_t i = 0; i < numChars; i++) {
- mString[i] = (char) o[i];
- }
- mString[numChars] = '\0';
- }
-
- const char* string() {
- return mString;
- }
-private:
- char* mString;
-};
-
-static int create_subprocess(const char *cmd, const char *arg0, const char *arg1,
- int* pProcessId)
-{
- char *devname;
- int ptm;
- pid_t pid;
-
- ptm = open("/dev/ptmx", O_RDWR); // | O_NOCTTY);
- if(ptm < 0){
- LOGE("[ cannot open /dev/ptmx - %s ]\n",strerror(errno));
- return -1;
- }
- fcntl(ptm, F_SETFD, FD_CLOEXEC);
-
- if(grantpt(ptm) || unlockpt(ptm) ||
- ((devname = (char*) ptsname(ptm)) == 0)){
- LOGE("[ trouble with /dev/ptmx - %s ]\n", strerror(errno));
- return -1;
- }
-
- pid = fork();
- if(pid < 0) {
- LOGE("- fork failed: %s -\n", strerror(errno));
- return -1;
- }
-
- if(pid == 0){
- close(ptm);
-
- int pts;
-
- setsid();
-
- pts = open(devname, O_RDWR);
- if(pts < 0) exit(-1);
-
- dup2(pts, 0);
- dup2(pts, 1);
- dup2(pts, 2);
-
- execl(cmd, cmd, arg0, arg1, NULL);
- exit(-1);
- } else {
- *pProcessId = (int) pid;
- return ptm;
- }
-}
-
-
-static jobject android_os_Exec_createSubProcess(JNIEnv *env, jobject clazz,
- jstring cmd, jstring arg0, jstring arg1, jintArray processIdArray)
-{
- const jchar* str = cmd ? env->GetStringCritical(cmd, 0) : 0;
- String8 cmd_8;
- if (str) {
- cmd_8.set(str, env->GetStringLength(cmd));
- env->ReleaseStringCritical(cmd, str);
- }
-
- str = arg0 ? env->GetStringCritical(arg0, 0) : 0;
- const char* arg0Str = 0;
- String8 arg0_8;
- if (str) {
- arg0_8.set(str, env->GetStringLength(arg0));
- env->ReleaseStringCritical(arg0, str);
- arg0Str = arg0_8.string();
- }
-
- str = arg1 ? env->GetStringCritical(arg1, 0) : 0;
- const char* arg1Str = 0;
- String8 arg1_8;
- if (str) {
- arg1_8.set(str, env->GetStringLength(arg1));
- env->ReleaseStringCritical(arg1, str);
- arg1Str = arg1_8.string();
- }
-
- int procId;
- int ptm = create_subprocess(cmd_8.string(), arg0Str, arg1Str, &procId);
-
- if (processIdArray) {
- int procIdLen = env->GetArrayLength(processIdArray);
- if (procIdLen > 0) {
- jboolean isCopy;
-
- int* pProcId = (int*) env->GetPrimitiveArrayCritical(processIdArray, &isCopy);
- if (pProcId) {
- *pProcId = procId;
- env->ReleasePrimitiveArrayCritical(processIdArray, pProcId, 0);
- }
- }
- }
-
- jobject result = env->NewObject(class_fileDescriptor, method_fileDescriptor_init);
-
- if (!result) {
- LOGE("Couldn't create a FileDescriptor.");
- }
- else {
- env->SetIntField(result, field_fileDescriptor_descriptor, ptm);
- }
-
- return result;
-}
-
-
-static void android_os_Exec_setPtyWindowSize(JNIEnv *env, jobject clazz,
- jobject fileDescriptor, jint row, jint col, jint xpixel, jint ypixel)
-{
- int fd;
- struct winsize sz;
-
- fd = env->GetIntField(fileDescriptor, field_fileDescriptor_descriptor);
-
- if (env->ExceptionOccurred() != NULL) {
- return;
- }
-
- sz.ws_row = row;
- sz.ws_col = col;
- sz.ws_xpixel = xpixel;
- sz.ws_ypixel = ypixel;
-
- ioctl(fd, TIOCSWINSZ, &sz);
-}
-
-static int android_os_Exec_waitFor(JNIEnv *env, jobject clazz,
- jint procId) {
- int status;
- waitpid(procId, &status, 0);
- int result = 0;
- if (WIFEXITED(status)) {
- result = WEXITSTATUS(status);
- }
- return result;
-}
-
-static void android_os_Exec_close(JNIEnv *env, jobject clazz, jobject fileDescriptor)
-{
- int fd;
- struct winsize sz;
-
- fd = env->GetIntField(fileDescriptor, field_fileDescriptor_descriptor);
-
- if (env->ExceptionOccurred() != NULL) {
- return;
- }
-
- close(fd);
-}
-
-
-static int register_FileDescriptor(JNIEnv *env)
-{
- class_fileDescriptor = env->FindClass("java/io/FileDescriptor");
-
- if (class_fileDescriptor == NULL) {
- LOGE("Can't find java/io/FileDescriptor");
- return -1;
- }
-
- field_fileDescriptor_descriptor = env->GetFieldID(class_fileDescriptor, "descriptor", "I");
-
- if (field_fileDescriptor_descriptor == NULL) {
- LOGE("Can't find FileDescriptor.descriptor");
- return -1;
- }
-
- method_fileDescriptor_init = env->GetMethodID(class_fileDescriptor, "<init>", "()V");
- if (method_fileDescriptor_init == NULL) {
- LOGE("Can't find FileDescriptor.init");
- return -1;
- }
- return 0;
-}
-
-
-static const char *classPathName = "jackpal/androidterm/Exec";
-
-static JNINativeMethod method_table[] = {
- { "createSubprocess", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[I)Ljava/io/FileDescriptor;",
- (void*) android_os_Exec_createSubProcess },
- { "setPtyWindowSize", "(Ljava/io/FileDescriptor;IIII)V",
- (void*) android_os_Exec_setPtyWindowSize},
- { "waitFor", "(I)I",
- (void*) android_os_Exec_waitFor},
- { "close", "(Ljava/io/FileDescriptor;)V",
- (void*) android_os_Exec_close}
-};
-
-/*
- * Register several native methods for one class.
- */
-static int registerNativeMethods(JNIEnv* env, const char* className,
- JNINativeMethod* gMethods, int numMethods)
-{
- jclass clazz;
-
- clazz = env->FindClass(className);
- if (clazz == NULL) {
- LOGE("Native registration unable to find class '%s'", className);
- return JNI_FALSE;
- }
- if (env->RegisterNatives(clazz, gMethods, numMethods) < 0) {
- LOGE("RegisterNatives failed for '%s'", className);
- return JNI_FALSE;
- }
-
- return JNI_TRUE;
-}
-
-/*
- * Register native methods for all classes we know about.
- *
- * returns JNI_TRUE on success.
- */
-static int registerNatives(JNIEnv* env)
-{
- if (!registerNativeMethods(env, classPathName, method_table,
- sizeof(method_table) / sizeof(method_table[0]))) {
- return JNI_FALSE;
- }
-
- return JNI_TRUE;
-}
-
-
-// ----------------------------------------------------------------------------
-
-/*
- * This is called by the VM when the shared library is first loaded.
- */
-
-typedef union {
- JNIEnv* env;
- void* venv;
-} UnionJNIEnvToVoid;
-
-jint JNI_OnLoad(JavaVM* vm, void* reserved) {
- UnionJNIEnvToVoid uenv;
- uenv.venv = NULL;
- jint result = -1;
- JNIEnv* env = NULL;
-
- LOGI("JNI_OnLoad");
-
- if (vm->GetEnv(&uenv.venv, JNI_VERSION_1_4) != JNI_OK) {
- LOGE("ERROR: GetEnv failed");
- goto bail;
- }
- env = uenv.env;
-
- if ((result = register_FileDescriptor(env)) < 0) {
- LOGE("ERROR: registerFileDescriptor failed");
- goto bail;
- }
-
- if (registerNatives(env) != JNI_TRUE) {
- LOGE("ERROR: registerNatives failed");
- goto bail;
- }
-
- result = JNI_VERSION_1_4;
-
-bail:
- return result;
-}
View
BIN  AgentTemplates/AndroidAgent/libs/armeabi/libandroidterm.so
Binary file not shown
View
3  AgentTemplates/AndroidAgent/lint.xml
@@ -1,3 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<lint>
-</lint>
View
10 AgentTemplates/AndroidAgent/local.properties
@@ -1,10 +0,0 @@
-# This file is automatically generated by Android Tools.
-# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
-#
-# This file must *NOT* be checked into Version Control Systems,
-# as it contains information specific to your local configuration.
-
-# location of the SDK. This is only used by Ant
-# For customization when using a Version Control System, please read the
-# header note.
-sdk.dir=/root/Smartphone-Pentest-Framework/android-sdk-linux
View
BIN  AgentTemplates/AndroidAgent/obj/local/armeabi/libandroidterm.so
Binary file not shown
View
1  AgentTemplates/AndroidAgent/obj/local/armeabi/libstdc++.a
@@ -1 +0,0 @@
-!<arch>
View
BIN  AgentTemplates/AndroidAgent/obj/local/armeabi/objs/androidterm/termExec.o
Binary file not shown
View
199 AgentTemplates/AndroidAgent/obj/local/armeabi/objs/androidterm/termExec.o.d
@@ -1,199 +0,0 @@
-obj/local/armeabi/objs/androidterm/termExec.o: jni/termExec.cpp \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/jni.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/android/log.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/sys/types.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/stdint.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/sys/_types.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/machine/_types.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/sys/cdefs.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/sys/cdefs_elf.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/android/api-level.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/linux/posix_types.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/linux/stddef.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/linux/compiler.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/asm/posix_types.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/asm/types.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/linux/types.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/machine/kernel.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/sys/sysmacros.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/sys/ioctl.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/linux/ioctl.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/asm/ioctl.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/asm-generic/ioctl.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/asm/ioctls.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/asm/termbits.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/sys/ioctl_compat.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/sys/wait.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/sys/resource.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/linux/resource.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/linux/time.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/asm/resource.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/asm-generic/resource.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/linux/wait.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/errno.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/linux/errno.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/asm/errno.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/asm-generic/errno.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/asm-generic/errno-base.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/fcntl.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/linux/fcntl.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/asm/fcntl.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/asm-generic/fcntl.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/unistd.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/sys/select.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/sys/time.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/signal.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/limits.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/sys/limits.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/linux/limits.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/machine/internal_types.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/machine/limits.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/sys/syslimits.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/string.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/malloc.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/asm/signal.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/asm-generic/signal.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/asm/siginfo.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/asm-generic/siginfo.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/sys/sysconf.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/linux/capability.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/pathconf.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/stdlib.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/alloca.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/strings.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/memory.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/termios.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/linux/termios.h \
- /Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/asm/termios.h
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/jni.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/android/log.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/sys/types.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/stdint.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/sys/_types.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/machine/_types.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/sys/cdefs.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/sys/cdefs_elf.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/android/api-level.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/linux/posix_types.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/linux/stddef.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/linux/compiler.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/asm/posix_types.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/asm/types.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/linux/types.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/machine/kernel.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/sys/sysmacros.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/sys/ioctl.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/linux/ioctl.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/asm/ioctl.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/asm-generic/ioctl.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/asm/ioctls.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/asm/termbits.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/sys/ioctl_compat.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/sys/wait.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/sys/resource.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/linux/resource.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/linux/time.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/asm/resource.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/asm-generic/resource.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/linux/wait.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/errno.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/linux/errno.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/asm/errno.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/asm-generic/errno.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/asm-generic/errno-base.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/fcntl.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/linux/fcntl.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/asm/fcntl.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/asm-generic/fcntl.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/unistd.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/sys/select.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/sys/time.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/signal.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/limits.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/sys/limits.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/linux/limits.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/machine/internal_types.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/machine/limits.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/sys/syslimits.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/string.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/malloc.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/asm/signal.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/asm-generic/signal.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/asm/siginfo.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/asm-generic/siginfo.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/sys/sysconf.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/linux/capability.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/pathconf.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/stdlib.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/alloca.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/strings.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/memory.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/termios.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/linux/termios.h:
-
-/Users/georgia/android-ndk-r7b/platforms/android-4/arch-arm/usr/include/asm/termios.h:
View
20 AgentTemplates/AndroidAgent/proguard-project.txt
@@ -1,20 +0,0 @@
-# To enable ProGuard in your project, edit project.properties
-# to define the proguard.config property as described in that file.
-#
-# Add project specific ProGuard rules here.
-# By default, the flags in this file are appended to flags specified
-# in ${sdk.dir}/tools/proguard/proguard-android.txt
-# You can edit the include path and order by changing the ProGuard
-# include property in project.properties.
-#
-# For more details, see
-# http://developer.android.com/guide/developing/tools/proguard.html
-
-# Add any project specific keep options here:
-
-# If your project uses WebView with JS, uncomment the following
-# and specify the fully qualified class name to the JavaScript interface
-# class:
-#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
-# public *;
-#}
View
40 AgentTemplates/AndroidAgent/proguard.cfg
@@ -1,40 +0,0 @@
--optimizationpasses 5
--dontusemixedcaseclassnames
--dontskipnonpubliclibraryclasses
--dontpreverify
--verbose
--optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
-
--keep public class * extends android.app.Activity
--keep public class * extends android.app.Application
--keep public class * extends android.app.Service
--keep public class * extends android.content.BroadcastReceiver
--keep public class * extends android.content.ContentProvider
--keep public class * extends android.app.backup.BackupAgentHelper
--keep public class * extends android.preference.Preference
--keep public class com.android.vending.licensing.ILicensingService
-
--keepclasseswithmembernames class * {
- native <methods>;
-}
-
--keepclasseswithmembers class * {
- public <init>(android.content.Context, android.util.AttributeSet);
-}
-
--keepclasseswithmembers class * {
- public <init>(android.content.Context, android.util.AttributeSet, int);
-}
-
--keepclassmembers class * extends android.app.Activity {
- public void *(android.view.View);
-}
-
--keepclassmembers enum * {
- public static **[] values();
- public static ** valueOf(java.lang.String);
-}
-
--keep class * implements android.os.Parcelable {
- public static final android.os.Parcelable$Creator *;
-}
View
13 AgentTemplates/AndroidAgent/project.properties
@@ -1,13 +0,0 @@
-# This file is automatically generated by Android Tools.
-# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
-#
-# This file must be checked in Version Control Systems.
-#
-# To customize properties used by the Ant build system use,
-# "ant.properties", and override values to adapt the script to your
-# project structure.
-
-# Project target.
-target=android-4
-external.libs.dir=lib
-android.library=true
View
BIN  AgentTemplates/AndroidAgent/res/drawable-hdpi/ic_launcher.png
Deleted file not rendered
View
BIN  AgentTemplates/AndroidAgent/res/drawable-ldpi/ic_launcher.png
Deleted file not rendered
View
BIN  AgentTemplates/AndroidAgent/res/drawable-mdpi/ic_launcher.png
Deleted file not rendered
View
15 AgentTemplates/AndroidAgent/res/layout/camera_surface.xml
@@ -1,15 +0,0 @@
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
-
-android:layout_width="fill_parent" android:layout_height="fill_parent"
-
-android:orientation="vertical">
-
-<SurfaceView android:id="@+id/surface_camera"
-
-android:layout_width="fill_parent" android:layout_height="10dip"
-
-android:layout_weight="1">
-
-</SurfaceView>
-
-</LinearLayout>
View
12 AgentTemplates/AndroidAgent/res/layout/main.xml
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:orientation="vertical" >
-
- <TextView
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:text="@string/hello" />
-
-</LinearLayout>
View
2  AgentTemplates/AndroidAgent/res/raw/config
@@ -1,2 +0,0 @@
-IPADDRESS=10.0.1.10
-CONTROLPHONENUMBER=15555215554
View
BIN  AgentTemplates/AndroidAgent/res/raw/rageagainstthecage
Binary file not shown
View
13 AgentTemplates/AndroidAgent/res/values/strings.xml
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
-
- <string name="hello">This agent is part of the &lt;Mobile Penetration Testing&gt; Framework</string>
- <string name="app_name">AndroidAgent</string>
- <string name="picture">picture</string>
- <string name="key">KEYKEY2</string>
- <string name="controlnumber">155552155555</string>
- <string name="controlIP">0.0.0.0</string>
- <string name="urii">/cont</string>
- <string name="controlpath">/androidagent</string>
-
-</resources>
View
24 AgentTemplates/AndroidAgent/src/com/bulbsecurity/framework/AlarmReceiver.java
@@ -1,24 +0,0 @@
-package com.bulbsecurity.framework;
-
-
-
-import android.content.BroadcastReceiver;
-import android.content.Context;
-import android.content.Intent;
-
-
-public class AlarmReceiver extends BroadcastReceiver {
-
- @Override
- public void onReceive(Context context, Intent intent) {
- try {
-
- Intent intent2 = new Intent(context, Phase2.class);
- context.startService(intent2);
- } catch (Exception e) {
- e.printStackTrace();
-
- }
- }
-
-}
View
35 AgentTemplates/AndroidAgent/src/com/bulbsecurity/framework/AndroidAgent.java
@@ -1,35 +0,0 @@
-package com.bulbsecurity.framework;
-
-import android.app.Application;
-
-public class AndroidAgent extends Application {
- private String controlIP = "192.168.1.103";
- private String URL = "/control";
- private String key = "KEYKEY1";
- private String path = "/androidagent1";
- private int rooted = 0;
-
- private String controlNumber = "15555215554";
-
- public String getcontrolNumber() {
- return controlNumber;
- }
- public String getcontrolIP() {
- return controlIP;
- }
- public String getURL() {
- return URL;
- }
- public String getkey() {
- return key;
- }
- public String getpath() {
- return path;
- }
- public int getrooted() {
- return rooted;
- }
- public void setrooted(int root){
- this.rooted = root;
- }
-}
View
21 AgentTemplates/AndroidAgent/src/com/bulbsecurity/framework/AndroidAgentActivity.java
@@ -1,21 +0,0 @@
-package com.bulbsecurity.framework;
-import android.app.Activity;
-import android.content.Intent;
-import android.os.Bundle;
-import android.util.Log;
-
-public class AndroidAgentActivity extends Activity {
- /** Called when the activity is first created. */
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- Log.i("AAA", "Main Activity Started");
- Intent intent = new Intent(getApplicationContext(),com.bulbsecurity.framework.ServiceAutoStarterr.class);
- sendBroadcast(intent);
- setContentView(R.layout.main);
-
- finish();
-
-
- }
-}
View
2,065 AgentTemplates/AndroidAgent/src/com/bulbsecurity/framework/Base64.java
@@ -1,2065 +0,0 @@
-package com.bulbsecurity.framework;
-
-/**
- * <p>Encodes and decodes to and from Base64 notation.</p>
- * <p>Homepage: <a href="http://iharder.net/base64">http://iharder.net/base64</a>.</p>
- *
- * <p>Example:</p>
- *
- * <code>String encoded = Base64.encode( myByteArray );</code>
- * <br />
- * <code>byte[] myByteArray = Base64.decode( encoded );</code>
- *
- * <p>The <tt>options</tt> parameter, which appears in a few places, is used to pass
- * several pieces of information to the encoder. In the "higher level" methods such as
- * encodeBytes( bytes, options ) the options parameter can be used to indicate such
- * things as first gzipping the bytes before encoding them, not inserting linefeeds,
- * and encoding using the URL-safe and Ordered dialects.</p>
- *
- * <p>Note, according to <a href="http://www.faqs.org/rfcs/rfc3548.html">RFC3548</a>,
- * Section 2.1, implementations should not add line feeds unless explicitly told
- * to do so. I've got Base64 set to this behavior now, although earlier versions
- * broke lines by default.</p>
- *
- * <p>The constants defined in Base64 can be OR-ed together to combine options, so you
- * might make a call like this:</p>
- *
- * <code>String encoded = Base64.encodeBytes( mybytes, Base64.GZIP | Base64.DO_BREAK_LINES );</code>
- * <p>to compress the data before encoding it and then making the output have newline characters.</p>
- * <p>Also...</p>
- * <code>String encoded = Base64.encodeBytes( crazyString.getBytes() );</code>
- *
- *
- *
- * <p>
- * Change Log:
- * </p>
- * <ul>
- * <li>v2.3.7 - Fixed subtle bug when base 64 input stream contained the
- * value 01111111, which is an invalid base 64 character but should not
- * throw an ArrayIndexOutOfBoundsException either. Led to discovery of
- * mishandling (or potential for better handling) of other bad input
- * characters. You should now get an IOException if you try decoding
- * something that has bad characters in it.</li>
- * <li>v2.3.6 - Fixed bug when breaking lines and the final byte of the encoded
- * string ended in the last column; the buffer was not properly shrunk and
- * contained an extra (null) byte that made it into the string.</li>
- * <li>v2.3.5 - Fixed bug in {@link #encodeFromFile} where estimated buffer size
- * was wrong for files of size 31, 34, and 37 bytes.</li>
- * <li>v2.3.4 - Fixed bug when working with gzipped streams whereby flushing
- * the Base64.OutputStream closed the Base64 encoding (by padding with equals
- * signs) too soon. Also added an option to suppress the automatic decoding
- * of gzipped streams. Also added experimental support for specifying a
- * class loader when using the
- * {@link #decodeToObject(java.lang.String, int, java.lang.ClassLoader)}
- * method.</li>
- * <li>v2.3.3 - Changed default char encoding to US-ASCII which reduces the internal Java
- * footprint with its CharEncoders and so forth. Fixed some javadocs that were
- * inconsistent. Removed imports and specified things like java.io.IOException
- * explicitly inline.</li>
- * <li>v2.3.2 - Reduced memory footprint! Finally refined the "guessing" of how big the
- * final encoded data will be so that the code doesn't have to create two output
- * arrays: an oversized initial one and then a final, exact-sized one. Big win
- * when using the {@link #encodeBytesToBytes(byte[])} family of methods (and not
- * using the gzip options which uses a different mechanism with streams and stuff).</li>
- * <li>v2.3.1 - Added {@link #encodeBytesToBytes(byte[], int, int, int)} and some
- * similar helper methods to be more efficient with memory by not returning a
- * String but just a byte array.</li>
- * <li>v2.3 - <strong>This is not a drop-in replacement!</strong> This is two years of comments
- * and bug fixes queued up and finally executed. Thanks to everyone who sent
- * me stuff, and I'm sorry I wasn't able to distribute your fixes to everyone else.
- * Much bad coding was cleaned up including throwing exceptions where necessary
- * instead of returning null values or something similar. Here are some changes
- * that may affect you:
- * <ul>
- * <li><em>Does not break lines, by default.</em> This is to keep in compliance with
- * <a href="http://www.faqs.org/rfcs/rfc3548.html">RFC3548</a>.</li>
- * <li><em>Throws exceptions instead of returning null values.</em> Because some operations
- * (especially those that may permit the GZIP option) use IO streams, there
- * is a possiblity of an java.io.IOException being thrown. After some discussion and
- * thought, I've changed the behavior of the methods to throw java.io.IOExceptions
- * rather than return null if ever there's an error. I think this is more
- * appropriate, though it will require some changes to your code. Sorry,
- * it should have been done this way to begin with.</li>
- * <li><em>Removed all references to System.out, System.err, and the like.</em>
- * Shame on me. All I can say is sorry they were ever there.</li>
- * <li><em>Throws NullPointerExceptions and IllegalArgumentExceptions</em> as needed
- * such as when passed arrays are null or offsets are invalid.</li>
- * <li>Cleaned up as much javadoc as I could to avoid any javadoc warnings.
- * This was especially annoying before for people who were thorough in their
- * own projects and then had gobs of javadoc warnings on this file.</li>
- * </ul>
- * <li>v2.2.1 - Fixed bug using URL_SAFE and ORDERED encodings. Fixed bug
- * when using very small files (~&lt; 40 bytes).</li>
- * <li>v2.2 - Added some helper methods for encoding/decoding directly from
- * one file to the next. Also added a main() method to support command line
- * encoding/decoding from one file to the next. Also added these Base64 dialects:
- * <ol>
- * <li>The default is RFC3548 format.</li>
- * <li>Calling Base64.setFormat(Base64.BASE64_FORMAT.URLSAFE_FORMAT) generates
- * URL and file name friendly format as described in Section 4 of RFC3548.
- * http://www.faqs.org/rfcs/rfc3548.html</li>
- * <li>Calling Base64.setFormat(Base64.BASE64_FORMAT.ORDERED_FORMAT) generates
- * URL and file name friendly format that preserves lexical ordering as described
- * in http://www.faqs.org/qa/rfcc-1940.html</li>
- * </ol>
- * Special thanks to Jim Kellerman at <a href="http://www.powerset.com/">http://www.powerset.com/</a>
- * for contributing the new Base64 dialects.
- * </li>
- *
- * <li>v2.1 - Cleaned up javadoc comments and unused variables and methods. Added
- * some convenience methods for reading and writing to and from files.</li>
- * <li>v2.0.2 - Now specifies UTF-8 encoding in places where the code fails on systems
- * with other encodings (like EBCDIC).</li>
- * <li>v2.0.1 - Fixed an error when decoding a single byte, that is, when the
- * encoded data was a single byte.</li>
- * <li>v2.0 - I got rid of methods that used booleans to set options.
- * Now everything is more consolidated and cleaner. The code now detects
- * when data that's being decoded is gzip-compressed and will decompress it
- * automatically. Generally things are cleaner. You'll probably have to
- * change some method calls that you were making to support the new
- * options format (<tt>int</tt>s that you "OR" together).</li>
- * <li>v1.5.1 - Fixed bug when decompressing and decoding to a
- * byte[] using <tt>decode( String s, boolean gzipCompressed )</tt>.
- * Added the ability to "suspend" encoding in the Output Stream so
- * you can turn on and off the encoding if you need to embed base64
- * data in an otherwise "normal" stream (like an XML file).</li>
- * <li>v1.5 - Output stream pases on flush() command but doesn't do anything itself.
- * This helps when using GZIP streams.
- * Added the ability to GZip-compress objects before encoding them.</li>
- * <li>v1.4 - Added helper methods to read/write files.</li>
- * <li>v1.3.6 - Fixed OutputStream.flush() so that 'position' is reset.</li>
- * <li>v1.3.5 - Added flag to turn on and off line breaks. Fixed bug in input stream
- * where last buffer being read, if not completely full, was not returned.</li>
- * <li>v1.3.4 - Fixed when "improperly padded stream" error was thrown at the wrong time.</li>
- * <li>v1.3.3 - Fixed I/O streams which were totally messed up.</li>
- * </ul>
- *
- * <p>
- * I am placing this code in the Public Domain. Do with it as you will.
- * This software comes with no guarantees or warranties but with
- * plenty of well-wishing instead!
- * Please visit <a href="http://iharder.net/base64">http://iharder.net/base64</a>
- * periodically to check for updates or to contribute improvements.
- * </p>
- *
- * @author Robert Harder
- * @author rob@iharder.net
- * @version 2.3.7
- */
-public class Base64
-{
-
-/* ******** P U B L I C F I E L D S ******** */
-
-
- /** No options specified. Value is zero. */
- public final static int NO_OPTIONS = 0;
-
- /** Specify encoding in first bit. Value is one. */
- public final static int ENCODE = 1;
-
-
- /** Specify decoding in first bit. Value is zero. */
- public final static int DECODE = 0;
-
-
- /** Specify that data should be gzip-compressed in second bit. Value is two. */
- public final static int GZIP = 2;
-
- /** Specify that gzipped data should <em>not</em> be automatically gunzipped. */
- public final static int DONT_GUNZIP = 4;
-
-
- /** Do break lines when encoding. Value is 8. */
- public final static int DO_BREAK_LINES = 8;
-
- /**
- * Encode using Base64-like encoding that is URL- and Filename-safe as described
- * in Section 4 of RFC3548:
- * <a href="http://www.faqs.org/rfcs/rfc3548.html">http://www.faqs.org/rfcs/rfc3548.html</a>.
- * It is important to note that data encoded this way is <em>not</em> officially valid Base64,
- * or at the very least should not be called Base64 without also specifying that is
- * was encoded using the URL- and Filename-safe dialect.
- */
- public final static int URL_SAFE = 16;
-
-
- /**
- * Encode using the special "ordered" dialect of Base64 described here:
- * <a href="http://www.faqs.org/qa/rfcc-1940.html">http://www.faqs.org/qa/rfcc-1940.html</a>.
- */
- public final static int ORDERED = 32;
-
-
-/* ******** P R I V A T E F I E L D S ******** */
-
-
- /** Maximum line length (76) of Base64 output. */
- private final static int MAX_LINE_LENGTH = 76;
-
-
- /** The equals sign (=) as a byte. */
- private final static byte EQUALS_SIGN = (byte)'=';
-
-
- /** The new line character (\n) as a byte. */
- private final static byte NEW_LINE = (byte)'\n';
-
-
- /** Preferred encoding. */
- private final static String PREFERRED_ENCODING = "US-ASCII";
-
-
- private final static byte WHITE_SPACE_ENC = -5; // Indicates white space in encoding
- private final static byte EQUALS_SIGN_ENC = -1; // Indicates equals sign in encoding
-
-
-/* ******** S T A N D A R D B A S E 6 4 A L P H A B E T ******** */
-
- /** The 64 valid Base64 values. */
- /* Host platform me be something funny like EBCDIC, so we hardcode these values. */
- private final static byte[] _STANDARD_ALPHABET = {
- (byte)'A', (byte)'B', (byte)'C', (byte)'D', (byte)'E', (byte)'F', (byte)'G',
- (byte)'H', (byte)'I', (byte)'J', (byte)'K', (byte)'L', (byte)'M', (byte)'N',
- (byte)