Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var fuckingArray = [];
- var callback = function(error, results) {
- if (error != null) {
- console.log("Error in host listing: " + error.err);
- console.log(error.trace);
- return;
- }
- if (!results) {
- result.end();
- return;
- }
- for(res in results)
- {
- fuckingArray.push(res);
- console.log(res);
- }
- }
- mandiant.db.collection("hosts").find({}).toArray(callback);
- console.log(fuckingArray);
Add Comment
Please, Sign In to add comment