Commit Graph

25 Commits

Author SHA1 Message Date
Jeffrey Martin aaddc9d8a5 don't rely on side-effects in db util function 2019-12-17 14:11:58 -06:00
James Barnett b98133cded Dont assign unique file name when theres no file on disk 2019-01-25 16:36:17 -06:00
James Barnett 27a0cbfcab Rename file on disk when updating path attribute 2019-01-25 13:34:14 -06:00
James Barnett 4b87d54430 Add comment explaining why we prevent loot.data update 2019-01-16 15:29:27 -06:00
James Barnett fd6527bac8 Prepend loot filenames with unique string
This should help prevent accidentally overwriting files with the same name
2019-01-16 15:20:41 -06:00
James Barnett d6462fed63 Dont allow users to update loot.data 2019-01-16 10:01:22 -06:00
Erin Bleiweiss 0435d7e1d6 Return the updated objects 2019-01-10 11:04:42 -06:00
Erin Bleiweiss 771469f4cd Update all Mdm::xx.update() instances 2019-01-07 16:24:13 -06:00
James Barnett 2ef639f99e opts[:id] could sometimes be an integer, so cast to string 2018-07-31 10:58:01 -05:00
James Barnett 4da27d2bff Enable GET for /endpoint/ID for each model 2018-07-18 15:18:22 -05:00
Matthew Kienow 4ecc1ff551 Modify loots, notes and services search methods
Modify loots and services method signatures. Remove workspace as a
positional argument, move into opts hash argument and update callers.
Made host search for these models more uniform. Update find_or_create
methods to handle difference in opts between find and report
operations.
2018-05-21 17:37:51 -04:00
James Barnett 90542779ff Audit models to ensure :workspace is passed only when needed 2018-04-09 14:50:37 -05:00
James Barnett 466c97f114 WIP: move tracking active workspace to client side
* Move the @current_workspace tracking to workspace proxy
* Create helper for handling workspace value in opts
* Call framework.db.proxy across dbmanager files now that active ws is tracked in proxy

NOTE: This commit throws an exception when adding a remote data service.
2018-03-22 21:00:06 -05:00
James Barnett e480b7dd2c Only do regex search if search_term is passed 2018-03-12 17:14:44 -05:00
James Barnett f12405191e Fix a few bugs and PR comments 2018-02-08 15:10:44 -06:00
James Barnett 542e8a3538 Remove unneeded workspace 2018-02-07 19:51:23 -06:00
James Barnett 5b35662dbf Address PR comments 2018-02-07 14:21:31 -06:00
James Barnett 6e2503bbd8 Add loot update 2018-02-06 16:16:22 -06:00
James Barnett c72c41e7f3 Move loot search to db_manager 2018-02-05 16:43:02 -06:00
James Barnett f52cf28e56 cmd_loot now queries on loot directly 2018-02-02 14:07:58 -06:00
James Barnett 5505996518 Add loot delete 2018-01-24 16:42:16 -06:00
James Barnett f88840e5b7 Move normaliize_host to a library method
This method was in Msf::DbManager class but doesn't actually use the DB.
This required you to have a DB connection just to do the check.
Moved it out to a helper library so we have access to it without forcing
a DB connection.
2017-09-28 16:59:44 -05:00
James Barnett 0b29408aa2 Allow filtering of loot 2017-09-26 13:48:01 -05:00
James Barnett 812ad9f9cb loot printing (maybe) working 2017-09-21 15:20:49 -05:00
Luke Imhoff 0bc71ecd24 Extract Msf::DBManager::Loot
MSP-11124
2014-10-09 15:15:40 -05:00