Guest User

Untitled

a guest
Apr 21st, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. var fuckingArray = [];
  2.  
  3. var callback = function(error, results) {
  4. if (error != null) {
  5. console.log("Error in host listing: " + error.err);
  6. console.log(error.trace);
  7. return;
  8. }
  9.  
  10. if (!results) {
  11. result.end();
  12. return;
  13. }
  14.  
  15. for(res in results)
  16. {
  17. fuckingArray.push(res);
  18. console.log(res);
  19. }
  20. }
  21.  
  22. mandiant.db.collection("hosts").find({}).toArray(callback);
  23.  
  24. console.log(fuckingArray);
Add Comment
Please, Sign In to add comment