Jump to content

Metasploit/ruby Documentation For Session.fs.file?


ChopperCharles
 Share

Recommended Posts

Is there documentation for session.fs.file in metasploit?

Here's my problem: I'm building a post module (meterpreter, windows sessions only). If I attempt to upload a nonexistent file using session.fs.file.upload, a zero byte file gets created on the remote system, and the remote directory is locked. I don't mind the zero byte file, but the locked directory is a BIG problem.

So, I need a way to check that the local file exists before uploading, or preferably have a way to release the lock on the directory when an error occurs.

I can't even find where in the metasploit code session.fs.file is located, and there's no documentation that I've been able to find using google... but I may not be searching for the right thing. Any help would be appreciated!

Charles.

Link to comment
Share on other sites

Try using the locate command, to locate the location of the file.

At the terminal window type:

Locate session.fs

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.

 Share

  • Recently Browsing   0 members

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