Commit Graph

16492 Commits

Author SHA1 Message Date
Erin Bleiweiss 35e767e2dd Prevent payload creation with duplicate uuids 2018-09-18 16:49:06 -05:00
Erin Bleiweiss 7e6c3261b6 Update payload count method 2018-09-18 16:36:11 -05:00
Erin Bleiweiss 54e0c25d33 Add api support for deleting payload by ID 2018-09-18 16:16:10 -05:00
Erin Bleiweiss efe98dbcfb Add api support for updating payload by ID 2018-09-18 16:03:21 -05:00
Erin Bleiweiss 9b5326994f Add remote data endpoint support for searching payloads 2018-09-18 15:50:55 -05:00
Green-m 85c40a122a Fix crash issue when auto complete the session option. 2018-09-18 18:49:56 +08:00
Green-m d24eb2dbac Add a comment 2018-09-18 15:58:09 +08:00
Green-m 862a8c921c Fix issue when kill a job with non-integer jobid 2018-09-18 15:50:00 +08:00
Green-m d4cdaf56ae Fix issue when kill a non-existent job. 2018-09-18 15:48:30 +08:00
h00die a462a84b61 Land #10653 additional gcc paths for solaris libs 2018-09-17 18:23:21 -04:00
Brent Cook 86f5b25d8f Land #10563, Add 'Notes' metadata section 2018-09-17 11:18:08 -05:00
Kent 'picat' Gruber 781d808056 use tr insteas of gsub 2018-09-17 09:54:07 -04:00
Kent 'picat' Gruber c3ca1a6cb8 use tr instead of gsub 2018-09-17 09:53:59 -04:00
Kent 'picat' Gruber c97a2ce626 use delete! insteas of gsub 2018-09-17 09:50:21 -04:00
Kent 'picat' Gruber bcf78e6067 use tr instead of gsub 2018-09-17 09:45:52 -04:00
Kent 'picat' Gruber 31a2afb586 use max instead of sort[-1] 2018-09-17 09:45:20 -04:00
Tim W b10671a331 Fix #10601, add api key for android wlan_geolocate 2018-09-17 06:04:11 +08:00
Brendan Coles 28f23a842a Update gcc path for Solaris 2018-09-16 17:22:38 +00:00
Brendan Coles b76849d64e Update gcc path for Solaris 2018-09-16 07:39:07 +00:00
William Vu bcb7348648 Land #10645, writable? method for Msf::Post::File 2018-09-15 17:27:42 -05:00
Brendan Coles ea47b6de04 Add writable? method to Msf::Post::File - Fix #10644 2018-09-15 06:29:24 +00:00
Brendan Coles d49d7a1214 Land #10638, Warn when listing inactive sessions without DB connection
Replaces confusing message and stack trace with a warning message,
when the `sessions -d` command is used to list inactive sessions
when no database is connected.
2018-09-15 05:36:37 +00:00
Erin Bleiweiss 6fae6065d6 Upcase all the things 2018-09-14 16:05:43 -05:00
Erin Bleiweiss e590b7c01f Consolidate notes reference in erb templates 2018-09-14 12:08:22 -05:00
Erin Bleiweiss 184d1d5954 Leave notes type as a plain hash 2018-09-14 11:17:37 -05:00
Erin Bleiweiss c8f48d4272 Add stubs for remote data payload 2018-09-14 10:21:24 -05:00
Kent 'picat' Gruber c71078a381 use max instead of sort_by { |p| p.size }.last
`sort_by { |p| p.size }.last` is less readable compared to just using the `max` method

I believe this does basicall the exact same thing, ontop of being much faster in my micro benchmark.

The old method was, something like, 8 times slower.
2018-09-14 11:19:16 -04:00
Kent 'picat' Gruber 2dcfdcbdc4 remove redundant hash merge
https://github.com/JuanitoFatas/fast-ruby#hashmerge-vs-hash-code
2018-09-14 11:04:39 -04:00
Kent 'picat' Gruber ed338bbeec use tr instead of gsub
https://github.com/rails/rails/pull/17257

https://github.com/JuanitoFatas/fast-ruby#stringgsub-vs-stringtr-code
2018-09-14 10:51:51 -04:00
William Vu 4a759fd048 Refactor cmd_shell and add cmd_shell_{help,tabs} 2018-09-13 19:44:24 -05:00
William Vu cfbd259e80 Merge remote-tracking branch 'upstream/master' into pr/10389 2018-09-13 16:08:07 -05:00
Adam Cammack 7c6c621a8f Remember to assign self.prompt in shell.rb
Not everything updates the prompt all the time, make them feel welcome.
2018-09-13 15:51:07 -05:00
Matthew Kienow c2230f98d5 Warn user about inactive sessions without DB 2018-09-13 15:13:41 -04:00
Matthew Kienow 6a6d92abc1 Check DB is active before querying sessions 2018-09-13 15:06:53 -04:00
William Vu b3e9856851 Revert doc changes to exploit.rb autofilter
I think the changes might have been accidental.

3cf4329335
2018-09-13 13:27:52 -05:00
Erin Bleiweiss 7994564f25 Add db manager method to delete payload 2018-09-13 12:48:17 -05:00
Erin Bleiweiss f6f3ef1194 Remove uuid_db declarations 2018-09-13 12:30:59 -05:00
Erin Bleiweiss 8f4e17c277 Replace uuid methods for payload count and url validation 2018-09-13 12:28:04 -05:00
h00die 8025a49c44 Land #10633 fix for solaris pidof for more versions 2018-09-13 13:10:28 -04:00
Erin Bleiweiss 89b68df9d8 Use db manager in create_session 2018-09-13 11:49:20 -05:00
Adam Cammack 175dec7ade Print help when repeat is run with no commands 2018-09-13 11:27:05 -05:00
Adam Cammack 04cc7843a4 Typo fixes 2018-09-13 11:19:13 -05:00
Brendan Coles 53a326c743 Cleanup is_root? method for Linux::Priv / Solaris::Priv 2018-09-13 08:54:31 +00:00
Brendan Coles bba818a323 Fix Msf::Post::Solaris::System pidof method 2018-09-13 08:29:56 +00:00
William Vu 68a51da27b Land #10477, console prompt fixes and refactor 2018-09-12 18:00:48 -05:00
OJ 84e87b10af Update warning message when loading mimikatz on new OSes 2018-09-13 08:31:08 +10:00
William Vu b70960bddb Land #10619, mimikatz/kiwi warning per OS version 2018-09-12 17:11:11 -05:00
Tim W 5c65f23847 add chmod tab completion 2018-09-12 19:04:51 +08:00
Adam Cammack d017f420bf Fix missing exception capture 2018-09-11 17:58:41 -05:00
OJ e2c6748759 Replace 'and' with '&&' 2018-09-12 08:27:27 +10:00