h00die
6a851855a8
spelling fixes for lib folder
2024-01-06 15:54:49 -05:00
Spencer McIntyre
d1f5fa06cf
Don't use File in cmd_upload / cmd_download
...
It does not look like shell sessions define their own File class,
meaning that the local-platform specific one is always used. Instead
we'll define the separator ourselves since it's all we need to perform
the basic operations necessary to analyze the path string.
2022-12-15 10:05:02 -05:00
Spencer McIntyre
34451940c7
Fix uploading from shell sessions
2022-12-12 12:02:33 -05:00
Spencer McIntyre
a9cdb77a72
Use consistent casing and fix typos
2022-12-12 10:30:50 -05:00
Spencer McIntyre
82a22ad38c
Skip empty stat buffers
...
This skips empty stat buffers, allowing Meterpreter to return empty ones
for entries that can not be stat'ed and thus maintain the array
alignment.
2021-12-09 13:43:00 -05:00
Spencer McIntyre
d94d2ff13c
Fix unpacking 64-bit stat buffers from Meterpreter
2021-12-07 16:08:38 -05:00
Ashley Donaldson
81338225f0
Respect path expansion when performing path-based tab completion
2021-11-18 14:50:22 +11:00
Grant Willcox
e65b10c57c
Land #15862 , Expand environment variables on Linux Meterpreter
2021-11-15 14:15:41 -06:00
Grant Willcox
e6f38b3226
Rename dir parameter in Dir.match to match_dir to make more sense with new changes
2021-11-15 10:50:11 -06:00
Ashley Donaldson
7bf75c0de5
Better support tab completing through a series of directories when using meterpreter
2021-11-15 17:22:38 +11:00
Ashley Donaldson
32bf9f60d1
Explicitly select platforms to manually perform path expansion
2021-11-15 11:44:08 +11:00
Ashley Donaldson
ebd927da44
Apply suggestions from code review
...
Co-authored-by: Grant Willcox <63261883+gwillcox-r7@users.noreply.github.com >
2021-11-12 11:56:49 +11:00
Ashley Donaldson
7e2c6edb64
Expand paths for linux platforms
2021-11-11 20:14:06 +11:00
Tim W
4289c8b3ea
Land #15441 , add date filtering to stdapi_fs_search
2021-09-28 15:55:43 +01:00
Tim W
27e09e0898
fix #15662 , fix meterpreter download of utf8 filenames
2021-09-14 14:30:10 +01:00
Tim W
9d2065fee5
cleanup
2021-09-09 10:02:22 +01:00
test
044a9d3ad2
Clarified variable names
2021-09-06 15:46:05 -04:00
test
e926886e88
Updated search functionality.
2021-07-28 17:20:10 -04:00
test
a5b1b02197
Initial Ruby code support search_by_date
2021-07-17 09:14:05 -04:00
Spencer McIntyre
da01a839d1
Set required commands spec for all post mixins
2021-04-26 12:28:18 -04:00
Tim W
95c384c0cb
fix downloading utf-8 file into a ascii name
2021-03-23 17:35:25 +00:00
Tim W
afecde20d5
Fix #14888 , fix downloading a utf-8 directory directly
2021-03-22 22:16:32 +00:00
Tim W
1a7704787f
Fix #13798 , Fix #14128 , fix meterpreter > download * on utf-8 filenames
2021-03-12 19:51:40 +00:00
Shelby Pace
0d8df5e0bf
allow searches to start from root path
2021-02-26 15:53:33 -06:00
OJ
8070074da3
Almost final refactor of how IDs are handled
2020-06-09 08:58:26 +10:00
Spencer McIntyre
8bb9f1798b
Add a few more variables including local variants
2019-10-10 22:20:37 -04:00
Spencer McIntyre
d87308e9c0
Fix a couple of bugs in the MeterpreterPrompt
2019-10-10 21:13:12 -04:00
Spencer McIntyre
48f1e1d909
Add the %D and %U meterpreter prompt chars
2019-10-10 21:13:12 -04:00
Clément Notin
72672c82f9
Fix syntax
2019-09-03 15:17:28 +02:00
Clément Notin
caafac3455
meterpreter, fs/file.rb: use client's separator instead of '\\'
2019-08-27 18:12:47 +02:00
Brent Cook
76583708da
expand the size of more stat struct entries
2019-02-06 22:08:51 -06:00
Tim W
c0dd020ff5
fix linux meterpreter ls
2019-01-02 19:09:46 +08:00
Tim W
05d78e23ea
fix #11189 , fix meterpreter ls handling of large files
2019-01-02 03:34:13 +08:00
Tim W
c4ebf7b4f3
add meterpreter chmod command
2018-09-01 23:52:31 +08:00
William Vu
e955e8dc15
Clean up code
...
And hope I didn't break anything.
2018-08-24 18:05:52 -05:00
Green-m
746b63f76a
Add method to glob the given filename.
2018-07-26 05:21:12 -04:00
Brent Cook
bd2af0143a
properly handle when there is no stat callback specified on upload
2018-02-16 16:14:09 -06:00
a1exdandy
7e03bf838b
Fix src_size view
2018-02-15 17:44:41 +05:00
a1exdandy
a0c473f29e
Upload memory usage optimization
...
Optimize xor_bytes memory usage, use small buffer for upload,
add verbosity
2018-02-15 17:05:22 +05:00
James Lee
5c17f363be
Default opts to an empty hash instead of nil
...
Fixes #8709
2017-07-13 15:40:08 -05:00
wchen-r7
d5d9e88851
Fix #8636 , [] for NilClass in session.fs.file.download_file
...
This fixes a [] for NilClass bug in the download_file API.
The opts argument is not checked for nil before the code looks for
the block_size key.
Fix #8636
2017-07-07 19:00:33 -05:00
OJ
6131e4bd82
Fix download lambda function to take correct param count
...
This is an emergency fix as a result of something being broken in
master. This is also being pushed straight to master because github is
down and the PR process isn't possible. This commit was reviewed by
@wvu-r7 prior to being pushed.
2017-06-07 09:37:24 +10:00
OJ
cc0ff8f3db
Enable adaptive download with variable block sizes
...
The aim of this commit is to allow users of Meterpreter in high-latency
environments have better control over the behaviour of the download
function. This code contains two new options that manage the block size
of the downloads and the ability to set "adaptive" which means that the
block size will adjust on the fly of things continue to fail.
2017-06-02 17:16:58 +10:00
Justin Steven
56cf6b129d
Fix CVE-2017-5228
2017-02-07 23:44:23 +10:00
Artem
9a7c0eb7b6
Fix cloe file
2016-12-08 21:28:39 +03:00
Tim
468bf4696f
stdapi_fs_file_copy
2016-11-29 13:56:27 +08:00
Brent Cook
6686e91ffe
fixup some leftover debug and whitespace issues
2016-09-15 18:39:08 -05:00
caye
efdf7c4c00
Clipboard now sets 'recursive' download option in new way. Improved download_file compatibility
2016-08-27 01:44:04 +00:00
caye
3545c5f8db
Rebase after #7125 . Changed tries to -l. Added 'opts' for all download options
2016-08-27 00:55:16 +00:00
William Vu
bebff786b7
Add timestamping to downloaded files
2016-07-25 17:18:27 -05:00