@corellium/corellium-cli 1.1.0 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (331) hide show
  1. package/corellium-corellium-cli-1.0.3.tgz +0 -0
  2. package/netdump.pcap +0 -0
  3. package/node_modules/@babel/cli/node_modules/commander/package.json +27 -58
  4. package/node_modules/@babel/cli/node_modules/make-dir/package.json +62 -93
  5. package/node_modules/@babel/cli/node_modules/pify/package.json +54 -85
  6. package/node_modules/@babel/cli/node_modules/semver/package.json +20 -51
  7. package/node_modules/@babel/cli/node_modules/slash/package.json +37 -68
  8. package/node_modules/@babel/cli/package.json +37 -69
  9. package/node_modules/@corellium/client-api/package.json +15 -40
  10. package/node_modules/@jridgewell/resolve-uri/package.json +40 -75
  11. package/node_modules/@jridgewell/sourcemap-codec/package.json +43 -74
  12. package/node_modules/@jridgewell/trace-mapping/package.json +40 -72
  13. package/node_modules/@mapbox/node-pre-gyp/package.json +27 -61
  14. package/node_modules/@nicolo-ribaudo/chokidar-2/package.json +22 -55
  15. package/node_modules/abbrev/package.json +18 -52
  16. package/node_modules/agent-base/package.json +33 -62
  17. package/node_modules/ansi-regex/package.json +58 -89
  18. package/node_modules/ansi-styles/package.json +59 -95
  19. package/node_modules/anymatch/package.json +28 -56
  20. package/node_modules/aproba/package.json +23 -50
  21. package/node_modules/are-we-there-yet/node_modules/readable-stream/package.json +32 -60
  22. package/node_modules/are-we-there-yet/package.json +32 -62
  23. package/node_modules/ascii-art/package.json +51 -83
  24. package/node_modules/ascii-art-ansi/package.json +30 -61
  25. package/node_modules/ascii-art-braille/package.json +7 -32
  26. package/node_modules/ascii-art-font/package.json +17 -47
  27. package/node_modules/ascii-art-graph/package.json +10 -34
  28. package/node_modules/ascii-art-image/node_modules/ascii-art-braille/package.json +7 -32
  29. package/node_modules/ascii-art-image/package.json +11 -36
  30. package/node_modules/ascii-art-table/package.json +10 -35
  31. package/node_modules/ascii-art-utf/package.json +18 -47
  32. package/node_modules/async/package.json +29 -55
  33. package/node_modules/async-arrays/package.json +34 -62
  34. package/node_modules/asynckit/package.json +45 -74
  35. package/node_modules/axios/package.json +46 -72
  36. package/node_modules/balanced-match/package.json +22 -49
  37. package/node_modules/binary-extensions/package.json +41 -73
  38. package/node_modules/brace-expansion/package.json +23 -50
  39. package/node_modules/braces/package.json +30 -76
  40. package/node_modules/call-bind/package.json +83 -125
  41. package/node_modules/canvas/build/Release/.deps/Release/canvas.node.d +1 -1
  42. package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/Backends.o.d +362 -368
  43. package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/Canvas.o.d +365 -375
  44. package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/CanvasGradient.o.d +351 -353
  45. package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/CanvasPattern.o.d +682 -698
  46. package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/CanvasRenderingContext2d.o.d +690 -702
  47. package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/Image.o.d +684 -697
  48. package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/ImageData.o.d +50 -45
  49. package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/backend/Backend.o.d +59 -53
  50. package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/backend/ImageBackend.o.d +59 -54
  51. package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/backend/PdfBackend.o.d +363 -369
  52. package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/backend/SvgBackend.o.d +363 -369
  53. package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/bmp/BMPParser.o.d +2 -2
  54. package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/closure.o.d +357 -364
  55. package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/color.o.d +1 -1
  56. package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/init.o.d +715 -729
  57. package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/register_font.o.d +345 -346
  58. package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas.node.d +1 -0
  59. package/node_modules/canvas/build/Release/canvas.node +0 -0
  60. package/node_modules/canvas/build/Release/libcairo-gobject.so.2 +0 -0
  61. package/node_modules/canvas/build/Release/libcairo.so.2 +0 -0
  62. package/node_modules/canvas/build/Release/libexpat.so.1 +0 -0
  63. package/node_modules/canvas/build/Release/libffi.so.7 +0 -0
  64. package/node_modules/canvas/build/Release/libfontconfig.so.1 +0 -0
  65. package/node_modules/canvas/build/Release/libfreetype.so.6 +0 -0
  66. package/node_modules/canvas/build/Release/libfribidi.so.0 +0 -0
  67. package/node_modules/canvas/build/Release/libgdk_pixbuf-2.0.so.0 +0 -0
  68. package/node_modules/canvas/build/Release/libgif.so.7 +0 -0
  69. package/node_modules/canvas/build/Release/libgio-2.0.so.0 +0 -0
  70. package/node_modules/canvas/build/Release/libglib-2.0.so.0 +0 -0
  71. package/node_modules/canvas/build/Release/libgmodule-2.0.so.0 +0 -0
  72. package/node_modules/canvas/build/Release/libgobject-2.0.so.0 +0 -0
  73. package/node_modules/canvas/build/Release/{librsvg-2.2.dylib → libharfbuzz.so.0} +0 -0
  74. package/node_modules/canvas/build/Release/libjpeg.so.62 +0 -0
  75. package/node_modules/canvas/build/Release/libpango-1.0.so.0 +0 -0
  76. package/node_modules/canvas/build/Release/libpangocairo-1.0.so.0 +0 -0
  77. package/node_modules/canvas/build/Release/libpangoft2-1.0.so.0 +0 -0
  78. package/node_modules/canvas/build/Release/libpcre.so.1 +0 -0
  79. package/node_modules/canvas/build/Release/libpixman-1.so.0 +0 -0
  80. package/node_modules/canvas/build/Release/libpng16.so.16 +0 -0
  81. package/node_modules/canvas/build/Release/librsvg-2.so.2 +0 -0
  82. package/node_modules/canvas/build/Release/libstdc++.so.6 +0 -0
  83. package/node_modules/canvas/build/Release/libxml2.so.2 +0 -0
  84. package/node_modules/canvas/build/Release/libz.so.1 +0 -0
  85. package/node_modules/canvas/build/Release/obj.target/canvas/src/Backends.o +0 -0
  86. package/node_modules/canvas/build/Release/obj.target/canvas/src/Canvas.o +0 -0
  87. package/node_modules/canvas/build/Release/obj.target/canvas/src/CanvasGradient.o +0 -0
  88. package/node_modules/canvas/build/Release/obj.target/canvas/src/CanvasPattern.o +0 -0
  89. package/node_modules/canvas/build/Release/obj.target/canvas/src/CanvasRenderingContext2d.o +0 -0
  90. package/node_modules/canvas/build/Release/obj.target/canvas/src/Image.o +0 -0
  91. package/node_modules/canvas/build/Release/obj.target/canvas/src/ImageData.o +0 -0
  92. package/node_modules/canvas/build/Release/obj.target/canvas/src/backend/Backend.o +0 -0
  93. package/node_modules/canvas/build/Release/obj.target/canvas/src/backend/ImageBackend.o +0 -0
  94. package/node_modules/canvas/build/Release/obj.target/canvas/src/backend/PdfBackend.o +0 -0
  95. package/node_modules/canvas/build/Release/obj.target/canvas/src/backend/SvgBackend.o +0 -0
  96. package/node_modules/canvas/build/Release/obj.target/canvas/src/bmp/BMPParser.o +0 -0
  97. package/node_modules/canvas/build/Release/obj.target/canvas/src/closure.o +0 -0
  98. package/node_modules/canvas/build/Release/obj.target/canvas/src/color.o +0 -0
  99. package/node_modules/canvas/build/Release/obj.target/canvas/src/init.o +0 -0
  100. package/node_modules/canvas/build/Release/obj.target/canvas/src/register_font.o +0 -0
  101. package/node_modules/canvas/build/Release/obj.target/canvas.node +0 -0
  102. package/node_modules/canvas/package.json +43 -86
  103. package/node_modules/chokidar/package.json +40 -74
  104. package/node_modules/chownr/package.json +24 -56
  105. package/node_modules/cli/package.json +23 -70
  106. package/node_modules/cliui/package.json +53 -87
  107. package/node_modules/color/node_modules/color-convert/package.json +26 -60
  108. package/node_modules/color/node_modules/color-name/package.json +18 -45
  109. package/node_modules/color/package.json +26 -57
  110. package/node_modules/color-convert/package.json +25 -59
  111. package/node_modules/color-difference/package.json +26 -52
  112. package/node_modules/color-model/package.json +17 -44
  113. package/node_modules/color-name/package.json +32 -60
  114. package/node_modules/color-string/package.json +26 -67
  115. package/node_modules/color-support/package.json +26 -60
  116. package/node_modules/combined-stream/package.json +19 -52
  117. package/node_modules/component-emitter/package.json +17 -45
  118. package/node_modules/concat-map/package.json +45 -89
  119. package/node_modules/console-control-strings/package.json +22 -55
  120. package/node_modules/convert-source-map/package.json +28 -55
  121. package/node_modules/cookiejar/package.json +16 -44
  122. package/node_modules/core-util-is/package.json +21 -51
  123. package/node_modules/d3/package.json +43 -70
  124. package/node_modules/d3-array/package.json +24 -55
  125. package/node_modules/d3-axis/package.json +27 -54
  126. package/node_modules/d3-brush/package.json +33 -60
  127. package/node_modules/d3-chord/package.json +28 -55
  128. package/node_modules/d3-collection/package.json +25 -54
  129. package/node_modules/d3-color/package.json +28 -58
  130. package/node_modules/d3-contour/package.json +27 -54
  131. package/node_modules/d3-dispatch/package.json +28 -60
  132. package/node_modules/d3-drag/package.json +32 -61
  133. package/node_modules/d3-dsv/node_modules/commander/package.json +25 -56
  134. package/node_modules/d3-dsv/package.json +36 -64
  135. package/node_modules/d3-ease/package.json +28 -56
  136. package/node_modules/d3-fetch/package.json +31 -58
  137. package/node_modules/d3-force/package.json +30 -57
  138. package/node_modules/d3-format/package.json +29 -57
  139. package/node_modules/d3-geo/package.json +35 -62
  140. package/node_modules/d3-hierarchy/package.json +33 -60
  141. package/node_modules/d3-interpolate/package.json +31 -63
  142. package/node_modules/d3-path/package.json +28 -57
  143. package/node_modules/d3-polygon/package.json +28 -55
  144. package/node_modules/d3-quadtree/package.json +29 -57
  145. package/node_modules/d3-random/package.json +26 -53
  146. package/node_modules/d3-scale/package.json +29 -56
  147. package/node_modules/d3-scale-chromatic/package.json +33 -60
  148. package/node_modules/d3-selection/package.json +29 -60
  149. package/node_modules/d3-shape/package.json +32 -59
  150. package/node_modules/d3-time/package.json +28 -57
  151. package/node_modules/d3-time-format/package.json +33 -61
  152. package/node_modules/d3-timer/package.json +28 -57
  153. package/node_modules/d3-transition/package.json +35 -64
  154. package/node_modules/d3-voronoi/package.json +24 -51
  155. package/node_modules/d3-zoom/package.json +34 -61
  156. package/node_modules/debug/package.json +37 -87
  157. package/node_modules/decompress-response/package.json +53 -84
  158. package/node_modules/delayed-stream/package.json +19 -53
  159. package/node_modules/delegates/package.json +11 -45
  160. package/node_modules/detect-libc/package.json +26 -60
  161. package/node_modules/dirname-shim/package.json +26 -60
  162. package/node_modules/dotenv/package.json +37 -64
  163. package/node_modules/duplexer/package.json +18 -49
  164. package/node_modules/emoji-regex/package.json +32 -58
  165. package/node_modules/escalade/package.json +28 -59
  166. package/node_modules/extended-emitter/package.json +37 -65
  167. package/node_modules/fast-safe-stringify/package.json +33 -73
  168. package/node_modules/fill-range/package.json +28 -72
  169. package/node_modules/follow-redirects/package.json +42 -77
  170. package/node_modules/form-data/package.json +42 -74
  171. package/node_modules/formidable/package.json +22 -52
  172. package/node_modules/fs-minipass/package.json +24 -52
  173. package/node_modules/fs-readdir-recursive/package.json +20 -50
  174. package/node_modules/fs.realpath/package.json +21 -53
  175. package/node_modules/fsevents/package.json +38 -63
  176. package/node_modules/ftp-response-parser/node_modules/isarray/package.json +22 -54
  177. package/node_modules/ftp-response-parser/node_modules/readable-stream/package.json +22 -55
  178. package/node_modules/ftp-response-parser/node_modules/string_decoder/package.json +17 -45
  179. package/node_modules/ftp-response-parser/package.json +23 -64
  180. package/node_modules/function-bind/package.json +28 -61
  181. package/node_modules/gauge/package.json +25 -52
  182. package/node_modules/generate-password/package.json +28 -54
  183. package/node_modules/get-caller-file/package.json +27 -53
  184. package/node_modules/get-intrinsic/package.json +91 -124
  185. package/node_modules/glob/package.json +34 -68
  186. package/node_modules/glob-parent/package.json +27 -70
  187. package/node_modules/has/package.json +26 -55
  188. package/node_modules/has-symbols/package.json +104 -133
  189. package/node_modules/has-unicode/package.json +25 -52
  190. package/node_modules/https-proxy-agent/package.json +30 -59
  191. package/node_modules/iconv-lite/package.json +48 -77
  192. package/node_modules/inflight/package.json +20 -48
  193. package/node_modules/inherits/package.json +17 -54
  194. package/node_modules/is-binary-path/package.json +43 -75
  195. package/node_modules/is-extglob/package.json +22 -52
  196. package/node_modules/is-fullwidth-code-point/package.json +45 -79
  197. package/node_modules/is-glob/package.json +26 -68
  198. package/node_modules/is-number/package.json +26 -65
  199. package/node_modules/jsftp/node_modules/debug/package.json +28 -67
  200. package/node_modules/jsftp/package.json +22 -59
  201. package/node_modules/json2csv/node_modules/commander/package.json +25 -56
  202. package/node_modules/json2csv/package.json +37 -64
  203. package/node_modules/jsonparse/package.json +18 -53
  204. package/node_modules/lodash/package.json +15 -61
  205. package/node_modules/lodash.get/package.json +16 -67
  206. package/node_modules/lru-cache/package.json +27 -61
  207. package/node_modules/make-dir/node_modules/semver/package.json +20 -51
  208. package/node_modules/make-dir/package.json +62 -93
  209. package/node_modules/maplex/package.json +22 -54
  210. package/node_modules/methods/package.json +22 -64
  211. package/node_modules/mime/package.json +20 -48
  212. package/node_modules/mime-db/package.json +25 -67
  213. package/node_modules/mime-types/package.json +20 -64
  214. package/node_modules/mimic-response/package.json +45 -76
  215. package/node_modules/minimatch/package.json +25 -61
  216. package/node_modules/minipass/package.json +30 -64
  217. package/node_modules/minizlib/package.json +27 -59
  218. package/node_modules/mkdirp/package.json +27 -57
  219. package/node_modules/ms/package.json +24 -58
  220. package/node_modules/multi-progress/package.json +20 -46
  221. package/node_modules/nan/package.json +27 -87
  222. package/node_modules/node-fetch/package.json +77 -104
  223. package/node_modules/nopt/package.json +22 -54
  224. package/node_modules/normalize-path/package.json +25 -63
  225. package/node_modules/npmlog/package.json +23 -55
  226. package/node_modules/object-assign/package.json +20 -51
  227. package/node_modules/object-inspect/package.json +53 -81
  228. package/node_modules/once/package.json +19 -56
  229. package/node_modules/parse-listing/package.json +27 -56
  230. package/node_modules/path-is-absolute/package.json +16 -47
  231. package/node_modules/picomatch/package.json +28 -60
  232. package/node_modules/progress/package.json +21 -65
  233. package/node_modules/qs/package.json +78 -105
  234. package/node_modules/readdirp/package.json +47 -83
  235. package/node_modules/require-directory/package.json +29 -57
  236. package/node_modules/rimraf/package.json +23 -61
  237. package/node_modules/rw/package.json +19 -46
  238. package/node_modules/safe-buffer/package.json +10 -38
  239. package/node_modules/safer-buffer/package.json +18 -43
  240. package/node_modules/semver/package.json +36 -70
  241. package/node_modules/set-blocking/package.json +29 -56
  242. package/node_modules/side-channel/package.json +70 -98
  243. package/node_modules/sift/package.json +30 -62
  244. package/node_modules/signal-exit/package.json +29 -58
  245. package/node_modules/simple-concat/package.json +22 -46
  246. package/node_modules/simple-get/package.json +9 -33
  247. package/node_modules/simple-swizzle/node_modules/is-arrayish/package.json +28 -59
  248. package/node_modules/simple-swizzle/package.json +23 -57
  249. package/node_modules/strangler/package.json +39 -67
  250. package/node_modules/stream-combiner/package.json +15 -48
  251. package/node_modules/string-tools/package.json +16 -50
  252. package/node_modules/string-width/package.json +59 -97
  253. package/node_modules/string_decoder/package.json +18 -47
  254. package/node_modules/strip-ansi/package.json +57 -94
  255. package/node_modules/superagent/node_modules/form-data/package.json +42 -74
  256. package/node_modules/superagent/node_modules/readable-stream/package.json +32 -60
  257. package/node_modules/superagent/package.json +13 -59
  258. package/node_modules/tar/package.json +27 -59
  259. package/node_modules/through/package.json +17 -50
  260. package/node_modules/to-regex-range/package.json +25 -61
  261. package/node_modules/tr46/package.json +24 -51
  262. package/node_modules/unorm/package.json +34 -75
  263. package/node_modules/util-deprecate/package.json +19 -49
  264. package/node_modules/uuid/package.json +74 -102
  265. package/node_modules/webidl-conversions/package.json +18 -53
  266. package/node_modules/whatwg-url/package.json +15 -49
  267. package/node_modules/wide-align/package.json +21 -53
  268. package/node_modules/wolfy87-eventemitter/package.json +25 -49
  269. package/node_modules/wrap-ansi/package.json +65 -97
  270. package/node_modules/wrappy/package.json +21 -50
  271. package/node_modules/y18n/package.json +43 -73
  272. package/node_modules/yallist/package.json +20 -55
  273. package/node_modules/yargs/package.json +72 -99
  274. package/node_modules/yargs-parser/package.json +52 -83
  275. package/package.json +2 -1
  276. package/src/{commands/agent → clients}/Agent.js +1 -1
  277. package/src/clients/Client.js +96 -0
  278. package/src/clients/Instance.js +76 -0
  279. package/src/{TrialAccount.js → clients/TrialAccount.js} +3 -3
  280. package/src/{commands/webplayer → clients}/Webplayer.js +2 -2
  281. package/src/commands/agent/apps.js +1 -1
  282. package/src/commands/agent/file.js +1 -1
  283. package/src/commands/agent/ready.js +1 -1
  284. package/src/commands/instances/index.js +1 -0
  285. package/src/commands/instances/netmon/disable.js +44 -0
  286. package/src/commands/instances/netmon/download.js +49 -0
  287. package/src/commands/instances/netmon/enable.js +72 -0
  288. package/src/commands/instances/netmon/index.js +15 -0
  289. package/src/commands/instances/netmon/stream.js +48 -0
  290. package/src/commands/instances/restoreBackup.js +1 -1
  291. package/src/commands/instances/rotate.js +1 -1
  292. package/src/commands/instances/start.js +18 -9
  293. package/src/commands/instances/upgrade.js +1 -1
  294. package/src/commands/signup.js +2 -2
  295. package/src/commands/webplayer/create.js +1 -1
  296. package/src/commands/webplayer/destroy.js +1 -1
  297. package/src/commands/webplayer/list.js +1 -1
  298. package/src/commands/webplayer/login.js +1 -1
  299. package/t.log +0 -0
  300. package/node_modules/canvas/build/Release/libX11.6.dylib +0 -0
  301. package/node_modules/canvas/build/Release/libXau.6.dylib +0 -0
  302. package/node_modules/canvas/build/Release/libXdmcp.6.dylib +0 -0
  303. package/node_modules/canvas/build/Release/libXext.6.dylib +0 -0
  304. package/node_modules/canvas/build/Release/libXrender.1.dylib +0 -0
  305. package/node_modules/canvas/build/Release/libcairo-gobject.2.dylib +0 -0
  306. package/node_modules/canvas/build/Release/libcairo.2.dylib +0 -0
  307. package/node_modules/canvas/build/Release/libffi.8.dylib +0 -0
  308. package/node_modules/canvas/build/Release/libfontconfig.1.dylib +0 -0
  309. package/node_modules/canvas/build/Release/libfreetype.6.dylib +0 -0
  310. package/node_modules/canvas/build/Release/libfribidi.0.dylib +0 -0
  311. package/node_modules/canvas/build/Release/libgdk_pixbuf-2.0.0.dylib +0 -0
  312. package/node_modules/canvas/build/Release/libgif.7.2.0.dylib +0 -0
  313. package/node_modules/canvas/build/Release/libgio-2.0.0.dylib +0 -0
  314. package/node_modules/canvas/build/Release/libglib-2.0.0.dylib +0 -0
  315. package/node_modules/canvas/build/Release/libgmodule-2.0.0.dylib +0 -0
  316. package/node_modules/canvas/build/Release/libgobject-2.0.0.dylib +0 -0
  317. package/node_modules/canvas/build/Release/libgraphite2.3.2.1.dylib +0 -0
  318. package/node_modules/canvas/build/Release/libharfbuzz.0.dylib +0 -0
  319. package/node_modules/canvas/build/Release/libintl.8.dylib +0 -0
  320. package/node_modules/canvas/build/Release/libjpeg.9.dylib +0 -0
  321. package/node_modules/canvas/build/Release/libpango-1.0.0.dylib +0 -0
  322. package/node_modules/canvas/build/Release/libpangocairo-1.0.0.dylib +0 -0
  323. package/node_modules/canvas/build/Release/libpangoft2-1.0.0.dylib +0 -0
  324. package/node_modules/canvas/build/Release/libpcre.1.dylib +0 -0
  325. package/node_modules/canvas/build/Release/libpixman-1.0.40.0.dylib +0 -0
  326. package/node_modules/canvas/build/Release/libpng16.16.dylib +0 -0
  327. package/node_modules/canvas/build/Release/libxcb-render.0.0.0.dylib +0 -0
  328. package/node_modules/canvas/build/Release/libxcb-shm.0.0.0.dylib +0 -0
  329. package/node_modules/canvas/build/Release/libxcb.1.1.0.dylib +0 -0
  330. package/src/commands/Client.js +0 -45
  331. package/src/commands/instances/Instance.js +0 -35
@@ -1,41 +1,57 @@
1
1
  {
2
- "_args": [
3
- [
4
- "yargs@17.5.1",
5
- "/Users/haydenbleasel/GitHub/corellium-cli"
2
+ "name": "yargs",
3
+ "version": "17.5.1",
4
+ "description": "yargs the modern, pirate-themed, successor to optimist.",
5
+ "main": "./index.cjs",
6
+ "exports": {
7
+ "./package.json": "./package.json",
8
+ ".": [
9
+ {
10
+ "import": "./index.mjs",
11
+ "require": "./index.cjs"
12
+ },
13
+ "./index.cjs"
14
+ ],
15
+ "./helpers": {
16
+ "import": "./helpers/helpers.mjs",
17
+ "require": "./helpers/index.js"
18
+ },
19
+ "./browser": {
20
+ "import": "./browser.mjs",
21
+ "types": "./browser.d.ts"
22
+ },
23
+ "./yargs": [
24
+ {
25
+ "import": "./yargs.mjs",
26
+ "require": "./yargs"
27
+ },
28
+ "./yargs"
6
29
  ]
7
- ],
8
- "_from": "yargs@17.5.1",
9
- "_id": "yargs@17.5.1",
10
- "_inBundle": false,
11
- "_integrity": "sha512-t6YAJcxDkNX7NFYiVtKvWUz8l+PaKTLiL63mJYWR2GnHq2gjEWISzsLp9wg3aY36dY1j+gfIEL3pIF+XlJJfbA==",
12
- "_location": "/yargs",
13
- "_phantomChildren": {},
14
- "_requested": {
15
- "type": "version",
16
- "registry": true,
17
- "raw": "yargs@17.5.1",
18
- "name": "yargs",
19
- "escapedName": "yargs",
20
- "rawSpec": "17.5.1",
21
- "saveSpec": null,
22
- "fetchSpec": "17.5.1"
23
- },
24
- "_requiredBy": [
25
- "/"
26
- ],
27
- "_resolved": "https://registry.npmjs.org/yargs/-/yargs-17.5.1.tgz",
28
- "_spec": "17.5.1",
29
- "_where": "/Users/haydenbleasel/GitHub/corellium-cli",
30
- "bugs": {
31
- "url": "https://github.com/yargs/yargs/issues"
32
30
  },
31
+ "type": "module",
32
+ "module": "./index.mjs",
33
33
  "contributors": [
34
34
  {
35
35
  "name": "Yargs Contributors",
36
36
  "url": "https://github.com/yargs/yargs/graphs/contributors"
37
37
  }
38
38
  ],
39
+ "files": [
40
+ "browser.mjs",
41
+ "browser.d.ts",
42
+ "index.cjs",
43
+ "helpers/*.js",
44
+ "helpers/*",
45
+ "index.mjs",
46
+ "yargs",
47
+ "yargs.mjs",
48
+ "build",
49
+ "locales",
50
+ "LICENSE",
51
+ "lib/platform-shims/*.mjs",
52
+ "!*.d.ts",
53
+ "!**/*.d.ts"
54
+ ],
39
55
  "dependencies": {
40
56
  "cliui": "^7.0.2",
41
57
  "escalade": "^3.1.1",
@@ -45,7 +61,6 @@
45
61
  "y18n": "^5.0.5",
46
62
  "yargs-parser": "^21.0.0"
47
63
  },
48
- "description": "yargs the modern, pirate-themed, successor to optimist.",
49
64
  "devDependencies": {
50
65
  "@types/chai": "^4.2.11",
51
66
  "@types/mocha": "^9.0.0",
@@ -70,50 +85,27 @@
70
85
  "which": "^2.0.0",
71
86
  "yargs-test-extends": "^1.0.1"
72
87
  },
73
- "engines": {
74
- "node": ">=12"
88
+ "scripts": {
89
+ "fix": "gts fix && npm run fix:js",
90
+ "fix:js": "eslint . --ext cjs --ext mjs --ext js --fix",
91
+ "posttest": "npm run check",
92
+ "test": "c8 mocha --enable-source-maps ./test/*.cjs --require ./test/before.cjs --timeout=12000 --check-leaks",
93
+ "test:esm": "c8 mocha --enable-source-maps ./test/esm/*.mjs --check-leaks",
94
+ "coverage": "c8 report --check-coverage",
95
+ "prepare": "npm run compile",
96
+ "pretest": "npm run compile -- -p tsconfig.test.json && cross-env NODE_ENV=test npm run build:cjs",
97
+ "compile": "rimraf build && tsc",
98
+ "postcompile": "npm run build:cjs",
99
+ "build:cjs": "rollup -c rollup.config.cjs",
100
+ "postbuild:cjs": "rimraf ./build/index.cjs.d.ts",
101
+ "check": "gts lint && npm run check:js",
102
+ "check:js": "eslint . --ext cjs --ext mjs --ext js",
103
+ "clean": "gts clean"
75
104
  },
76
- "exports": {
77
- "./package.json": "./package.json",
78
- ".": [
79
- {
80
- "import": "./index.mjs",
81
- "require": "./index.cjs"
82
- },
83
- "./index.cjs"
84
- ],
85
- "./helpers": {
86
- "import": "./helpers/helpers.mjs",
87
- "require": "./helpers/index.js"
88
- },
89
- "./browser": {
90
- "import": "./browser.mjs",
91
- "types": "./browser.d.ts"
92
- },
93
- "./yargs": [
94
- {
95
- "import": "./yargs.mjs",
96
- "require": "./yargs"
97
- },
98
- "./yargs"
99
- ]
105
+ "repository": {
106
+ "type": "git",
107
+ "url": "https://github.com/yargs/yargs.git"
100
108
  },
101
- "files": [
102
- "browser.mjs",
103
- "browser.d.ts",
104
- "index.cjs",
105
- "helpers/*.js",
106
- "helpers/*",
107
- "index.mjs",
108
- "yargs",
109
- "yargs.mjs",
110
- "build",
111
- "locales",
112
- "LICENSE",
113
- "lib/platform-shims/*.mjs",
114
- "!*.d.ts",
115
- "!**/*.d.ts"
116
- ],
117
109
  "homepage": "https://yargs.js.org/",
118
110
  "keywords": [
119
111
  "argument",
@@ -125,30 +117,11 @@
125
117
  "command"
126
118
  ],
127
119
  "license": "MIT",
128
- "main": "./index.cjs",
129
- "module": "./index.mjs",
130
- "name": "yargs",
131
- "repository": {
132
- "type": "git",
133
- "url": "git+https://github.com/yargs/yargs.git"
134
- },
135
- "scripts": {
136
- "build:cjs": "rollup -c rollup.config.cjs",
137
- "check": "gts lint && npm run check:js",
138
- "check:js": "eslint . --ext cjs --ext mjs --ext js",
139
- "clean": "gts clean",
140
- "compile": "rimraf build && tsc",
141
- "coverage": "c8 report --check-coverage",
142
- "fix": "gts fix && npm run fix:js",
143
- "fix:js": "eslint . --ext cjs --ext mjs --ext js --fix",
144
- "postbuild:cjs": "rimraf ./build/index.cjs.d.ts",
145
- "postcompile": "npm run build:cjs",
146
- "posttest": "npm run check",
147
- "prepare": "npm run compile",
148
- "pretest": "npm run compile -- -p tsconfig.test.json && cross-env NODE_ENV=test npm run build:cjs",
149
- "test": "c8 mocha --enable-source-maps ./test/*.cjs --require ./test/before.cjs --timeout=12000 --check-leaks",
150
- "test:esm": "c8 mocha --enable-source-maps ./test/esm/*.mjs --check-leaks"
151
- },
152
- "type": "module",
153
- "version": "17.5.1"
154
- }
120
+ "engines": {
121
+ "node": ">=12"
122
+ }
123
+
124
+ ,"_resolved": "https://registry.npmjs.org/yargs/-/yargs-17.5.1.tgz"
125
+ ,"_integrity": "sha512-t6YAJcxDkNX7NFYiVtKvWUz8l+PaKTLiL63mJYWR2GnHq2gjEWISzsLp9wg3aY36dY1j+gfIEL3pIF+XlJJfbA=="
126
+ ,"_from": "yargs@17.5.1"
127
+ }
@@ -1,40 +1,52 @@
1
1
  {
2
- "_args": [
3
- [
4
- "yargs-parser@21.0.1",
5
- "/Users/haydenbleasel/GitHub/corellium-cli"
2
+ "name": "yargs-parser",
3
+ "version": "21.0.1",
4
+ "description": "the mighty option parser used by yargs",
5
+ "main": "build/index.cjs",
6
+ "exports": {
7
+ ".": [
8
+ {
9
+ "import": "./build/lib/index.js",
10
+ "require": "./build/index.cjs"
11
+ },
12
+ "./build/index.cjs"
6
13
  ]
7
- ],
8
- "_from": "yargs-parser@21.0.1",
9
- "_id": "yargs-parser@21.0.1",
10
- "_inBundle": false,
11
- "_integrity": "sha512-9BK1jFpLzJROCI5TzwZL/TU4gqjK5xiHV/RfWLOahrjAko/e4DJkRDZQXfvqAsiZzzYhgAzbgz6lg48jcm4GLg==",
12
- "_location": "/yargs-parser",
13
- "_phantomChildren": {},
14
- "_requested": {
15
- "type": "version",
16
- "registry": true,
17
- "raw": "yargs-parser@21.0.1",
18
- "name": "yargs-parser",
19
- "escapedName": "yargs-parser",
20
- "rawSpec": "21.0.1",
21
- "saveSpec": null,
22
- "fetchSpec": "21.0.1"
23
14
  },
24
- "_requiredBy": [
25
- "/yargs"
26
- ],
27
- "_resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.0.1.tgz",
28
- "_spec": "21.0.1",
29
- "_where": "/Users/haydenbleasel/GitHub/corellium-cli",
30
- "author": {
31
- "name": "Ben Coe",
32
- "email": "ben@npmjs.com"
15
+ "type": "module",
16
+ "module": "./build/lib/index.js",
17
+ "scripts": {
18
+ "check": "standardx '**/*.ts' && standardx '**/*.js' && standardx '**/*.cjs'",
19
+ "fix": "standardx --fix '**/*.ts' && standardx --fix '**/*.js' && standardx --fix '**/*.cjs'",
20
+ "pretest": "rimraf build && tsc -p tsconfig.test.json && cross-env NODE_ENV=test npm run build:cjs",
21
+ "test": "c8 --reporter=text --reporter=html mocha test/*.cjs",
22
+ "test:esm": "c8 --reporter=text --reporter=html mocha test/*.mjs",
23
+ "test:browser": "start-server-and-test 'serve ./ -p 8080' http://127.0.0.1:8080/package.json 'node ./test/browser/yargs-test.cjs'",
24
+ "pretest:typescript": "npm run pretest",
25
+ "test:typescript": "c8 mocha ./build/test/typescript/*.js",
26
+ "coverage": "c8 report --check-coverage",
27
+ "precompile": "rimraf build",
28
+ "compile": "tsc",
29
+ "postcompile": "npm run build:cjs",
30
+ "build:cjs": "rollup -c",
31
+ "prepare": "npm run compile"
33
32
  },
34
- "bugs": {
35
- "url": "https://github.com/yargs/yargs-parser/issues"
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "https://github.com/yargs/yargs-parser.git"
36
36
  },
37
- "description": "the mighty option parser used by yargs",
37
+ "keywords": [
38
+ "argument",
39
+ "parser",
40
+ "yargs",
41
+ "command",
42
+ "cli",
43
+ "parsing",
44
+ "option",
45
+ "args",
46
+ "argument"
47
+ ],
48
+ "author": "Ben Coe <ben@npmjs.com>",
49
+ "license": "ISC",
38
50
  "devDependencies": {
39
51
  "@types/chai": "^4.2.11",
40
52
  "@types/mocha": "^9.0.0",
@@ -60,64 +72,21 @@
60
72
  "ts-transform-default-export": "^1.0.2",
61
73
  "typescript": "^4.0.0"
62
74
  },
63
- "engines": {
64
- "node": ">=12"
65
- },
66
- "exports": {
67
- ".": [
68
- {
69
- "import": "./build/lib/index.js",
70
- "require": "./build/index.cjs"
71
- },
72
- "./build/index.cjs"
73
- ]
74
- },
75
75
  "files": [
76
76
  "browser.js",
77
77
  "build",
78
78
  "!*.d.ts"
79
79
  ],
80
- "homepage": "https://github.com/yargs/yargs-parser#readme",
81
- "keywords": [
82
- "argument",
83
- "parser",
84
- "yargs",
85
- "command",
86
- "cli",
87
- "parsing",
88
- "option",
89
- "args",
90
- "argument"
91
- ],
92
- "license": "ISC",
93
- "main": "build/index.cjs",
94
- "module": "./build/lib/index.js",
95
- "name": "yargs-parser",
96
- "repository": {
97
- "type": "git",
98
- "url": "git+https://github.com/yargs/yargs-parser.git"
99
- },
100
- "scripts": {
101
- "build:cjs": "rollup -c",
102
- "check": "standardx '**/*.ts' && standardx '**/*.js' && standardx '**/*.cjs'",
103
- "compile": "tsc",
104
- "coverage": "c8 report --check-coverage",
105
- "fix": "standardx --fix '**/*.ts' && standardx --fix '**/*.js' && standardx --fix '**/*.cjs'",
106
- "postcompile": "npm run build:cjs",
107
- "precompile": "rimraf build",
108
- "prepare": "npm run compile",
109
- "pretest": "rimraf build && tsc -p tsconfig.test.json && cross-env NODE_ENV=test npm run build:cjs",
110
- "pretest:typescript": "npm run pretest",
111
- "test": "c8 --reporter=text --reporter=html mocha test/*.cjs",
112
- "test:browser": "start-server-and-test 'serve ./ -p 8080' http://127.0.0.1:8080/package.json 'node ./test/browser/yargs-test.cjs'",
113
- "test:esm": "c8 --reporter=text --reporter=html mocha test/*.mjs",
114
- "test:typescript": "c8 mocha ./build/test/typescript/*.js"
80
+ "engines": {
81
+ "node": ">=12"
115
82
  },
116
83
  "standardx": {
117
84
  "ignore": [
118
85
  "build"
119
86
  ]
120
- },
121
- "type": "module",
122
- "version": "21.0.1"
123
- }
87
+ }
88
+
89
+ ,"_resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.0.1.tgz"
90
+ ,"_integrity": "sha512-9BK1jFpLzJROCI5TzwZL/TU4gqjK5xiHV/RfWLOahrjAko/e4DJkRDZQXfvqAsiZzzYhgAzbgz6lg48jcm4GLg=="
91
+ ,"_from": "yargs-parser@21.0.1"
92
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corellium/corellium-cli",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Corellium CLI Tool",
5
5
  "scripts": {
6
6
  "corellium": "node index.js",
@@ -33,6 +33,7 @@
33
33
  "progress": "^2.0.3",
34
34
  "prompts": "^2.4.2",
35
35
  "uuid": "^8.3.2",
36
+ "websocket-stream": "^5.5.2",
36
37
  "xhr2": "^0.2.0",
37
38
  "yargs": "^17.5.1"
38
39
  },
@@ -1,4 +1,4 @@
1
- const Client = require('../Client')
1
+ const Client = require('./Client')
2
2
 
3
3
  /**
4
4
  * @typedef {object} AppsResult
@@ -0,0 +1,96 @@
1
+ const axios = require('axios').default
2
+ const { readProfile } = require('../profile')
3
+ const { createWriteStream } = require('fs')
4
+ const wsstream = require('websocket-stream')
5
+
6
+ /**
7
+ * Client Base class
8
+ */
9
+ class Client {
10
+ constructor (argv) {
11
+ this.argv = Object.assign({}, argv)
12
+ this.project = argv.project || argv.projectId
13
+ this.instance = argv.instance || argv.instanceId
14
+ this._profile = readProfile()
15
+ this._version = require('../../package.json').version
16
+ }
17
+
18
+ /**
19
+ * @protected
20
+ * @returns default headers
21
+ */
22
+ _headers = () => ({
23
+ Authorization: `Bearer ${this._profile.token}`,
24
+ 'User-Agent': `corellium-cli v${this._version}`
25
+ })
26
+
27
+ /**
28
+ * Retrieve file stream
29
+ * @protected
30
+ * @param {string} path
31
+ * @param {PathLike} outputFile
32
+ * @returns {Promise<any>}
33
+ */
34
+ _fetchStream = async (path, outputFile) => {
35
+ const response = await axios({
36
+ method: 'GET',
37
+ url: `${this._profile.endpoint}/api/${path}`,
38
+ headers: this._headers(),
39
+ responseType: 'stream'
40
+ })
41
+
42
+ const writeStream = createWriteStream(outputFile)
43
+ response.data.pipe(writeStream)
44
+
45
+ return new Promise((resolve, reject) => {
46
+ writeStream.on('finish', resolve)
47
+ writeStream.on('error', reject)
48
+ })
49
+ }
50
+
51
+ /**
52
+ * Get Websocket stream
53
+ * @protected
54
+ * @param {string} token
55
+ * @returns {wsstream.WebSocketDuplex}
56
+ */
57
+ _fetchWSS = (token) => {
58
+ /** @type {string} */
59
+ const endpoint = this._profile.endpoint
60
+ const match = endpoint.match(/^https?:\/\/([^/]+)$/)
61
+ if (!match) {
62
+ throw new Error('Unable to extract hostname from endpoint')
63
+ }
64
+ const host = match[1]
65
+ const url = `wss://${host}/api/v1/agent/${token}`
66
+ return wsstream(url, ['binary'])
67
+ }
68
+
69
+ /**
70
+ * Perform HTTP transaction
71
+ * @protected
72
+ * @param {string} method
73
+ * @param {string} path
74
+ * @param {object} data
75
+ * @returns {Promise<any>}
76
+ */
77
+ _fetch = async (method, path, data) => {
78
+ const headers = this._headers()
79
+ let response
80
+ switch (method) {
81
+ case 'GET':
82
+ response = await axios.get(`${this._profile.endpoint}/api/${path}`, { headers })
83
+ break
84
+ case 'POST':
85
+ response = await axios.post(`${this._profile.endpoint}/api/${path}`, data, { headers })
86
+ break
87
+ case 'DELETE':
88
+ response = await axios.delete(`${this._profile.endpoint}/api/${path}`, { headers })
89
+ break
90
+ }
91
+ if (response.status >= 400) { throw new Error(response.statusText) }
92
+ return response.data || {}
93
+ }
94
+ }
95
+
96
+ module.exports = Client
@@ -0,0 +1,76 @@
1
+ const Client = require('./Client')
2
+
3
+ /**
4
+ * Instance class
5
+ */
6
+ class InstanceCLI extends Client {
7
+ instanceBasePath = () => `v1/instances/${this.instance}`
8
+ preauthedBasePath = () => 'v1/preauthed'
9
+
10
+ /**
11
+ * Upgrade iOS version on instance
12
+ * @returns {Promise<any>}
13
+ */
14
+ upgrade = async (options) => {
15
+ const { os, osbuild } = options
16
+ return await this._fetch('POST', `${this.instanceBasePath()}/upgrade`, { os, osbuild })
17
+ }
18
+
19
+ /**
20
+ * Get websocket stream from token
21
+ * @returns {wsstream.WebSocketDuplex}
22
+ */
23
+ wss = (token) => {
24
+ return this._fetchWSS(token)
25
+ }
26
+
27
+ /**
28
+ * Start instance
29
+ */
30
+ start = async (options) => {
31
+ const { sockcap, paused } = options
32
+ return await this._fetch('POST', `${this.instanceBasePath()}/start`, { sockcap, paused })
33
+ }
34
+
35
+ /**
36
+ * Restore backup to instance
37
+ * @returns {Promise<any>}
38
+ */
39
+ restoreBackup = async () => {
40
+ return await this._fetch('POST', `${this.instanceBasePath()}/restoreBackup`)
41
+ }
42
+
43
+ /**
44
+ * Enable monitoring
45
+ * @returns {Promise<any>}
46
+ */
47
+ enableMonitoring = async (options) => {
48
+ return await this._fetch('POST', `${this.instanceBasePath()}/netdump/enable`, options)
49
+ }
50
+
51
+ /**
52
+ * Disable monitoring
53
+ * @returns {Promise<any>}
54
+ */
55
+ disableMonitoring = async () => {
56
+ return await this._fetch('POST', `${this.instanceBasePath()}/netdump/disable`)
57
+ }
58
+
59
+ /**
60
+ * Download file
61
+ * @returns {Promise<any>}
62
+ */
63
+ download = async (file, outputFile) => {
64
+ return await this._fetchStream(`${this.instanceBasePath()}/${file}`, outputFile)
65
+ }
66
+
67
+ /**
68
+ * Fetch instance information
69
+ * @returns {Promise<any>}
70
+ */
71
+ info = async () => {
72
+ return await this._fetch('GET', `${this.instanceBasePath()}`, {})
73
+ }
74
+ }
75
+
76
+ module.exports = InstanceCLI
@@ -1,6 +1,6 @@
1
- const Client = require('./commands/Client')
2
- const util = require('./utils')
3
- const { handler: login } = require('./commands/login')
1
+ const Client = require('./Client')
2
+ const util = require('../utils')
3
+ const { handler: login } = require('../commands/login')
4
4
 
5
5
  class TrialAccount extends Client {
6
6
  constructor (argv) {
@@ -1,7 +1,7 @@
1
- const Client = require('../Client')
1
+ const Client = require('./Client')
2
2
  const {
3
3
  updateProfile
4
- } = require('../../profile')
4
+ } = require('../profile')
5
5
 
6
6
  /**
7
7
  * Webplayer class
@@ -1,4 +1,4 @@
1
- const AgentCLI = require('./Agent')
1
+ const AgentCLI = require('../../clients/Agent')
2
2
  const { displayTable } = require('../../table')
3
3
  const { validateNonEmpty } = require('../../utils')
4
4
  const { getErrorMessage } = require('../../error')
@@ -1,4 +1,4 @@
1
- const AgentCLI = require('./Agent')
1
+ const AgentCLI = require('../../clients/Agent')
2
2
  const { displayTable } = require('../../table')
3
3
  const { validateNonEmpty } = require('../../utils')
4
4
  const { getErrorMessage } = require('../../error')
@@ -1,4 +1,4 @@
1
- const AgentCLI = require('./Agent')
1
+ const AgentCLI = require('../../clients/Agent')
2
2
  const { validateNonEmpty } = require('../../utils')
3
3
  const { getErrorMessage } = require('../../error')
4
4
  const log = require('../../logging')
@@ -5,6 +5,7 @@ const subcommands = [
5
5
  require('./stop'),
6
6
  require('./start'),
7
7
  require('./upgrade'),
8
+ require('./netmon'),
8
9
  require('./restoreBackup')
9
10
  ]
10
11
 
@@ -0,0 +1,44 @@
1
+ const log = require('../../../logging')
2
+ const InstanceCLI = require('../../../clients/Instance')
3
+
4
+ async function builder (yargs) {
5
+ yargs
6
+ .positional('instanceId', {
7
+ type: 'string',
8
+ describe: 'Instance id',
9
+ demandOption: true
10
+ })
11
+ .option('verbose', {
12
+ alias: 'v',
13
+ type: 'boolean',
14
+ describe: 'Console will receive verbose error output',
15
+ demandOption: false
16
+ })
17
+ }
18
+
19
+ async function handler (argv) {
20
+ try {
21
+ const instance = new InstanceCLI(argv)
22
+ await instance.disableMonitoring()
23
+ log.info('Success')
24
+ } catch (e) {
25
+ if (e.response) {
26
+ log.error(`${e.response.status} ${e.response.data.error || e.response.statusText}`)
27
+ } else {
28
+ if (e.message) {
29
+ log.error(e.message)
30
+ } else {
31
+ log.error('Urecognized error, use --verbose for details')
32
+ }
33
+ }
34
+
35
+ if (argv.verbose) { log.error(JSON.stringify(e)) }
36
+ }
37
+ }
38
+
39
+ module.exports = {
40
+ builder,
41
+ handler,
42
+ command: 'disable <instanceId> [--verbose]',
43
+ describe: 'Disable network monitoring'
44
+ }