Author Topic: Metasploit / meterpreter stdapi [SOLVED]  (Read 9578 times)

lockmaster

  • Newbie
  • *
  • Posts: 9
    • View Profile
on: September 04, 2012, 07:11:48 PM
once i get a meterpreter session going I hit the ? to see all the options and it seems the following stdapi commands are missing system, user interface and webcam any suggestions would be very helpful I have tried the load command from the meterpreter prompt but none of the above are listed. ???
« Last Edit: September 05, 2012, 09:21:17 PM by raffaele »



ZEROF

  • Hero Member
  • *****
  • Posts: 1245
    • View Profile
    • Pen Tester
Reply #1 on: September 04, 2012, 10:18:08 PM
Hi,

I want to help you but i need more information about your problem. What you are trying to do, and when help command stop to work for you?


Don't ask, read : http://wiki.backbox.org
or just run sudo rm -rf /*


lockmaster

  • Newbie
  • *
  • Posts: 9
    • View Profile
Reply #2 on: September 05, 2012, 11:21:12 AM
Thanks for your reply what I want to do is get a list of processes running on the target but the system interface commands are not present as well the others I mentioned in my previous post in my BackBox msf here is what it should output when hitting the ? from a meterpreter prompt.

Stdapi: File system Commands
============================

    Command       Description
    -------       -----------
    cat           Read the contents of a file to the screen
    cd            Change directory
    del           Delete the specified file
    download      Download a file or directory
    edit          Edit a file
    getlwd        Print local working directory
    getwd         Print working directory
    lcd           Change local working directory
    lpwd          Print local working directory
    ls            List files
    mkdir         Make directory
    pwd           Print working directory
    rm            Delete the specified file
    rmdir         Remove directory
    search        Search for files
    upload        Upload a file or directory


Stdapi: Networking Commands
===========================

    Command       Description
    -------       -----------
    ipconfig      Display interfaces
    portfwd       Forward a local port to a remote service
    route         View and modify the routing table


Stdapi: System Commands Missing in Back Box
=======================

    Command       Description
    -------       -----------
    clearev       Clear the event log
    drop_token    Relinquishes any active impersonation token.
    execute       Execute a command
    getpid        Get the current process identifier
    getprivs      Attempt to enable all privileges available to the current process
    getuid        Get the user that the server is running as
    kill          Terminate a process
    ps            List running processes
    reboot        Reboots the remote computer
    reg           Modify and interact with the remote registry
    rev2self      Calls RevertToSelf() on the remote machine
    shell         Drop into a system command shell
    shutdown      Shuts down the remote computer
    steal_token   Attempts to steal an impersonation token from the target process
    sysinfo       Gets information about the remote system, such as OS


Stdapi: User interface Commands Missing in Back Box
===============================

    Command        Description
    -------        -----------
    enumdesktops   List all accessible desktops and window stations
    getdesktop     Get the current meterpreter desktop
    idletime       Returns the number of seconds the remote user has been idle
    keyscan_dump   Dump the keystroke buffer
    keyscan_start  Start capturing keystrokes
    keyscan_stop   Stop capturing keystrokes
    screenshot     Grab a screenshot of the interactive desktop
    setdesktop     Change the meterpreters current desktop
    uictl          Control some of the user interface components


Stdapi: Webcam Commands Missing in Back Box
=======================

    Command       Description
    -------       -----------
    record_mic    Record audio from the default microphone for X seconds
    webcam_list   List webcams
    webcam_snap   Take a snapshot from the specified webcam

Any ideas on what my problem is? Thanks 



ZEROF

  • Hero Member
  • *****
  • Posts: 1245
    • View Profile
    • Pen Tester
Reply #3 on: September 05, 2012, 12:41:17 PM
Hi,

What is payload you try to use ? Did you try to update to last version ? And what you need to know that after MSF updates, some options are removed. If you watch videos or you read books, this can be problem, because they are not always up to date. That is what i think, but i will check more when i try payload you try to use.


Don't ask, read : http://wiki.backbox.org
or just run sudo rm -rf /*


lockmaster

  • Newbie
  • *
  • Posts: 9
    • View Profile
Reply #4 on: September 05, 2012, 01:38:04 PM
Hi,

What is payload you try to use ? Did you try to update to last version ? And what you need to know that after MSF updates, some options are removed. If you watch videos or you read books, this can be problem, because they are not always up to date. That is what i think, but i will check more when i try payload you try to use.

Thanks for your rapid response I am using windows/metsvc_bind_tcp as my payload my msf is updated I have just updated my other laptop that has Back Track running I will see if the problem occurs on that box, no longer watch videos or read books just like to get info from forums  :)



ZEROF

  • Hero Member
  • *****
  • Posts: 1245
    • View Profile
    • Pen Tester
Reply #5 on: September 05, 2012, 02:29:20 PM
Hi,

As i can see you need to use show options, and ? is (help) only for msf console option. Then you can use info command, like info payload/windows/metsvc_bind_tcp. That is what you can do with Metasploit 4. Hope this help.

And read this : http://seclists.org/metasploit/2007/q2/296
« Last Edit: September 05, 2012, 02:35:33 PM by ZEROF »


Don't ask, read : http://wiki.backbox.org
or just run sudo rm -rf /*


lockmaster

  • Newbie
  • *
  • Posts: 9
    • View Profile
Reply #6 on: September 05, 2012, 06:14:08 PM
Hi,

As i can see you need to use show options, and ? is (help) only for msf console option. Then you can use info command, like info payload/windows/metsvc_bind_tcp. That is what you can do with Metasploit 4. Hope this help.

And read this : http://seclists.org/metasploit/2007/q2/296

Thanks for taking the time in helping me through this, the link is really helpful and gives an explanation in more ways than one.  :D



ZEROF

  • Hero Member
  • *****
  • Posts: 1245
    • View Profile
    • Pen Tester
Reply #7 on: September 05, 2012, 06:19:38 PM
That is great news, i will mark topic as solved.

Cheers !


Don't ask, read : http://wiki.backbox.org
or just run sudo rm -rf /*


lockmaster

  • Newbie
  • *
  • Posts: 9
    • View Profile
Reply #8 on: September 05, 2012, 11:12:07 PM
That is great news, i will mark topic as solved.

Cheers !

Yes it is, and once again thank you I appreciate the time and energy you people put in, I really do. Thank you  :D