Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

autopsy

Package Overview
Dependencies
Maintainers
3
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autopsy - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

lib/assets-uri.js

2

bin/download.js
var download = require('../lib/download')
var assets = 'https://s3-us-west-2.amazonaws.com/autopsy-assets/assets.tar.gz'
var assets = require('../lib/assets-uri')
download(assets)

@@ -42,3 +42,3 @@ #!/usr/bin/env node

ready.now = true
mdb.stdin.write('::load v8\n')
mdb.stdin.write('::load /mdb/mdb_v8.so\n')
}

@@ -45,0 +45,0 @@

@@ -6,3 +6,3 @@ #!/usr/bin/env node

var download = require('../lib/download')
var assets = require('../lib/assets-uri')
console.time('SETUP TIME')

@@ -24,3 +24,2 @@ console.log('SETUP: Setting up smartos vm')

var assets = 'https://s3-us-west-2.amazonaws.com/autopsy-assets/assets.tar.gz'

@@ -27,0 +26,0 @@

@@ -53,3 +53,3 @@ var path = require('path')

'Downloading assets: '
+ (+p.percentage).toPrecision(3)
+ (+p.percentage === 100 ? p.percentage : (+p.percentage).toFixed(2))
+ '% \n')

@@ -56,0 +56,0 @@

{
"name": "autopsy",
"version": "0.0.1",
"version": "0.0.2",
"description": "dissect dead node service core dumps with mdb via a smart os vm",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -74,6 +74,6 @@ # Autopsy

If postinstall setup is interupted for any reason (including network failure
during assets download), you can try again with
during assets download), try again with
```sh
npm run setup
autopsy-setup
```

@@ -164,2 +164,6 @@

## todo
* get up arrow (for history) working
## Future

@@ -176,2 +180,42 @@

## mdb_v8 upgrade notes
The latest smartos comes with an old version of mdb_v8, as of autopsy 0.0.2 the vm runs mdb_v8 1.2.2 (latest at time of writing)
To upgrade the v8 version (without waiting for an autopsy release) we can perform the following steps
1. login to the vm `ssh -p 2222 root@localhost` pw: mdb
2. login to the zone `zlogin 7f3ba160-047c-4557-9e87-8157db23f205`
3. `mkdir /mdb && cd /mdb`
4. `pkgin install gcc49-4.9.1 gmake-4.0 git`
5. `git clone https://github.com/joyent/mdb_v8`
6. `cd mdb_v8 && make`
7. `cp mdb_v8/builds/amd64/mdb_v8.so .`
At this point we have successfully upgraded to latest mdb_v8, however
we have a lot of extra dev packages installed in the vm making it much
less lean. So, we may want to copy the `mdb_v8.so` file from the vm, like so:
```sh
scp -P 2222 root@localhost:/zones/7f3ba160-047c-4557-9e87-8157db23f205/root/mdb/mdb_v8.so .
```
Then recreate the vm (follow removing the vm below, then `npm run setup`) and copy the file back in (this is what we do for releases).
```sh
scp -P 2222 mdb_v8.so root@localhost:/zones/7f3ba160-047c-4557-9e87-8157db23f205/root/mdb
```
## removing the vm
Currently there's no command for removing the vm, follow these steps, in order
1. open virtual box, right click the vm, click remove - then click "delete all files"
2. rm the `assets` folder from the autopsy module folder `rm $(npm get prefix)/lib/node_modules/autopsy/assets`
3. make sure there isn't a smartos folder left in the virtual box virtual machines folder (`~/VirtualBox\ VMs`)
[mdb reference docs]: https://github.com/joyent/mdb_v8/blob/master/docs/usage.md#node-specific-mdb-command-reference
[assets.zip]: https://drive.google.com/file/d/0B7fVI2pg3JazU1RwZFhTN3hwV0E/view?usp=sharing
## Other

@@ -190,6 +234,2 @@

to locate the the iso and vmdk files). In this case you would need to
manually update virtual box with the paths.
[mdb reference docs]: https://github.com/joyent/mdb_v8/blob/master/docs/usage.md#node-specific-mdb-command-reference
[assets.zip]: https://drive.google.com/file/d/0B7fVI2pg3JazU1RwZFhTN3hwV0E/view?usp=sharing
manually update virtual box with the paths.

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc