William Vu
a38080528b
Land #10684 , stray quote fix for writable? raise
2018-09-20 22:55:11 -05:00
William Vu
3bc0a821d5
Prefer ye olde TeX-style quotes
...
This was @bcoles' initial commit. I agree. Looks good with the raise.
2018-09-20 22:54:17 -05:00
William Vu
fdbb085f0b
Fix NameError in cmd_shell due to renamed variable
...
I missed this while refactoring. I didn't use the var after all. :'(
2018-09-20 22:27:28 -05:00
William Vu
95e2c388c4
Remove stray quote from raise in writable? method
...
Didn't break the string but looked funny.
2018-09-20 22:19:18 -05:00
bwatters-r7
768e3b4971
Land #10575 , add meterpreter chmod command
...
Merge branch 'land-10575' into upstream-master
2018-09-20 16:05:30 -05:00
William Vu
185931ca91
Land #10625 , repeat command to repeat commands
2018-09-20 15:24:03 -05:00
William Vu
6f72a0516f
Fix remaining typos
2018-09-20 15:23:15 -05:00
Adam Cammack
dbb75fd2af
Land #10659 , Minor code cleanups
2018-09-19 14:55:47 -05:00
Kent 'picat' Gruber
f4b7584b6c
use max_by &:size instead of max
...
this should fix the issue in the PR
2018-09-19 10:26:21 -04:00
William Vu
c7ee3bdf45
Land #10666 , compatible_sessions NoMethodError fix
2018-09-19 03:44:04 -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
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
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
h00die
8025a49c44
Land #10633 fix for solaris pidof for more versions
2018-09-13 13:10:28 -04: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
Adam Cammack
8fa71ade44
Add `repeat` command to loop msfconsole commands
2018-09-11 17:25:33 -05:00