Code Monkey home page Code Monkey logo

mssqlproxy's People

Contributors

apanonimo avatar xassiz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mssqlproxy's Issues

proxy wont work

everything seems fine, but everytime i try to use the proxy, it throws exception.

Impacket v0.9.21 - Copyright 2020 SecureAuth Corporation

mssqlproxy - Copyright 2020 BlackArrow
Password:
[*] Encryption required, switching to TLS
[*] ENVCHANGE(DATABASE): Old Value: master, New Value: master
[*] ENVCHANGE(LANGUAGE): Old Value: None, New Value: us_english
[*] ENVCHANGE(PACKETSIZE): Old Value: 4096, New Value: 16192
[*] INFO(SERVER): Line 1: Changed database context to 'master'.
[*] INFO(SERVER): Line 1: Changed language setting to us_english.
[*] ACK: Result: 1 - Microsoft SQL Server   (140 11221)
[*] Proxy mode: check
[*] Assembly is installed
[*] Procedure is installed
[*] reciclador is installed
[*] clr enabled
[*] Proxy mode: start
[*] Listening on port 2080...
[*] ACK from server!
[*] New connection
Unhandled exception in thread started by <function proxy_worker at 0x0000000004889F28>Unhandled exception in thread started by <function proxy_worker at 0x0000000004889F28>
Traceback (most recent call last):

Traceback (most recent call last):
  File "mssqlclient.py", line 174, in proxy_worker
  File "mssqlclient.py", line 174, in proxy_worker
        data = client.recv(2048)
data = client.recv(2048)
socket.errorsocket.error: [Errno 10054] An existing connection was forcibly closed by the remote host
: [Errno 10054] An existing connection was forcibly closed by the remote host

waiting for your reply:cannot establish connection

Hello, author. I encountered an error while using your project. When the CLR installation was successful and the C++ dll upload was successful, When I start proxy cannot establish connection error. I try to used wirshark found the following, there are no other packets after creating the stored procedure. Agent establishment failed.
The environment is as follows:
vmware:
win7 + Microsoft SQL Server (1050 15160) +local System/local Service/Network Service

win10 + Microsoft SQL Server (1050 15160) +local System/local Service/Network Service

Cpp -dll: x64/x86 vs2015
C# -dll: .net 2.0/.net4.0

attpc-macos
However, after trying the above combinations, the proxy cannot be successfully established, and both sides of the firewall are turned off.
Then I tried to install impacket using win7 to attack the sqlserver of win10, but it was not successful.
There is one detail: there is no echo after executing enable_ole. But there is no problem with -check later.
According to the last packet sent by py, you can see that there is no packet interaction after creating the stored procedure.
I judge that the problem may be in the process of calling Cpp dll by clr.
Hope to provide you with a certain reference. waiting for your reply;)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.