You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm going to attempt to fix this because it caught me out trying to ls a Download directory.
Hopefully we can fix this without breaking backwards compatibility with existing stageless meterpreters, (although let me know if that makes it more fiddly than it should be).
We can create a new TLV_TYPE_STAT_BUF with an 8 byte file size, and fall back to the old one if it's not present in a response.
This also impacts files downloads and whatnot, so we'd need to make sure we cover it off across the board. But yes, agreed, need to fix and need to make sure we don't break existing payloads with it!
timwr
added a commit
to timwr/metasploit-framework
that referenced
this issue
Jan 2, 2019
This has actually been reported before but not on the framework repo:
rapid7/meterpreter#204
rapid7/metasploit-payloads#281
Steps to reproduce
dd if=/dev/zero of=lol4gb bs=4M count=1025
meterpreter > ls
in the directory where you createdlog4gb
Expected behavior
The ls command should complete and return the correct size
Current behavior
OS
Linux
The text was updated successfully, but these errors were encountered: