Jump to content

Meterpreter Directory Browsing Bug?


Adam Smith

Recommended Posts

Hey guys,

I recently came across an error or "glitch" which involves the browsing in a remote machine's files in meterpreter shell. I noticed that with files that have a space or many spaces in their name cannot be opened. The meterpreter shell returns the following error:

[-] stdapi_fs_chdir: Operation failed: The system cannot find the file specified.

This is especially annoying as one cannot access obvious locations such as Program Files since there is a space. I have tried using an underscore instead or just omitting the space, with no luck.

What do you guys think?

Cheers.

Link to comment
Share on other sites

navigating threw a files system where a directory includes spaces is frustrating.

Does tab completion work? Type the first sevral leters of the folder then press tab.

ls name(tab or double tab)

What about wild cards?

ls name*

ls name\ of\ folder\ location

The slash enables the space to be read (not sure if my illiterate brain has served this up properly)

You will find special characters will give you the same problem... if your file or folderhas fancy chars in it, place a slash befor it...

"Name of location(2015)"

ls Name\ of\ location\(2015\)

\(

\)

\ <---space

Link to comment
Share on other sites

navigating threw a files system where a directory includes spaces is frustrating.

Does tab completion work? Type the first sevral leters of the folder then press tab.

ls name(tab or double tab)

What about wild cards?

ls name*

ls name\ of\ folder\ location

The slash enables the space to be read (not sure if my illiterate brain has served this up properly)

You will find special characters will give you the same problem... if your file or folderhas fancy chars in it, place a slash befor it...

"Name of location(2015)"

ls Name\ of\ location\(2015\)

\(

\)

\ <---space

Thanks a million mate, tab completion didn't solve the issue, but using backslashes did.

For example:

cd \Windows\ Defender

Cheers!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...